crossfire 1.7.0 crashing on start

A place for people to post strange occurances that could be potential bugs.

Moderator: Board moderators

Post Reply
Guest

crossfire 1.7.0 crashing on start

Post by Guest »

I am running win98
GTK 2.2.4-3 (tried dl 2.2.4-2 but it was a zip filed with zip files and did not know where to put them)
crossfire 1.7.0 (tried 1.6.0, 1.6.1 and opgl but had missing files problems)

Error messages on GTKClient DOS window

[ ERROR ] (Library:: Gdk-CRITICAL) file gdkfont.c: line 123(gdk_char_width):assertion `font ! NULL' failed

[ ERROR ] (Library:: Gdk-CRITICAL) file gdkfont.c: line 315(gdk_char_height):assertion `font ! NULL' failed

[WARNING ] (Library::** WARNING) Couldn't load font "MS Sans Serif 9" falling back to "Sans 9" this looks like it might be in a loop it repeats alot but occasionally breaks out for other errors then repeats some more

[ info ] (init_sounds) using regular windows playsound unable to open ./sounds - will use built in defaults

[WARNING ] (common::metaserver_get_info) Corrupt line from server: 212.41.248.75 | 335

now I enter a server launcing

crossfire.metalforge.net
enter name
enter pasword
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c 665: SelectObject failed
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c 666: DeleteDC failed
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c 667: DeleteDC failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c 895: createCompatibleDC failed

