Nothing entered.
[http://sourceforge.net/p/ufoai/bugs/2081 Item 2081] imported from sourceforge.net tracker on 2013-01-28 19:18:54
System: Mac G4 10.5.6 iBook G4, Radeon Mobility 9550.
Ufo AI is crashing the display system of the mac.
I can move the mouse around, but nothing changes on screen.
The clock in the upper right.
The terminal window with a tail -f /var/log/system.log
None of the keys work -- f8 through f12, ctrl-c, etc.
Sound still plays.
The mouse moves
Eventually, the mouse turns into a spinningwheel.
I can close the lid, and the computer goes to sleep -- much slower than normal.
I can open the lid and wake the computer up.
This last time (attached log) I only had to change the display resolution, no need to load a map.
Reproducibility: 100% (4 out of 4 tried. The first three died on loading a map -- display the map, lock up the screen. The fourth died on the resolution change, no map load.)
Kleiman-ibook:trunk michael$ svn info
Path: .
URL: https://ufoai.svn.sourceforge.net/svnroot/ufoai/ufoai/trunk
Repository Root: https://ufoai.svn.sourceforge.net/svnroot/ufoai
Repository UUID: 39b98707-f80d-0410-bc7e-c6b02f5409da
Revision: 23686
Node Kind: directory
Schedule: normal
Last Changed Author: bayo-fr
Last Changed Rev: 23686
Last Changed Date: 2009-03-24 15:23:12 -0700 (Tue, 24 Mar 2009)
Kleiman-ibook:trunk michael$
Kleiman-ibook:trunk michael$ svn diff
Index: src/server/sv_init.c
===================================================================
--- src/server/sv_init.c (revision 23686)
+++ src/server/sv_init.c (working copy)
@@ -291,6 +291,7 @@
/* successfully parsed - this tile counts */
numTiles++;
+ Com_Printf("SV_ParseMapTile: Just incremented numTiles, now %d\n", numTiles);
}
Index: src/ports/unix/unix_main.c
===================================================================
--- src/ports/unix/unix_main.c (revision 23686)
+++ src/ports/unix/unix_main.c (working copy)
@@ -520,6 +520,8 @@
#ifdef HAVE_CURSES
signal(SIGWINCH, Sys_Signal);
#endif
+ /* apple provides a nice backtrace feature on their own */
+#if !(defined (__APPLE__) || defined (MACOSX))
signal(SIGHUP, Sys_Signal);
signal(SIGINT, Sys_Signal);
signal(SIGQUIT, Sys_Signal);
@@ -528,4 +530,5 @@
signal(SIGFPE, Sys_Signal);
signal(SIGSEGV, Sys_Signal);
signal(SIGTERM, Sys_Signal);
+#endif
}
Index: src/common/cmodel.c
===================================================================
--- src/common/cmodel.c (revision 23686)
+++ src/common/cmodel.c (working copy)
@@ -164,6 +164,8 @@
}
out->headnode = LittleLong(in->headnode);
out->tile = numTiles; /* backlink to the loaded map tile */
+if (0 == i) Com_Printf("CMod_LoadSubModels: Using numTiles for curTile, now %d\n", numTiles);
+assert(curTile == &mapTiles[numTiles]);
}
}
@@ -288,6 +290,15 @@
out->firstbrushside = LittleLong(in->firstbrushside);
out->numsides = LittleLong(in->numsides);
out->contentFlags = LittleLong(in->contentFlags);
+/* BUGFIX! Local maps don't have the right byteswap */
+/* This is here only because I could not figure out how to fix ufo2map */
+ if (out->numsides > in->numsides) {
+ out->firstbrushside = in->firstbrushside;
+ out->numsides = in->numsides;
+ out->contentFlags = in->contentFlags;
+if (0 == i) Com_Printf("Byteswap error in map brushes\n");
+ }
+if (0 == i) Com_Printf("Read brushes, numsides %d\n", out->numsides);
}
}
@@ -903,6 +914,8 @@
}
/* Update the reroute table */
if (!reroute[size][y][x]) {
+ /* This is 1 off from the current tile */
+ /* But it can't be zero, so that's intentional??? */
reroute[size][y][x] = numTiles;
} else {
reroute[size][y][x] = ROUTING_NOT_REACHABLE;
@@ -1069,6 +1082,7 @@
Com_Error(ERR_FATAL, "CM_AddMapTile: too many tiles loaded %i", numTiles);
curTile = &mapTiles[numTiles];
+Com_Printf("CM_AddMapTile: curTile now matches numTile (%d).\n", numTiles);
memset(curTile, 0, sizeof(*curTile));
Q_strncpyz(curTile->name, name, sizeof(curTile->name));
@@ -1104,6 +1118,7 @@
/* now increase the amount of loaded tiles */
numTiles++;
+Com_Printf("CM_AddMapTile: numTiles++ (now %d); curTile no longer matches numTile.\n", numTiles);
CMod_LoadRouting(name, &header.lumps[LUMP_ROUTING], sX, sY, sZ);
FS_FreeFile(buf);
Index: build/maps.mk
===================================================================
--- build/maps.mk (revision 23686)
+++ build/maps.mk (working copy)
@@ -32,7 +32,8 @@
endif
NICE = 19
-UFO2MAPFLAGS = -v 2 -nice $(NICE) -extra -t $(NUMTHREADS)
+# UFO2MAPFLAGS = -v 2 -nice $(NICE) -extra -t $(NUMTHREADS)
+UFO2MAPFLAGS = -nice $(NICE) -extra -t $(NUMTHREADS)
FAST_UFO2MAPFLAGS = -v 2 -quant 6 -nice $(NICE) -t $(NUMTHREADS)
ENTS_UFO2MAPFLAGS = -v 2 -nice $(NICE) -onlyents
Kleiman-ibook:trunk michael$
Kleiman-ibook:trunk michael$
===== Comments Ported from Sourceforge =====
====== keybounce (2009-03-25 03:42:53) ======
Console log of running Ufo
====== tlh2000 (2009-03-27 06:56:39) ======
about the map issue - please try the attached patch
about the endless loop (or whatever it is) are you running fullscreen or windowed?
====== tlh2000 (2009-03-27 06:56:57) ======
endian bugfix?
====== tlh2000 (2009-03-27 06:59:02) ======
oh and about the shader issue (they don't link for you) please update to latest trunk revision and try again. And pelase post any "R_LoadProgram:" error here, too
====== tlh2000 (2009-06-30 15:33:18) ======
should already be fixed in trunk
====== sf-robot (2009-07-15 02:20:34) ======
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).