Closed Bug 642072 Opened 13 years ago Closed 3 months ago

Another application going full screen causes lots of logged errors from Firefox

Categories

(Firefox :: General, defect)

4.0 Branch
x86_64
macOS
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: withay, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0

If another application (e.g. a game) goes full screen, Firefox logs tons of errors to the console, like:

Mar 16 00:47:17 ninagal firefox-bin[55431]: kCGErrorInvalidOperation: _CGSFindSharedWindow: WID 5254
Mar 16 00:47:17 ninagal firefox-bin[55431]: kCGErrorInvalidOperation: _CGSFindSharedWindow: WID 5253
Mar 16 00:47:17 ninagal [0x0-0x162162].org.mozilla.firefox[55431]: Wed Mar 16 00:47:17 ninagal.local firefox-bin[55431] <Error>: kCGErrorInvalidOperation: _CGSFindSharedWindow: WID 5254
Mar 16 00:47:17 ninagal [0x0-0x162162].org.mozilla.firefox[55431]: Wed Mar 16 00:47:17 ninagal.local firefox-bin[55431] <Error>: kCGErrorInvalidOperation: _CGSFindSharedWindow: WID 5253

These will log over and over again (I have one system log over 68megs mostly of this).

Reproducible: Always

Steps to Reproduce:
1. Launch Firefox
2. Launch application which will claim the screen and go fullscreen
3. Quit said application and look at /var/log/system.log
Actual Results:  
Many log entries to system.log

Expected Results:  
Vastly fewer log entries (one each? or none?).

This is on an older MacBook Pro, 10.6.6, with Firefox running 64bit.
Cannot reproduce using Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0)
Gecko/20100101 Firefox/4.0 on Mac Mini, 10.6.6.

Does the issue reproduce on a certain page that is opened in FF? What other application is in full screen mode?
No special page needed for Firefox (just checked it with this bug page); one app, which is free, where this happens is Wesnoth (at http://www.wesnoth.org/).  Running it in fullscreen when Firefox was open with just one tab showing this bug, and the log-blast happens.
Finally! Someone else who is experiencing this issue :)

In my case, these errors were being generated at a rate of around 150/second and causing my system.log size to balloon out of control.

After a lot of head-scratching I discovered it was caused by ColorSnapper (http://colorsnapper.com/) running in the background. As soon as I quit this app and restarted Firefox the problem went away.

It looks like that app is running something full-screen but is hidden. My guess is the color picker overlay is constantly running and activating the application just brings makes it visible.

Curiously Path Finder's full-screen desktop and trash can windows don't trigger this nor do a few other full-screen apps (such as Safari).
This is Firefox, not some other program.
(In reply to comment #3)
> Curiously Path Finder's full-screen desktop and trash can windows don't trigger
> this nor do a few other full-screen apps (such as Safari).

I think (though this is just a theory) it's related to how a given program goes full-screen.  If they use the big window method, you don't see the messages, but if they do a display capture then the messages come out.
Version: unspecified → 4.0 Branch
This is a really simple program which just captures all displays for 10 seconds; during this time Firefox logs the error messages noted.  This is an Xcode project with the built app in build/Release.

Make sure Firefox is running, then run this; check the system.log afterwards.
One followup; make sure to at least move the mouse around when running, if you do nothing Firefox stays quiet for some reason...
ColorSnapper causing this for me as well in both the stable Firefox 5 and the latest nightly. Results in really large log files (mine was over 800 MB).
some additional info:  this behavior appears to possibly be related to a specific NSWindow method:

   - (void)setSharingType:(NSWindowSharingType)type

i have noticed over the past few days that firefox also spams the syslog in a similar way when one of my own programs is running.  i'm working on developing an image/movie-viewer-type application, and i was setting this to NSWindowSharingNone by default for each of the application's image/movie windows (this prevents other processes from accessing my app's window data, something they shouldn't need to be doing; this is just an additional security measure) ... 

i was thinking about it, because it was a recent change i had made, and didn't remember my app having a bad interaction w/ ff before ... sure enough, if i comment out that line in my code, ff no longer complains when my app is running.  now if you think about world of warcraft, this also makes perfect sense; they undoubtedly have that parameter set within the game because they're concerned about other apps being used as cheats/bots/etc.  that's probably why wow makes ff freak out like this.

now, that having been said, what the hell is going on inside firefox that it thinks it needs to be looking at every window of every application running on the system?  at the very least, that's a pretty ****-up kludge.  i won't go so far as to attribute it to malice, but ...

(also cross-posting this comment to bug 665266).
Experiencing a lott of beachballs over the last two weeks. Checked my system logs i noticed that i get the kCGErrorInvalidOperation message only when i move the (magic)mouse. When i only scroll there's no logging of this error. But when i move the cursor the messages start again. Same thing with the trackpad. 

Logging 10 to 30 messages a second. 

I second Pelle Wessman (see above): COLORSNAPPER is the cause here too.
When i quit the app the messages stop.
Severity: normal → S3

I've just tried this on Mac 14.3 with the original test application, and with a Steam game running in full screen. Neither reproduced the logging results. I also haven't found any newer reports for this. Hence closing it out, as I suspect it got fixed somewhere along the way.

Status: UNCONFIRMED → RESOLVED
Closed: 3 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: