Project

General

Profile

Bug #684183

"Unable to create Sprite (Surface) of size <huge>" when opening city dialog

Added by Marko Lindqvist 2 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
gui-sdl2
Target version:
Start date:
Due date:
% Done:

0%


Description

When ever sdl2-client city dialog is opened, error about failed surface creation gets printed to console. This seems to be caused by create_window_skeleton() taking size of the gui layers to create from the window title and create_window() passing it a utf8 string created from NULL as a title.

History

#1 Updated by Marko Lindqvist 2 months ago

1: Unable to create Sprite (Surface) of size 74670488 x 27 32 Bits in format 0
2: Backtrace:
2: 0: ./client/freeciv-sdl2(backtrace_print+0x29) [0x55b804839369]
2: 1: ./client/freeciv-sdl2(vdo_log+0x84) [0x55b80483e654]
2: 2: ./client/freeciv-sdl2(do_log+0x93) [0x55b80483e703]
2: 3: ./client/freeciv-sdl2(create_surf_with_format+0xad) [0x55b80472d39d]
2: 4: ./client/freeciv-sdl2(add_gui_layer+0x1e) [0x55b80472d43e]
2: 5: ./client/freeciv-sdl2(create_window_skeleton+0x13a) [0x55b80469f3fa]
2: 6: ./client/freeciv-sdl2(create_window+0x11) [0x55b80469f5a1]
2: 7: ./client/freeciv-sdl2(real_city_dialog_popup+0x93) [0x55b8047178e3]
2: 8: ./client/freeciv-sdl2(+0xdc62c) [0x55b80470762c]
2: 9: ./client/freeciv-sdl2(+0xdc402) [0x55b804707402]
2: 10: ./client/freeciv-sdl2(gui_event_loop+0x610) [0x55b804677020]
2: 11: ./client/freeciv-sdl2(ui_main+0x34a) [0x55b80467753a]
2: 12: ./client/freeciv-sdl2(client_main+0x3c4) [0x55b8046a6b74]
2: 13: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f2b8ed8b2b1]
2: 14: ./client/freeciv-sdl2(_start+0x2a) [0x55b80467611a]

Also available in: Atom PDF