Ticket #538 (closed crash: fixed)

Opened 16 months ago

Last modified 15 months ago

quartz-wm is very unstable in 2.7.1_rc2

Reported by: tgl@… Owned by: jeremyhu@…
Priority: Expected Milestone: 2.7.1
Component: quartz-wm Version: dev (master)
Keywords: Cc: olchansk@…

Description

quartz-wm fails regularly under light usage; it was perfectly fine in rc1. Entries in /var/log/system.log vary:

first case:

Jan 28 22:51:06 pro Dock[166]: kCGErrorIllegalArgument: CGSReleaseWindow: Invalid window 1503
Jan 28 22:51:06 pro Dock[166]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
Jan 28 22:51:06 pro Dock[166]: kCGErrorIllegalArgument: CGSReleaseWindow: Invalid window 1502
Jan 28 22:51:06 pro org.macosforge.xquartz.startx[11635]: /opt/X11/bin/xinit: connection to X server lost
Jan 28 22:51:06 pro org.macosforge.xquartz.startx[11635]:
Jan 28 22:51:07 pro ReportCrash[11908]: Saved crash report for quartz-wm[11779] version ??? (???) to /Users/tgl/Library/Logs/DiagnosticReports/quartz-wm_2012-01-28-225107_pro.crash
Jan 28 22:51:07 pro org.macosforge.xquartz.startx[11635]: waiting for X server to shut down

second case:

Jan 29 12:18:28 pro Dock[166]: kCGErrorIllegalArgument: CGSReleaseWindow: Invalid window 1623
Jan 29 12:18:28 pro org.macosforge.xquartz.startx[11920]: connection to X server lost
Jan 29 12:18:28 pro org.macosforge.xquartz.startx[11920]:
Jan 29 12:18:28 pro ReportCrash[12571]: Saved crash report for quartz-wm[12063] version ??? (???) to /Users/tgl/Library/Logs/DiagnosticReports/quartz-wm_2012-01-29-121828_pro.crash
Jan 29 12:18:29 pro org.macosforge.xquartz.startx[11920]: waiting for X server to shut down

third case:

Jan 29 12:45:53 pro quartz-wm[12731]: kCGErrorIllegalArgument: CGSOrderWindowList
Jan 29 12:46:23: --- last message repeated 2 times ---
Jan 29 12:46:44 pro quartz-wm[12731]: kCGErrorIllegalArgument: CGSOrderWindowList
Jan 29 12:46:57: --- last message repeated 1 time ---
Jan 29 12:46:57 pro Dock[166]: kCGErrorIllegalArgument: CGSReleaseWindow: Invalid window 1640
Jan 29 12:46:57 pro org.macosforge.xquartz.startx[12588]: /opt/X11/bin/xinit: connection to X server lost
Jan 29 12:46:57 pro org.macosforge.xquartz.startx[12588]:
Jan 29 12:46:57 pro ReportCrash[12812]: Saved crash report for quartz-wm[12731] version ??? (???) to /Users/tgl/Library/Logs/DiagnosticReports/quartz-wm_2012-01-29-124657_pro.crash
Jan 29 12:46:58 pro org.macosforge.xquartz.startx[12588]: waiting for X server to shut down

I'll attach all three DiagnosticReports files, though they look pretty darn similar.

Attachments

quartz-wm_2012-01-28-225107_pro.crash (31.0 KB) - added by tgl@… 16 months ago.
first crash
quartz-wm_2012-01-29-121828_pro.crash (31.0 KB) - added by tgl@… 16 months ago.
second crash
quartz-wm_2012-01-29-124657_pro.crash (31.0 KB) - added by tgl@… 16 months ago.
third crash

Change History

Changed 16 months ago by tgl@…

first crash

Changed 16 months ago by tgl@…

second crash

Changed 16 months ago by tgl@…

third crash

comment:1 Changed 16 months ago by jeremyhu@…

  • Priority changed from Not Set to Expected
  • Milestone set to 2.7.1

How can I reproduce this? You say it reproduces easily under light usage, but you don't give steps. Please tell me exactly what you are doing to trigger this issue.

Also, quartz-wm logging would be helpful. Once X11 is running, do this:

syslog -c quartz-wm -d
syslog -w -k Facility eq org.macosforge.xquartz

comment:2 Changed 16 months ago by jeremyhu@…

  • Status changed from new to assigned

comment:3 Changed 16 months ago by jeremyhu@…

Also, if you could bisect quartz-wm to tell me which commit caused the issue, that would help.

https://github.com/jeremyhu/quartz-wm/commits/master

2.7.1_rc1 has 1.2.99.901

2.7.1_rc2 has 1.2.99.902

comment:4 Changed 16 months ago by jeremyhu@…

I can tell from your crash logs that this is happening when you try to restore from the dock.

When I restore from the dock, I'm seeing a Dock crash which has been there since Lion, but quartz-wm doesn't crash. I need more information.

comment:5 Changed 16 months ago by jeremyhu@…

Ok, I think I see the issue. This should be fixed in the next rc: https://github.com/jeremyhu/quartz-wm/commit/47aa97c08796903b41fdeee17e96014171b35b47

comment:6 Changed 16 months ago by jeremyhu@…

  • Status changed from assigned to closed
  • Resolution set to fixed

comment:7 follow-up: ↓ 8 Changed 15 months ago by jeremyhu@…

Please verify with 2.7.1_rc4

comment:8 in reply to: ↑ 7 Changed 15 months ago by olchansk@…

Replying to jeremyhu@…:

Please verify with 2.7.1_rc4

FWIW, just tried 2.7.1_rc4 and I see the Dock crash. But maybe my crash is different - I see this crash with every version of Xquartz since (and including) 2.7.0. So maybe my machine is messed up - is it possible to uninstall Xquartz completely (to follow with the clean install?).

BTW1: The Apple X11.app does not crash the Dock. BTW2: I do not see the Dock crash on my home machine (same MacOS 10.7.3, Xquartz 2.7.1_rc-whatever).

K.O.

comment:9 Changed 15 months ago by olchansk@…

  • Cc olchansk@… added

Cc Me!

comment:10 Changed 15 months ago by jeremyhu@…

Yeah that Dock crash is ... well... Dock crashing. There's not much I can do about it in quartz-wm. It sucks that we happen to trip over whatever that bug is. It's been there since Lion but doesn't appear under certain circumstances. /usr/bin/quartz-wm *can* crash the dock in the same way.

I suggest you file a bug report at http://bugreport.apple.com

Note: See TracTickets for help on using tickets.