Page 46 of 154

Re: Cargo Distribution

Posted: 14 Nov 2009 21:47
by Creat
Fonso: in case you need the .pdb file of my compile to debug NekoMaster's crash, just let me know (it's 18 MB, so I didn't include it), I mean in case you can't reproduce it with your own compiles of the same version.
Shouldn't be the case though, since this is a straight forward compile in VS2008 from a git-checkout (and also a 'release' compile obviously).

Re: Cargo Distribution

Posted: 14 Nov 2009 21:50
by NekoMaster
petert wrote:
NekoMaster wrote:No, theres no dumps or logs, Ill be play ing and it will suddenly say "openttd has stopped working" and It shouldn't be that Im on windows 7, its the official release now, so, the old buld petert made a while back that i asked for still works like it should
Could you please just post your most recent savegame so that we can try to fix it.
Why dont you guys try it? Like i said, it crashes at random, I could spend all night waiting for a crash. No offense, but I think someone like petert should patch it, since the last one was done by him and its pretty stable, im still using it and it hasn't crashed once! btw the version im talking about is r17837M

Re: Cargo Distribution

Posted: 15 Nov 2009 07:16
by petert
Managed to make a .deb using the guide at the wiki.

Re: Cargo Distribution

Posted: 15 Nov 2009 07:24
by NekoMaster
petert wrote:Managed to make a .deb using the guide at the wiki.
Now you need to make a Win32 build :3

Re: Cargo Distribution

Posted: 15 Nov 2009 07:40
by petert
Wasn't one posted already? If I need to make one, it will have to wait, I'm in linux now and its 2:39 AM.

Re: Cargo Distribution

Posted: 15 Nov 2009 07:46
by NekoMaster
petert wrote:Wasn't one posted already? If I need to make one, it will have to wait, I'm in linux now and its 2:39 AM.
arlight.... the last one is the one that keeps crashing at random so Its hard to get a save game to show it crashing.like I said, your last one that you made when i asked still works, and hasn't crashed once, so I would prefer if you made it again :)

Re: Cargo Distribution

