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] [PPC] Serious fault condition when opening display options #4345

Closed
DorpsGek opened this issue Dec 28, 2010 · 5 comments
Closed

[OSX] [PPC] Serious fault condition when opening display options #4345

DorpsGek opened this issue Dec 28, 2010 · 5 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

OTTDmaster opened the ticket and wrote:

Using r21649, opened savegame, attempted to open the display options in the interaction menu and got a serious fault condition.

Attachments

Reported version: trunk
Operating system: Mac OS X


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

OTTDmaster wrote:

Has been reproduced by dihedral.


This comment was imported from FlySpray: https://bugs.openttd.org/task/4345#comment9348

@DorpsGek
Copy link
Member Author

SmatZ wrote:

dihedral says he can't reproduce the issue

can you reproduce it when you load crash.sav and open the Advanced Settings window?


This comment was imported from FlySpray: https://bugs.openttd.org/task/4345#comment9349

@DorpsGek
Copy link
Member Author

dihedral wrote:

(gdb) run
Starting program: /Users/nathanael/Development/openttd-svn/bin/openttd
Reading symbols for shared libraries .+....................................................................... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
dbg: [misc] You are running a 32bpp blitter, but this build is without libpng support; falling back to 8bpp graphics
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xc047e4bb
DrawFrameRect (left=50, top=129, right=69, bottom=137, colour=3225937076, flags=FR_LOWERED) at /Users/nathanael/Development/openttd-svn/src/widget.cpp:170
170 uint light = _colour_gradient[colour][7];
(gdb) bt
# 0 DrawFrameRect (left=50, top=129, right=69, bottom=137, colour=3225937076, flags=FR_LOWERED) at /Users/nathanael/Development/openttd-svn/src/widget.cpp:170
# 1 0x001a973c in SettingEntry::DrawSetting (this=0x32, settings_ptr=0x81, sd=0x44b980, left=50, right=4503946, y=129, state=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1158
# 2 0x001a9b14 in SettingEntry::Draw (this=0x4c9a08, settings_ptr=0x490f40, left=50, right=432, base_y=19, first_row=0, max_row=33, cur_row=10, parent_last=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1089
# 3 0x001a9ccc in SettingsPage::Draw (this=0x44c960, settings_ptr=0x490f40, left=5, right=432, base_y=19, first_row=0, max_row=33, cur_row=4789416, parent_last=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1258
# 4 0x001a9ccc in SettingsPage::Draw (this=0x44c908, settings_ptr=0x490f40, left=5, right=432, base_y=19, first_row=0, max_row=33, cur_row=4789416, parent_last=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1258
# 5 0x001a9ccc in SettingsPage::Draw (this=0x44c968, settings_ptr=0x490f40, left=5, right=432, base_y=19, first_row=0, max_row=33, cur_row=4789416, parent_last=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1258
# 6 0x003cb038 in GameSettingsWindow::DrawWidget (this=0x32, r=@0x500, widget=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1564
# 7 0x002228d4 in NWidgetBackground::Draw (this=0x87043a0, w=0x8704180) at /Users/nathanael/Development/openttd-svn/src/widget.cpp:1737
# 8 0x002202ec in NWidgetPIPContainer::Draw (this=0x32, w=0x8704180) at /Users/nathanael/Development/openttd-svn/src/widget.cpp:1023
# 9 0x002202ec in NWidgetPIPContainer::Draw (this=0x32, w=0x8704180) at /Users/nathanael/Development/openttd-svn/src/widget.cpp:1023
# 10 0x002220e4 in Window::DrawWidgets (this=0x8704180) at /Users/nathanael/Development/openttd-svn/src/widget.cpp:547
# 11 0x0022c4cc in DrawOverlappedWindowForAll (left=448, top=88, right=512, bottom=488) at /Users/nathanael/Development/openttd-svn/src/window.cpp:546
# 12 0x000c6a94 in RedrawScreenRect (left=448, top=88, right=512, bottom=488) at /Users/nathanael/Development/openttd-svn/src/gfx.cpp:1557
# 13 0x000c6e30 in DrawDirtyBlocks () at /Users/nathanael/Development/openttd-svn/src/gfx.cpp:1643
# 14 0x0022a100 in UpdateWindows () at /Users/nathanael/Development/openttd-svn/src/window.cpp:2440
# 15 0x00232880 in QZ_GameLoop () at /Users/nathanael/Development/openttd-svn/src/video/cocoa/event.mm:617
# 16 0x0022fb38 in -[OTTDMain applicationDidFinishLaunching:] (self=0x32, _cmd=0x81, note=0x45) at /Users/nathanael/Development/openttd-svn/src/video/cocoa/cocoa_v.mm:66
# 17 0x92be5e1c in _nsnote_callback ()
# 18 0x90805ec0 in __CFXNotificationPost ()
# 19 0x907fdf20 in _CFXNotificationPostNotification ()
# 20 0x92bd0224 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
# 21 0x93793be8 in -[NSApplication _postDidFinishNotification] ()
# 22 0x93793ad4 in -[NSApplication _sendFinishLaunchingNotification] ()
# 23 0x9379361c in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
# 24 0x937931c4 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
# 25 0x92be6e28 in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
# 26 0x92be6c88 in _NSAppleEventManagerGenericHandler ()
# 27 0x91500960 in aeDispatchAppleEvent ()
# 28 0x915007fc in dispatchEventAndSendReply ()
# 29 0x91500654 in aeProcessAppleEvent ()
# 30 0x932af2e0 in AEProcessAppleEvent ()
# 31 0x9379190c in _DPSNextEvent ()
# 32 0x937913f8 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
# 33 0x9378d93c in -[NSApplication run] ()
# 34 0x0014b62c in ttd_main (argc=50, argv=0x3439bf0) at /Users/nathanael/Development/openttd-svn/src/openttd.cpp:762
# 35 0x00153d88 in main (argc=1, argv=0xbffffaf0) at /Users/nathanael/Development/openttd-svn/src/os/unix/unix.cpp:266


