bubba2251 / freerct

Automatically exported from code.google.com/p/freerct
0 stars 0 forks source link

Crash when dragging a window to top of main window #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Just drag a window to the top left corner and it will crash.

Version: r784
Os: Linux arch 3.9.7-1-ARCH #1 SMP PREEMPT Thu Jun 20 23:22:07 CEST 2013 i686 
GNU/Linux

Gdb output(moving the finance window):

Program received signal SIGSEGV, Segmentation fault.
0x0806f422 in VideoSystem::BlitText (this=0xbffffa68, text=0xbffff4b0 "Manage 
Finances", colour=1 '\001', xpos=-55, ypos=3, 
    width=232, align=ALG_CENTER) at video.cpp:635
635             if (*src2 != 0) *dest2 = colour;

Original issue reported on code.google.com by tnt.free...@gmail.com on 19 Jul 2013 at 11:35

GoogleCodeExporter commented 9 years ago
Looks like it's not only when moving to the top left corner, but always when 
the y coordinate of the text in the titlebar is < 0.

Original comment by tnt.free...@gmail.com on 20 Jul 2013 at 4:10

GoogleCodeExporter commented 9 years ago
Confirmed.

Bracktrace:

#0  0x000000000042e6f4 in VideoSystem::BlitText (this=0x7fffffffe610, 
text=0x7fffffffe040 "Modify landscape", colour=1 '\001', xpos=388, ypos=2, 
width=196, align=ALG_CENTER) at video.cpp:641
#1  0x000000000040c58d in DrawString (strid=88, colour=1 '\001', x=344, y=-7, 
width=196, align=ALG_CENTER) at gui_graphics.cpp:79
#2  0x0000000000436115 in DataWidget::Draw (this=0x780800, w=0x77fac0) at 
widget.cpp:437
#3  0x0000000000438756 in IntermediateWidget::Draw (this=0x77fb80, w=0x77fac0) 
at widget.cpp:945
#4  0x0000000000438756 in IntermediateWidget::Draw (this=0x77fb30, w=0x77fac0) 
at widget.cpp:945
#5  0x000000000043a43e in GuiWindow::OnDraw (this=0x77fac0) at window.cpp:406
#6  0x000000000043b528 in UpdateWindows () at window.cpp:912
#7  0x000000000043b5dc in WindowManager::Tick (this=0x6b1e40 <_manager>) at 
window.cpp:933
#8  0x000000000040dfa0 in main (argc=1, argv=0x7fffffffe808) at main.cpp:169

Original comment by CharlesP...@googlemail.com on 6 Aug 2013 at 9:08

GoogleCodeExporter commented 9 years ago

Original comment by CharlesP...@googlemail.com on 6 Aug 2013 at 3:06