[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Update of bug #21942 (project freeciv): Status: Ready For Test = Fixed Assigned to:None = cazfi Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Follow-up Comment #11, bug #21942 (project freeciv): Tested the patch with S2_5 (rev27747, gtk3), and it fixes the crash for me. Good job, thank you. About bug #21851, it either does not affect gtk3, or this patch fixes it too, because there is no memory leak when I scroll the items of the production menu. Tested with default theme, and also with oxygen. I just noticed a minor visual glitch when I place the mouse over an item of the dropdown menu, and then I use the mouse wheel to scroll down. The items are highlighted when they pass under the cursor, and then not properly un-highlighted. Note that there is no glitch if I use the cursor keys or the mouse alone, but only when mixed with the mouse wheel. Attached screenshot: (file #23726) ___ Additional Item Attachment: File name: production_menu.jpgSize:117 KB ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Mensaje enviado vía/por Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Update of bug #21942 (project freeciv): Planned Release: = 2.5.0, 2.6.0 ___ Follow-up Comment #9: Reported to affect S2_5 too on bug #21851 ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Update of bug #21942 (project freeciv): Status:None = Ready For Test Planned Release:2.5.0, 2.6.0 = 2.4.5, 2.5.0, 2.6.0, 3.0.0 ___ Follow-up Comment #10: The fact that I cannot reproduce seems to indicate that our versions of gtk behave differently. From you backtrace one can see that when cma presets are being filled to the list, gtk signals cause cell_data_func() to be called already when the row is being created. It would be only next operation to add data (cma preset name) to it. cell_data_func() crashes when feeded row with NULL preset name on it. Attached patch should protect cell_data_func() against such a crash. It also fixes the minimal memory leak of fetched preset name not being freed. Patch makes the change to both gtk2- and gtk3-client as it makes things only safer - can't hurt gtk2-client either. I hope you gtk signals cell_data_func() also at the right time - when actual preset name then is there. It not doing that would mean that the currently preset currently selected for the city would not be drawn italix bold when city dialog is (re)opened. (file #23722) ___ Additional Item Attachment: File name: CmaNotNamedYet.patch Size:1 KB ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Update of bug #21942 (project freeciv): Category:None = client-gtk-3.0 ___ Follow-up Comment #8: Bug #22833 is another report of this (same backtrace signature). ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Update of bug #21942 (project freeciv): Release: = trunk r25130 ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Follow-up Comment #7, bug #21942 (project freeciv): The first attached file was the gdb backtrace with kubuntu 13.10. This one with kubuntu 14.04, TRUNK rev25130, and gtk3 client. The gtk2 client of same revision seems to work fine for me. I can even see the unit animations that I haven't seen for long time. (file #21025) ___ Additional Item Attachment: File name: gtk3 crash - gdb backtrace2.txt Size:11 KB ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Mensaje enviado vía/por Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Follow-up Comment #4, bug #21942 (project freeciv): Maybe related: In crosser development version based Windows builds from freeciv trunk all clients crash when city dialog is being opened. Have not yet tested with older crosser revision (that is known be working earlier) or other freeciv branches. ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Follow-up Comment #5, bug #21942 (project freeciv): Let me know if there is something I can do to help find the cause. ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Mensaje enviado vía/por Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Follow-up Comment #6, bug #21942 (project freeciv): As my problem is probably separate from this one, I opened new ticket for it to keep it clear which problem each bit of gathered information is related to: bug #22193 Can you provide backtrace from your crashing client? gdb client/freeciv-gtk3 In gdb prompt: run Play until it crashes and returns to gdb prompt. Then: backtrace full ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Follow-up Comment #2, bug #21942 (project freeciv): I just updated to kubuntu 14.04, I compiled rev25134 with gtk3 enabled, and it keep crashing when I build my first city. ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Mensaje enviado vía/por Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Follow-up Comment #3, bug #21942 (project freeciv): it seems something related to the 64 bits OS. Doesn't it? It just shows that you're using 64 bit version. In recent years all the 32bit/64bit incompatibilities in freeciv have been problems with 32bits as such systems are rarely used by the development team any more (I switched to 64bit OS 2006, so...) ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
URL: http://gna.org/bugs/?21942 Summary: Crash when opening city window with gtk3 Project: Freeciv Submitted by: bardo Submitted on: dom 20 abr 2014 00:53:45 UTC Category: None Severity: 3 - Normal Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Release: Discussion Lock: Any Operating System: None Planned Release: ___ Details: When I start a game with gtk3 client, the game crashes as soon as I build the first city. If I load a savegame, the game crashes when I open a city window. This is the error output: (freeciv-gtk3:12423): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height 424 Segmentation fault (core dumped) Attached file with backtrace from gdb. ___ File Attachments: --- Date: dom 20 abr 2014 00:53:45 UTC Name: gtk3 crash.txt Size: 11kB By: bardo http://gna.org/bugs/download.php?file_id=20529 ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Mensaje enviado vía/por Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #21942] Crash when opening city window with gtk3
Follow-up Comment #1, bug #21942 (project freeciv): This is the gdb output, and it seems something related to the 64 bits OS. Doesn't it? (freeciv-gtk3:11667): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -3 and height 424 (freeciv-gtk3:11667): Gdk-CRITICAL **: gdk_window_process_updates: assertion 'GDK_IS_WINDOW (window)' failed Program received signal SIGSEGV, Segmentation fault. __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp-sse42.S:164 164 ../sysdeps/x86_64/multiarch/strcmp-sse42.S: No existe el archivo o el directorio. My system info: - kubuntu 13.10 (64 bits) - kernel 3.11.0-19-generic - kde 4.11.5 - intel HD graphics 2500 ___ Reply to this item at: http://gna.org/bugs/?21942 ___ Mensaje enviado vía/por Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev