Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OSX] Crash after leaving the game on background #4689

Closed
DorpsGek opened this issue Jul 17, 2011 · 3 comments
Closed

[OSX] Crash after leaving the game on background #4689

DorpsGek opened this issue Jul 17, 2011 · 3 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Melebius opened the ticket and wrote:

I experienced this crash twice today (first time I ignored it): I paused the game, saved my progress, switched off the game music, left full-screen mode (Cmd+F), hid the game window (Cmd+H) and did something else. After I showed the game window again, a window about crash appeared along with the game window.

I use Mac OS X 10.6.8.

Attachments

Reported version: 1.1.1
Operating system: Mac OS X


This issue was imported from FlySpray: https://bugs.openttd.org/task/4689
@DorpsGek
Copy link
Member Author

planetmaker wrote:

Bug is also present in trunk.
The combination of first returning from full screen and then hiding the window and subsequent try to unhide it seem necessary

Probably the same, but only with loss of the functionality of cmd+H:

2011-07-17 23:52:37.464 openttd[1019:903] *** Assertion failure in -[NSThemeFrame lockFocus], /SourceCache/AppKit/AppKit-1038.36/AppKit.subproj/NSView.m:5237
2011-07-17 23:52:37.542 openttd[1019:903] HIToolbox: ignoring exception '-[NSThemeFrame(0x102a29780) lockFocus] failed with window=0x102a27a40, windowNumber=97649, [self isHiddenOrHasHiddenAncestor]=0' that raised inside Carbon event dispatch
(
0 CoreFoundation 0x00007fff843ba7b4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff87d67f03 objc_exception_throw + 45
2 CoreFoundation 0x00007fff843ba5d7 +[NSException raise:format:arguments:] + 103
3 Foundation 0x00007fff888bf9fe -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
4 AppKit 0x00007fff849af528 -[NSView lockFocus] + 251
5 AppKit 0x00007fff84ecd9ad -[NSWindow restoreCachedImage] + 230
6 openttd 0x00000001002be604 -[OTTD_CocoaWindow appDidUnhide:] + 20
7 CoreFoundation 0x00007fff84362000 __CFXNotificationPost + 1008
8 CoreFoundation 0x00007fff8434e578 _CFXNotificationPostNotification + 200
9 Foundation 0x00007fff887f8b26 -[NSNotificationCenter postNotificationName:object:userInfo:] + 101
10 AppKit 0x00007fff849282ac -[NSApplication _doUnhideWithoutActivation] + 1156
11 AppKit 0x00007fff84927db1 _hideShowHandler + 123
12 HIToolbox 0x00007fff83f6d7f7 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1002
13 HIToolbox 0x00007fff83f6cd46 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 395
14 HIToolbox 0x00007fff83f8aa81 SendEventToEventTarget + 45
15 AppKit 0x00007fff848f8215 _DPSNextEvent + 1575
16 AppKit 0x00007fff848f7801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
17 openttd 0x00000001002bf144 _Z11QZ_GameLoopv + 676


This comment was imported from FlySpray: https://bugs.openttd.org/task/4689#comment10079

@DorpsGek
Copy link
Member Author

soulfairer wrote:

Please see if using code from #4744 in Mac OS X 10.6.8 it works (change MacOSVersionIsAtLeast to 10, 6, 0 to test if you want to). Don't know if that code works in 10.6.x (10.8 here), but it should. This problem didn't occur here.


This comment was imported from FlySpray: https://bugs.openttd.org/task/4689#comment11677

@DorpsGek
Copy link
Member Author

DorpsGek commented Aug 5, 2013

michi_cc closed the ticket.

Reason for closing: Fixed

Hopefully in r25665.


This comment was imported from FlySpray: https://bugs.openttd.org/task/4689

@DorpsGek DorpsGek closed this as completed Aug 5, 2013
@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant