2.0.8 rc1 savegame problem on Mac OS X

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
nesh
Greenhorn
Posts: 9
Joined: 20 Nov 2007, 23:08

2.0.8 rc1 savegame problem on Mac OS X

Post by nesh »

(I tried to post this as a bug but my IP is blacklisted)

Related to bug https://gna.org/bugs/?10142

I can confirm that problem exists also with 2.0.8 rc1 -- save after mission is finished works, but in-game saves are not (I tried multiple times but no luck).

Code: Select all

[0x0-0x71071].net.wz2100.Warzone[1025]: Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
Hmmm, maybe I'm wrong, but /Users/freddie/... is definitely not a path which is available on my machine.

Tried on 10.5.1 Intel MacBook.
EvilGuru
Regular
Regular
Posts: 615
Joined: 23 Jun 2007, 22:41

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by EvilGuru »

nesh wrote: Hmmm, maybe I'm wrong, but /Users/freddie/... is definitely not a path which is available on my machine.

Tried on 10.5.1 Intel MacBook.
There are two kinds of people in the world: those called Freddie and those who wish they were called Freddie  ;) And lucking I am called Freddie.

It is a side-effect of Apples C compiler, which embeds the full file path as opposed to just the file name.

Regards, Freddie.
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by Giel »

EvilGuru wrote: It is a side-effect of Apples C compiler, which embeds the full file path as opposed to just the file name.
Which means that it embeds the full file path on the computer that was used to build the executable....
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
nesh
Greenhorn
Posts: 9
Joined: 20 Nov 2007, 23:08

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by nesh »

EvilGuru wrote: There are two kinds of people in the world: those called Freddie and those who wish they were called Freddie  ;) And lucking I am called Freddie.

It is a side-effect of Apples C compiler, which embeds the full file path as opposed to just the file name.

Regards, Freddie.
My err, I (wrongly) assumed that this path have something with the crash, this time I'll post full log (system.log):

Code: Select all

Nov 21 19:18:30 heracle /_games/Warzone 2100.app/Contents/MacOS/Warzone[11367]: CPSGetCurrentProcess(): This call is deprecated and should not be called anymore.
Nov 21 19:18:30 heracle /_games/Warzone 2100.app/Contents/MacOS/Warzone[11367]: CPSSetForegroundOperationState(): This call is deprecated and should not be called anymore.
Nov 21 19:18:40 heracle [0x0-0x135135].net.wz2100.Warzone[11367]: error:      resGetDataFromHash: Unknown ID: 0 Type: WAV
Nov 21 19:18:40 heracle [0x0-0x135135].net.wz2100.Warzone[11367]: error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c:539 : resGetDataFromHash (FALSE)
Nov 21 19:18:40 heracle [0x0-0x135135].net.wz2100.Warzone[11367]: Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
Nov 21 19:18:42 heracle ReportCrash[11368]: Formulating crash report for process Warzone[11367]
Nov 21 19:18:43 heracle com.apple.launchd[556] ([0x0-0x135135].net.wz2100.Warzone[11367]): Exited abnormally: Abort trap
Nov 21 19:18:43 heracle ReportCrash[11368]: Saved crashreport to /Users/nesh/Library/Logs/CrashReporter/Warzone_2007-11-21-191840_heracle.crash using uid: 501 gid: 501, euid: 501 egid: 501
And attached is crash reporter log.
You do not have the required permissions to view the files attached to this post.
Contradude
New user
Posts: 1
Joined: 29 Nov 2007, 10:28

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by Contradude »

I am having a similar issue to above... is there any work around?

Code: Select all

