Opened 9 years ago

Closed 9 years ago

#6845 closed bug (fixed)

[Media] crashed on start in BBitmap::Bounds ()

Reported by: diver Owned by: anevilyak
Priority: normal Milestone: R1
Component: Preferences/Media Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

hrev39530, gcc4 hybrid.

It crashed on start, next run worked fine though. Not reproducible.

Thread 787 caused an exception: Segment violation
[...]
[Switching to team /boot/system/preferences/Media (782) thread w>Media (787)]
0x00368ed7 in BBitmap::Bounds () from /boot/system/lib/libbe.so
(gdb) bt
#0  0x00368ed7 in BBitmap::Bounds () from /boot/system/lib/libbe.so
#1  0x00401c15 in BView::DrawBitmap () from /boot/system/lib/libbe.so
#2  0x0020d766 in MediaListItem::DrawItem ()
#3  0x0039b116 in BListView::DrawItem () from /boot/system/lib/libbe.so
#4  0x0039ba50 in BListView::Draw () from /boot/system/lib/libbe.so
#5  0x00402d13 in BView::_Draw () from /boot/system/lib/libbe.so
#6  0x0040e08e in BWindow::DispatchMessage () from /boot/system/lib/libbe.so
#7  0x00409bd9 in BWindow::task_looper () from /boot/system/lib/libbe.so
#8  0x0034ccea in BLooper::_task0_ () from /boot/system/lib/libbe.so
#9  0x00558a54 in thread_entry () from /boot/system/lib/libroot.so
#10 0x70080fec in ?? ()
(gdb)

Change History (1)

comment:1 by yourpalal, 9 years ago

Resolution: fixed
Status: newclosed

I think this should be fixed, in hrev40127, the icons were being initialized after the window was created, which was causing a race condition (whether or not the window got drawn before the icons were initialized). Now, the icons are initialized before the window is created. I also experienced this once, while testing some other changes I had made.

Note: See TracTickets for help on using tickets.