This comment was imported from FlySpray: https://bugs.openttd.org/task/4345#comment9350

@DorpsGek
Copy link
Member Author

dihedral wrote:

with --enable-debug=3

(gdb) run
Starting program: /Users/nathanael/Development/openttd-svn/bin/openttd
Reading symbols for shared libraries .+....................................................................... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
dbg: [misc] You are running a 32bpp blitter, but this build is without libpng support; falling back to 8bpp graphics
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xc0707017
0x00314354 in DrawFrameRect (left=50, top=129, right=69, bottom=137, colour=3087008273, flags=FR_LOWERED) at /Users/nathanael/Development/openttd-svn/src/widget.cpp:167
167 uint dark = _colour_gradient[colour][3];
(gdb) bt
# 0 0x00314354 in DrawFrameRect (left=50, top=129, right=69, bottom=137, colour=3087008273, flags=FR_LOWERED) at /Users/nathanael/Development/openttd-svn/src/widget.cpp:167
# 1 0x002546cc in SettingEntry::DrawSetting (this=0x752568, settings_ptr=0x719aa0, sd=0x6ca980, left=50, right=432, y=129, state=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1158
# 2 0x00254df0 in SettingEntry::Draw (this=0x752568, settings_ptr=0x719aa0, left=5, right=432, base_y=19, first_row=0, max_row=33, cur_row=10, parent_last=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1089
# 3 0x002550ac in SettingsPage::Draw (this=0x6cb960, settings_ptr=0x719aa0, left=5, right=432, base_y=19, first_row=0, max_row=33, cur_row=10, parent_last=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1258
# 4 0x00254fe8 in SettingEntry::Draw (this=0x752338, settings_ptr=0x719aa0, left=5, right=432, base_y=19, first_row=0, max_row=33, cur_row=2, parent_last=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1105
# 5 0x002550ac in SettingsPage::Draw (this=0x6cb908, settings_ptr=0x719aa0, left=5, right=432, base_y=19, first_row=0, max_row=33, cur_row=1, parent_last=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1258
# 6 0x00254fe8 in SettingEntry::Draw (this=0x751ca8, settings_ptr=0x719aa0, left=5, right=432, base_y=19, first_row=0, max_row=33, cur_row=1, parent_last=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1105
# 7 0x002550ac in SettingsPage::Draw (this=0x6cb968, settings_ptr=0x719aa0, left=5, right=432, base_y=19, first_row=0, max_row=33, cur_row=0, parent_last=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1258
# 8 0x00607d48 in GameSettingsWindow::DrawWidget (this=0x33ff270, r=@0xbfffda1c, widget=0) at /Users/nathanael/Development/openttd-svn/src/settings_gui.cpp:1564
# 9 0x0031c4d4 in NWidgetBackground::Draw (this=0x33ff490, w=0x33ff270) at /Users/nathanael/Development/openttd-svn/src/widget.cpp:1737
# 10 0x003186e4 in NWidgetPIPContainer::Draw (this=0x33ff440, w=0x33ff270) at /Users/nathanael/Development/openttd-svn/src/widget.cpp:1023
# 11 0x003186e4 in NWidgetPIPContainer::Draw (this=0x33ff3f0, w=0x33ff270) at /Users/nathanael/Development/openttd-svn/src/widget.cpp:1023
# 12 0x00314684 in Window::DrawWidgets (this=0x33ff270) at /Users/nathanael/Development/openttd-svn/src/widget.cpp:547
# 13 0x004b4d48 in Window::OnPaint (this=0x33ff270) at /Users/nathanael/Development/openttd-svn/src/ai/../window_gui.h:465
# 14 0x0032418c in DrawOverlappedWindow (w=0x33ff270, left=512, top=72, right=576, bottom=488) at /Users/nathanael/Development/openttd-svn/src/window.cpp:523
# 15 0x00324288 in DrawOverlappedWindowForAll (left=512, top=72, right=576, bottom=488) at /Users/nathanael/Development/openttd-svn/src/window.cpp:546
# 16 0x000f2608 in RedrawScreenRect (left=512, top=72, right=576, bottom=488) at /Users/nathanael/Development/openttd-svn/src/gfx.cpp:1557
# 17 0x000f2b88 in DrawDirtyBlocks () at /Users/nathanael/Development/openttd-svn/src/gfx.cpp:1643
# 18 0x0032a200 in UpdateWindows () at /Users/nathanael/Development/openttd-svn/src/window.cpp:2440
# 19 0x00331f98 in QZ_GameLoop () at /Users/nathanael/Development/openttd-svn/src/video/cocoa/event.mm:617
# 20 0x0032d5fc in -[OTTDMain applicationDidFinishLaunching:] (self=0x3352b20, _cmd=0x3665f0, note=0x3338c50) at /Users/nathanael/Development/openttd-svn/src/video/cocoa/cocoa_v.mm:66
# 21 0x92be5e1c in _nsnote_callback ()
# 22 0x90805ec0 in __CFXNotificationPost ()
# 23 0x907fdf20 in _CFXNotificationPostNotification ()
# 24 0x92bd0224 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
# 25 0x93793be8 in -[NSApplication _postDidFinishNotification] ()
# 26 0x93793ad4 in -[NSApplication _sendFinishLaunchingNotification] ()
# 27 0x9379361c in -[NSApplication(NSAppleEventHandling) _handleAEOpen:] ()
# 28 0x937931c4 in -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] ()
# 29 0x92be6e28 in -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] ()
# 30 0x92be6c88 in _NSAppleEventManagerGenericHandler ()
# 31 0x91500960 in aeDispatchAppleEvent ()
# 32 0x915007fc in dispatchEventAndSendReply ()
# 33 0x91500654 in aeProcessAppleEvent ()
# 34 0x932af2e0 in AEProcessAppleEvent ()
# 35 0x9379190c in _DPSNextEvent ()
# 36 0x937913f8 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
# 37 0x9378d93c in -[NSApplication run] ()
# 38 0x0032e804 in VideoDriver_Cocoa::MainLoop (this=0x334c770) at /Users/nathanael/Development/openttd-svn/src/video/cocoa/cocoa_v.mm:318
# 39 0x001b53e4 in ttd_main (argc=1, argv=0xbffffaf0) at /Users/nathanael/Development/openttd-svn/src/openttd.cpp:762
# 40 0x001c3d30 in main (argc=1, argv=0xbffffaf0) at /Users/nathanael/Development/openttd-svn/src/os/unix/unix.cpp:266
(gdb)


This comment was imported from FlySpray: https://bugs.openttd.org/task/4345#comment9351

@DorpsGek
Copy link
Member Author

planetmaker closed the ticket.

Reason for closing: Implemented

in r21656


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

@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