2007-11-29 03:10:37 -0500
2007-11-29 03:10:37.966 loginwindow[179] FSResolveAliasWithMountFlags returned err = -43
2007-11-29 03:10:39.731 HPEventHandler[437]: DebugAssert: Third Party Client: (NULL != m_lock && 0 == errno)  Can't create semaphore lock[/Volumes/Development/HP/Mac-Sirani/mac-software/components/HPEventHandler/Sources/Core/HPTMNotificationManager.cpp:62]
2007-11-29 03:10:46.342 SystemUIServer[318] lang is:en
Nov 29 03:10:50 Parker-Familys-MiniMac-Computer diskarbitrationd[40]: SystemUIServer [318]:19715 not responding.
error:      resGetDataFromHash: Unknown ID: 0 Type: WAV
error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c:539 : resGetDataFromHash (FALSE)
Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
error:      resGetDataFromHash: Unknown ID: 0 Type: WAV
error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c:539 : resGetDataFromHash (FALSE)
Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
error:      resGetDataFromHash: Unknown ID: 0 Type: WAV
error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c:539 : resGetDataFromHash (FALSE)
Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
error:      resGetDataFromHash: Unknown ID: 0 Type: WAV
error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c:539 : resGetDataFromHash (FALSE)
Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
error:      loadFile2: optional file sequenceaudio/brfcom.txt could not be found!
error:      loadFile2: optional file sequenceaudio/cam1/cam1ascv.txt could not be found!
error:      pie_ReloadTexPage failed
error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../src/data.c:912 : bufferTexPageLoad (id >=0)
Assertion failed: (id >=0), function bufferTexPageLoad, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../src/data.c, line 912.
2007-11-29 03:18:55.164 SystemUIServer[318] _MDOpenNodeInFinder returned 0
error:      resGetDataFromHash: Unknown ID: 0 Type: WAV
error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c:539 : resGetDataFromHash (FALSE)
Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
error:      resGetDataFromHash: Unknown ID: 0 Type: WAV
error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c:539 : resGetDataFromHash (FALSE)
Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
error:      resGetDataFromHash: Unknown ID: 0 Type: WAV
error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c:539 : resGetDataFromHash (FALSE)
Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
error:      loadFile2: file savegame/campaign/ttypes.ttp could not be found!
Assertion failed: (FALSE), function loadFile2, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frame.c, line 523.
error:      loadFile2: file savegame/campaign/ttypes.ttp could not be found!
Assertion failed: (FALSE), function loadFile2, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frame.c, line 523.
error:      resGetDataFromHash: Unknown ID: 0 Type: WAV
error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c:539 : resGetDataFromHash (FALSE)
Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
error:      resGetDataFromHash: Unknown ID: 0 Type: WAV
error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c:539 : resGetDataFromHash (FALSE)
Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
error:      resGetDataFromHash: Unknown ID: 0 Type: WAV
error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c:539 : resGetDataFromHash (FALSE)
Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
error:      resGetDataFromHash: Unknown ID: 0 Type: WAV
error:      Assert in Warzone: /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c:539 : resGetDataFromHash (FALSE)
Assertion failed: ((0)), function resGetDataFromHash, file /Users/freddie/Documents/Programming/2.0.8_rc1/macosx/../lib/framework/frameresource.c, line 539.
Last edited by Contradude on 29 Nov 2007, 10:47, edited 1 time in total.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by DevUrandom »

Issue and workaround are unknown, afaik. Sorry.
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by Giel »

Looking at both logs I now realise that both are trying to load a file with a hash of 0 (zero). Which most likely indicates they're trying to load a file with "" as filename (yes that means an empty/non-existent filename). So I'm reasonably sure that your savegame is corrupted.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
nesh
Greenhorn
Posts: 9
Joined: 20 Nov 2007, 23:08

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by nesh »

