View Full Version : Bug: Crashing on exit in FullScreen
larrikinaus
2008-02-23, 08:25
I notice that with the latest version XBMC now loads as a squarish window in OSX. That is easily fixed by changing the resolution within XBMC to load with my full resolution.
However, when I exit XBMC using the apple menu QUIT when its a squarish window, it closes fine.
When I have it as full screen (ie not playing a video - just sitting in the menus in full screen) and I try and exit by selecting SHUT DOWN, XBMC crashes and freezes in the shutdown menu. I have to perform a cold reboot on my mac mini to get around it.
Is there any other way of exiting XBMC when in full screen or is this a bug for now?
larrikinaus
2008-02-23, 08:36
I should add that APPLE + Q does not exit XBMC. Has this been deliberately disabled? It would be nice to keep APPLE + Q as an exit feature to XBMC like any other OSX app.
option-command(apple key)-escape should work fine if OSXBMC freezes on you in fullscreen.
I can't reproduce this freezing problem on my Mini. If someone could attach to a frozen process and get me stack traces, that would be great (perhaps via "Sample Process" in Activity Monitor?
Thanks,
-elan
Out of curiosity, what skins are people using who are seeing the hang on exit? If it ain't PM3, that might explain why I can't reproduce it.
larrikinaus
2008-02-25, 02:08
Out of curiosity, what skins are people using who are seeing the hang on exit? If it ain't PM3, that might explain why I can't reproduce it.
I'm using the standard skin that comes with your build (not at home right now so can't check the name of it to see if it is PM3).
As for going into activity monitor, in full screen, once it is frozen, I can't navigate at all into OSX because it is locked on the shutdown menu.
I haven't tried to SSH into the box but I could do that and run something like TOP?
mtehonica
2008-02-25, 05:39
I also have the same problem with OSXBMC freezing on exit but mine will also freeze when it's not fullscreen. Here is a link (http://pastie.caboo.se/156819) to the stack trace I pulled while OSXBMC was frozen and using 99% CPU. I am running this on a Macbook Pro 2.2GHz, 4GB Ram and GeForce 8600M GT graphics.
Elan, let me know if there is anything else I can do to help t/s this. I also have a Mac Mini that I haven't tested the new version on yet. I'll have to test on that and see if it freezes too.
-Matt
mtehonica
2008-02-25, 05:52
As a followup, I can't seem to make it freeze when exiting on my Mini (1.83GHz Intel C2D, 1GB Ram and GMA 950 graphics).
And I'm using PM3 skin on my Macbook Pro that is having the problem. Hopefully that stack trace helps. I also have a crash report that I can send if needed, can't paste to pastie because its longer than 125,000 lines.
I also have the same problem with OSXBMC freezing on exit but mine will also freeze when it's not fullscreen. Here is a link (http://pastie.caboo.se/156819) to the stack trace I pulled while OSXBMC was frozen and using 99% CPU. I am running this on a Macbook Pro 2.2GHz, 4GB Ram and GeForce 8600M GT graphics.
Thanks for the trace! I was seeing this exact issue before I tweaked some of the new full-screen code. Can you try running in windowed mode and quitting out of it (i.e. set screen mode to 720p or something, and then start and exit).
I don't see this issue at all anymore, so I'm a bit confused.
-elan
mtehonica
2008-02-25, 16:55
Thanks for the trace! I was seeing this exact issue before I tweaked some of the new full-screen code. Can you try running in windowed mode and quitting out of it (i.e. set screen mode to 720p or something, and then start and exit).
I don't see this issue at all anymore, so I'm a bit confused.
-elan
Here (http://pastie.caboo.se/156969) is a trace from windowed mode (720p 16:9). When it crashes, the window closes but it just seems to stay open and hang out, then I have to Command+Option+Escape to force quit it and then I get the unresponsive app message box.
FYI, I completely blew away the ~/Library/Application Support/XBMC before installing the new version also.
mtehonica
2008-02-25, 16:57
Elan, I also noticed ticket #72 on the bug tracker page (http://dn-0.com/xbmc-trac/ticket/72) shows someone else having the same issue.
Thanks for the traces, people. What's happening is that SDL is segfaulting on the way out (likely due to the new way we handle OpenGL contexts), and then getting confused trying to exit. If you still see the problem on the next release due out in a day or two, I'll look into it.
-elan
mtehonica
2008-02-25, 22:12
Thanks for the prompt reply Elan! In regular Apple style, we report a bug and the problems are heard and addressed very quickly. It's a great feeling to report a bug and be able see an almost immediate response and explaination. You are incredible. Beer money will be coming your way. :)
larrikinaus
2008-02-26, 00:09
Thanks for the traces, people. What's happening is that SDL is segfaulting on the way out (likely due to the new way we handle OpenGL contexts), and then getting confused trying to exit. If you still see the problem on the next release due out in a day or two, I'll look into it.
-elan
You are seriously cool. Love your work Elan, truly I do :)
OK, I'm finally able to reproduce the problem over here again. There's still something strange going on with the SDL exit. I thought I'd nailed it, but apparently not. It's now the last bug besides the X3100 graphics I'm trying to fix for this next release.
Thanks for your patience,
-elan
valmont74
2008-02-27, 21:12
I had the same problem with the 0.1.3 build and I filled in a bug report ticket. However I am a real virgin when it comes to Mac, so I was not able to make a trace. I'm very happy someone earlier in this thread did so the problem can be adressed :)
Since I also noticed some choppy playback on the last build I'll go back to the 0.1.2 build until the next comes out.
Thanks Elan for the great work! :D