[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c 1227: MoveToEx failed
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c 1244 LineTo failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :1046: GetCurrentObject failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :1048: RestoredDC failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :1051:DeleteDC failed
I am running win98
GTK 2.2.4-3 (tried dl 2.2.4-2 but it was a zip filed with zip files and did not know where to put them)
crossfire 1.7.0 (tried 1.6.0, 1.6.1 and opgl but had missing files problems)

Error messages on GTKClient DOS window

[ ERROR ] (Library:: Gdk-CRITICAL) file gdkfont.c: line 123(gdk_char_width):assertion `font ! NULL' failed

[ ERROR ] (Library:: Gdk-CRITICAL) file gdkfont.c: line 315(gdk_char_height):assertion `font ! NULL' failed

[WARNING ] (Library::** WARNING) Couldn't load font "MS Sans Serif 9" falling back to "Sans 9" this looks like it might be in a loop it repeats alot but occasionally breaks out for other errors then repeats some more

[ info ] (init_sounds) using regular windows playsound unable to open ./sounds - will use built in defaults

[WARNING ] (common::metaserver_get_info) Corrupt line from server: 212.41.248.75 | 335

now I enter a server launcing

crossfire.metalforge.net
enter name
enter pasword
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c 665: SelectObject failed
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c 666: DeleteDC failed
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c 667: DeleteDC failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c 895: createCompatibleDC failed

[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c 1227: MoveToEx failed
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c 1244 LineTo failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :1046: GetCurrentObject failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :1048: RestoredDC failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :1051:DeleteDC failed
I am running win98
GTK 2.2.4-3 (tried dl 2.2.4-2 but it was a zip filed with zip files and did not know where to put them)
crossfire 1.7.0 (tried 1.6.0, 1.6.1 and opgl but had missing files problems)

Error messages on GTKClient DOS window

[ ERROR ] (Library:: Gdk-CRITICAL) file gdkfont.c: line 123(gdk_char_width):assertion `font ! NULL' failed

[ ERROR ] (Library:: Gdk-CRITICAL) file gdkfont.c: line 315(gdk_char_height):assertion `font ! NULL' failed

[WARNING ] (Library::** WARNING) Couldn't load font "MS Sans Serif 9" falling back to "Sans 9" this looks like it might be in a loop it repeats alot but occasionally breaks out for other errors then repeats some more

[ info ] (init_sounds) using regular windows playsound unable to open ./sounds - will use built in defaults

[WARNING ] (common::metaserver_get_info) Corrupt line from server: 212.41.248.75 | 335

now I enter a server launcing

crossfire.metalforge.net
enter name
enter pasword
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c 665: SelectObject failed
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c :666: DeleteDC failed
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c :667: DeleteDC failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :895: createCompatibleDC failed

[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c :1227: MoveToEx failed
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c :1244 LineTo failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :1046: GetCurrentObject failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :1048: RestoredDC failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :1051:DeleteDC failed
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c :1474: CreateCompatibleDC failed

[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :895: CreatCompatableDC failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :1046: GetCurrentObject failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :1048: restoreDC failed
[WARNING ] (Library::Gdk-WARRNING) gdkgc-win32.c :1051: DeletDC failed
then it loops into
[WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c :1474: CreateCompatibleDC failed
then I get a whole bunch of [WARNING ] (Library::Gdk-WARRNING) gdkdrawable-win32.c :(1048, 1051, 895, 755,1046, 1048,1051,895,895,337,1046,1048,1051,548, 562, 567,594, 600,605,606,637);
the program takes forever to load
if the graphics do load I play for a little bit then the graphics screen gose black or has problems lifting shadow areas or dose not go black and then the prgram preforms an illegal action and crashes[/i]
Ryo
Forum Fanatic
Posts: 752
Joined: Mon May 19, 2003 9:16 pm
Location: Paris, France

Post by Ryo »

I'm not sure Win98 is able to run Crossfire...
Let's say the graphic resources management system isn't that great, and CF eats up a lot...
Guest

Some errors not just win32

Post by Guest »

I get the same errors using linux on an x86_64 host, with libpng 1.2.8 (occurs also with 1.2.7)
Below is some output from a cvs build as of today. Note: I changed some code (gtk/map.c:579, iirc) to not run when pixmaps == 0x0, which was causing an earlier segfault.
There's some insanity in the image loading code but I find myself unable to figure it out. I don't know if this is the same bug or not, but it seems similar. BTW, the crash occurs whenever I try to connect to any server, as soon as it attempts to load images, every time.

user@host ~/crossfire/image $ bin/gcfclient 2>&1 | tail -n 50
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 288 (gdk_gc_unref): assertion `gc != NULL' failed.
libpng error: Invalid image width
[ ERROR ] (Library::Gdk-CRITICAL) file gdkpixmap.c: line 63 (gdk_pixmap_new): assertion `(width != 0) && (height != 0)' failed .
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion `window != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 502 (gdk_gc_set_function): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkpixmap.c: line 63 (gdk_pixmap_new): assertion `(width != 0) && (height != 0)' failed .
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion `window != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 456 (gdk_gc_set_foreground): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkdraw.c: line 89 (gdk_draw_rectangle): assertion `drawable != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 456 (gdk_gc_set_foreground): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkpixmap.c: line 822 (gdk_pixmap_unref): assertion `pixmap != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 288 (gdk_gc_unref): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 288 (gdk_gc_unref): assertion `gc != NULL' failed.
libpng error: Invalid image width
[ ERROR ] (Library::Gdk-CRITICAL) file gdkpixmap.c: line 63 (gdk_pixmap_new): assertion `(width != 0) && (height != 0)' failed .
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion `window != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 502 (gdk_gc_set_function): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkpixmap.c: line 63 (gdk_pixmap_new): assertion `(width != 0) && (height != 0)' failed .
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion `window != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 456 (gdk_gc_set_foreground): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkdraw.c: line 89 (gdk_draw_rectangle): assertion `drawable != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 456 (gdk_gc_set_foreground): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkpixmap.c: line 822 (gdk_pixmap_unref): assertion `pixmap != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 288 (gdk_gc_unref): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 288 (gdk_gc_unref): assertion `gc != NULL' failed.
libpng error: Invalid image width
[ ERROR ] (Library::Gdk-CRITICAL) file gdkpixmap.c: line 63 (gdk_pixmap_new): assertion `(width != 0) && (height != 0)' failed .
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion `window != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 502 (gdk_gc_set_function): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkpixmap.c: line 63 (gdk_pixmap_new): assertion `(width != 0) && (height != 0)' failed .
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion `window != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 456 (gdk_gc_set_foreground): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkdraw.c: line 89 (gdk_draw_rectangle): assertion `drawable != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 456 (gdk_gc_set_foreground): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkpixmap.c: line 822 (gdk_pixmap_unref): assertion `pixmap != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 288 (gdk_gc_unref): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 288 (gdk_gc_unref): assertion `gc != NULL' failed.
libpng error: Invalid image width
[ ERROR ] (Library::Gdk-CRITICAL) file gdkpixmap.c: line 63 (gdk_pixmap_new): assertion `(width != 0) && (height != 0)' failed .
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion `window != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 502 (gdk_gc_set_function): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkpixmap.c: line 63 (gdk_pixmap_new): assertion `(width != 0) && (height != 0)' failed .
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 51 (gdk_gc_new_with_values): assertion `window != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 456 (gdk_gc_set_foreground): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkdraw.c: line 89 (gdk_draw_rectangle): assertion `drawable != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 456 (gdk_gc_set_foreground): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkpixmap.c: line 822 (gdk_pixmap_unref): assertion `pixmap != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 288 (gdk_gc_unref): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkgc.c: line 288 (gdk_gc_unref): assertion `gc != NULL' failed.
[ ERROR ] (Library::Gdk-CRITICAL) file gdkdraw.c: line 89 (gdk_draw_rectangle): assertion `drawable != NULL' failed.
user@host ~/crossfire/image $
[...]
(gdb) run
Program received signal SIGSEGV, Segmentation fault.
0x000000000042557f in gtk_draw_map (redraw=0) at map.c:579
579 if (pixmaps && the_map.cells[mx][my].heads[layer].face &&
(gdb) where 8
#0 0x000000000042557f in gtk_draw_map (redraw=0) at map.c:579
#1 0x000000000042045c in display_map_doneupdate (redraw=0) at gx11.c:5713
#2 0x000000000042aef8 in map1_common (data=0x7d3ed8 "", len=562, rev=1) at commands.c:1159
#3 0x000000000042af3c in Map1aCmd (data=0x7d3ed8 "", len=562) at commands.c:1174
#4 0x0000000000427825 in DoClient (csocket=0x6dede0) at client.c:152
#5 0x000000000040d911 in do_network () at gx11.c:346
#6 0x0000002a95d11f24 in gdk_io_invoke () from /usr/lib/libgdk-1.2.so.0
#7 0x000000300dc10c35 in g_io_unix_dispatch () from /usr/lib/libglib-1.2.so.0
(More stack frames follow...)
(gdb)
Post Reply