Posted: 15 Nov 2009 07:50
by petert
Ok, just remember, any savegame is of use to me/fonso to try to fix the problem. (No worries, I'm learning to cross-compile now)

Re: Cargo Distribution

Posted: 15 Nov 2009 08:11
by fonso
NekoMaster wrote: arlight.... the last one is the one that keeps crashing at random so Its hard to get a save game to show it crashing.like I said, your last one that you made when i asked still works, and hasn't crashed once, so I would prefer if you made it again :)
You seem to think those crashes are caused by the compiler or build environment. This is most likely not true. Even if the problem only shows with certain compilers and OS it's very likely that there is a bug in the source code. I suggest you help me find this bug. Just posting nebulous comments without any real information doesn't quite help, though. Traces of the problem might be found in any save of any game that has crashed on you. How come it is hard to get a savegame? Does it crash before you can click the "save" button? You could also tell us if it's always the same game you're playing or if there are several different saves and/or new games you have tried. You could give us the exact text of the error message. Is it really only a window with just the text "openttd has stopped working" or is there some more information?

Re: Cargo Distribution

Posted: 15 Nov 2009 08:58
by Hamilton2007
Wich one is better CargodEst or CargodIst ?

Or, what are the most important differences between the two?

Re: Cargo Distribution

Posted: 15 Nov 2009 11:24
by tsjook
Hamilton2007 wrote:Wich one is better CargodEst or CargodIst ?

Or, what are the most important differences between the two?
They are both for the same purposes, but Cargodest is abandoned and therefore not up to date.

Cargodist is alive and well, and you could help development by playing it and reporting any crashes/problems/suggestions you might have. Look in this thread, or on fonso's site, for the latest diff or compiled build.

Re: Cargo Distribution

Posted: 15 Nov 2009 15:54
by Auge
Hello
petert wrote:Ok, just remember, any savegame is of use to me/fonso to try to fix the problem. (No worries, I'm learning to cross-compile now)
While he can't or won't distribute you with the data, here it is.
CargoDist-crash_20091115.zip
contains crash.log, crash.sav and an older *.sav
(49.93 KiB) Downloaded 83 times
OS: Ubuntu 9.04, version: g843befd2 (compiled it myself from git repository).
The ZIP contains the crash.log, the crash.sav and additionally an older savegame. I doubt that you can benefit from it, because the savegame is from 8 or 9 years before the crash.

Tschö, Auge

Re: Cargo Distribution

Posted: 15 Nov 2009 17:07
by NekoMaster
I keep saying, its crashing is unpredictable for the last build, I can get to the save option, but I don't know when it will crash. it also crashes with out warning, so i could be playing a nice map and suddenly it will say openttd has stopped working :(

Re: Cargo Distribution

Posted: 15 Nov 2009 17:13
by Rubidium
NekoMaster wrote:I keep saying, its crashing is unpredictable for the last build
Lets make a basic script for you:
1: turn on autosave, set it to every month
2: load a game or start a new one
3: play
4: when it crashes load the last autosave
5: check whether the loaded autosave crashes within 1 month. If it does, give that autosave to fonso. If not continue with step #3.

Re: Cargo Distribution

Posted: 15 Nov 2009 21:38
by petert
@fonso, could you update soon? There have been many revisions today, and I'd like to compile an updated version of cdist. Git just doesn't want to work on windows, and I'm very new at my linux.

Re: Cargo Distribution

Posted: 15 Nov 2009 21:49
by Tvel
petert wrote: (No worries, I'm learning to cross-compile now)
If you can get the cross-compliling to work, could you tell me what you did. My mingw is installed, configure is ok, but i get some errors with compiling.
I'm on Ubuntu 9.10 too. :)

Re: Cargo Distribution

Posted: 15 Nov 2009 23:10
by Creat
@petert: I also use git on win, never had any problems...
If you you add the git/bin directory to the PATH variable via system settings (required for VS to detect source version on compile) and consistently work out of the git bash, everything should work just fine...

Re: Cargo Distribution

Posted: 16 Nov 2009 01:05
by petert
Tvel wrote: If you can get the cross-compliling to work, could you tell me what you did. My mingw is installed, configure is ok, but i get some errors with compiling.
I'm on Ubuntu 9.10 too. :)
Actually, I'm going to try Wine under Linux, and install everything like the Windows guide shows. The current cross-compile guide is a horrible mess.
Creat wrote:@petert: I also use git on win, never had any problems...
If you you add the git/bin directory to the PATH variable via system settings (required for VS to detect source version on compile) and consistently work out of the git bash, everything should work just fine...
I'll have to remember that, but I still don't like git, svn and hg are much easier to use.

Re: Cargo Distribution

Posted: 16 Nov 2009 01:30
by Auge
Hello
Creat wrote:@petert: I also use git on win, never had any problems...
If you you add the git/bin directory to the PATH variable via system settings (required for VS to detect source version on compile) and consistently work out of the git bash, everything should work just fine...
There is also a tool called TortoiseGit for Windows.
Tvel wrote: If you can get the cross-compliling to work, could you tell me what you did. My mingw is installed, configure is ok, but i get some errors with compiling.
I'm on Ubuntu 9.10 too. :)
There is a problem with a library that is needed in version 3.8 and is in Ubuntu 9.10 in version 4.2. Please use the forum search to find the solution (there is one).

Tschö, Auge

Re: Cargo Distribution

Posted: 16 Nov 2009 01:39
by petert
Wow, I never knew about TortoiseGit, when I restart to windows, I will install it.

Re: Cargo Distribution

Posted: 16 Nov 2009 02:53
by fonso
Thanks Auge. This is probably the same thing Creat reported on page 42. At least in your log you have a similar error message:

Code: Select all

Assertion failed at line 112 of /home/auge/openttd-source/openttd/src/cargotype.h: index < lengthof(CargoSpec::array)
Unfortunately I still can't reproduce the crash. I tried with Debian amd64 and i686, with Windows XP MinGW and VC++. However, I had no luck so far. Maybe you could compile the game with debug symbols (configure --enable-debug=3) and try to produce a meaningful stacktrace? The one in the crash.log doesn't really show what's going on:

Code: Select all

Stacktrace:
 [00] /home/auge/Spiele/openttd-cargodist-g843befd2-linux-generic-i686/openttd(_ZNK12CrashLogUnix13LogStacktraceEPcPKc+0x43) [0x82753e3]
 [01] /home/auge/Spiele/openttd-cargodist-g843befd2-linux-generic-i686/openttd(_ZNK8CrashLog12FillCrashLogEPcPKc+0xaf) [0x81ad01f]
 [02] /home/auge/Spiele/openttd-cargodist-g843befd2-linux-generic-i686/openttd(_ZNK8CrashLog12MakeCrashLogEv+0xbc) [0x81ad14c]
 [03] /home/auge/Spiele/openttd-cargodist-g843befd2-linux-generic-i686/openttd [0x8275338]
 [04] [0xb803a400]
 [05] [0xb803a430]
 [06] /lib/tls/i686/cmov/libc.so.6(gsignal+0x50) [0xb7cea6d0]
 [07] /lib/tls/i686/cmov/libc.so.6(abort+0x188) [0xb7cec098]
 [08] /home/auge/Spiele/openttd-cargodist-g843befd2-linux-generic-i686/openttd [0x8265e5f]
Maybe I need to install a Ubuntu in order to debug this ... :(