Giel wrote: Looking at both logs I now realise that both are trying to load a file with a hash of 0 (zero). Which most likely indicates they're trying to load a file with "" as filename (yes that means an empty/non-existent filename). So I'm reasonably sure that your savegame is corrupted.
I wish that this is a reason (so I don't have to boot windows just to play WZ  ;)) -- but no, windows version loads the same save games without problems. Also I can't load saves saved with win verson too. Only save which can be loaded is one which is saved after mission completion.

BTW if I'm not (again) misunderstood log it fails when trying to load WAV file:

Code: Select all

resGetDataFromHash: Unknown ID: 0 Type: WAV
Also (and maybe unrelated), after finishing mission and saving WZ crashes at the start of the next mission. If I quit to the main menu and load then it works.

p.s. My english sucks, I know -- sorry :)
User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by Buginator »

Giel wrote: Looking at both logs I now realise that both are trying to load a file with a hash of 0 (zero). Which most likely indicates they're trying to load a file with "" as filename (yes that means an empty/non-existent filename). So I'm reasonably sure that your savegame is corrupted.
I wouldn't say it was corrupted.
They should be able to play those savegames if you do the --nosound command line option, or if possible, just get the source themselves, and compile it.  That condition should be fixed in the latest trunk version, so it don't crash the game anymore when we get these NULL filenames.
and it ends here.
nesh
Greenhorn
Posts: 9
Joined: 20 Nov 2007, 23:08

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by nesh »

Buginator wrote: I wouldn't say it was corrupted.
They should be able to play those savegames if you do the --nosound command line option, or if possible, just get the source themselves, and compile it.  That condition should be fixed in the latest trunk version, so it don't crash the game anymore when we get these NULL filenames.
You are right, --nosound fixes the problem :D

Now, if I can get it compile on the leopard .... (pointers?)
EvilGuru
Regular
Regular
Posts: 615
Joined: 23 Jun 2007, 22:41

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by EvilGuru »

nesh wrote: You are right, --nosound fixes the problem :D

Now, if I can get it compile on the leopard .... (pointers?)
The trunk does not currently compile, however the 2.0.x branch does. To do this you will need to first grab yourself a copy of subversion (http://subversion.tigris.org/project_packages.html ). Next you need to update bison. This is done by downloading the source of a newer version from the GNU project website, ./configure && make && sudo make install it. Last checkout the 2.0.x branch, open the Xcode project and click build and go. It will do the rest.

Regards, Freddie.
nesh
Greenhorn
Posts: 9
Joined: 20 Nov 2007, 23:08

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by nesh »

EvilGuru wrote: The trunk does not currently compile, however the 2.0.x branch does. To do this you will need to first grab yourself a copy of subversion (http://subversion.tigris.org/project_packages.html ). Next you need to update bison. This is done by downloading the source of a newer version from the GNU project website, ./configure && make && sudo make install it. Last checkout the 2.0.x branch, open the Xcode project and click build and go. It will do the rest.

Regards, Freddie.
Wow, that's fast, thanks :)

I presume that I want branches/2.0 (R2913)? Or I have to use tags/2.0.8_rc1 (R2750)?

I'm not totally newbie, so maybe I can also help somewhat, at least, testing the mac port (my C is definitely rusty at least -- if you have python code lying somewhere then it's a different story ;) ).

BTW I'm trying to recruit my friend and co-worker which is a designer/musician to the cause ;)

And, thanks to all involved for this great game.
nesh
Greenhorn
Posts: 9
Joined: 20 Nov 2007, 23:08

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by nesh »

I used branches/2.0 and everything compiles but failed to link with the following error:

Code: Select all

duplicate symbol _mapTile in /Users/nesh/devel/_other/wz2100/macosx/build/Warzone.build/Debug/Warzone.build/Objects-normal/ppc/advvis.o and /Users/nesh/devel/_other/wz2100/macosx/build/Warzone.build/Debug/Warzone.build/Objects-normal/ppc/action.o
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18

Re: 2.0.8 rc1 savegame problem on Mac OS X

Post by Giel »

nesh wrote: I used branches/2.0 and everything compiles but failed to link with the following error:
Try 2.0.8 which has just been released: index.php?topic=1164.0
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh