Cargo Distribution

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Creat
Traffic Manager
Traffic Manager
Posts: 141
Joined: 26 Oct 2009 16:33

Re: Cargo Distribution

Post 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).
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Cargo Distribution

Post 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
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Managed to make a .deb using the guide at the wiki.
Attachments
cargodist_debian_lenny_i386.deb
(3.91 MiB) Downloaded 89 times
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Cargo Distribution

Post by NekoMaster »

petert wrote:Managed to make a .deb using the guide at the wiki.
Now you need to make a Win32 build :3
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post 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.
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Cargo Distribution

Post 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 :)
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post 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)
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post 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?
The guy on the picture is not me, it's Alonso.
User avatar
Hamilton2007
Transport Coordinator
Transport Coordinator
Posts: 289
Joined: 16 Nov 2008 10:57
Location: Belgium

Re: Cargo Distribution

Post by Hamilton2007 »

Wich one is better CargodEst or CargodIst ?

Or, what are the most important differences between the two?
User avatar
tsjook
Traffic Manager
Traffic Manager
Posts: 197
Joined: 22 Apr 2009 18:33

Re: Cargo Distribution

Post 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.
Auge
Chief Executive
Chief Executive
Posts: 661
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: Cargo Distribution

Post 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
Attachments
crash.sav
(29.2 KiB) Downloaded 90 times
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Cargo Distribution

Post 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 :(
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Re: Cargo Distribution

Post 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.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post 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.
Tvel
Engineer
Engineer
Posts: 77
Joined: 29 Mar 2008 22:42
Skype: tvel___
Location: Bulgaria

Re: Cargo Distribution

Post 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. :)
Creat
Traffic Manager
Traffic Manager
Posts: 141
Joined: 26 Oct 2009 16:33

Re: Cargo Distribution

Post 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...
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post 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.
Auge
Chief Executive
Chief Executive
Posts: 661
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: Cargo Distribution

Post 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
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: Cargo Distribution

Post by petert »

Wow, I never knew about TortoiseGit, when I restart to windows, I will install it.
User avatar
fonso
President
President
Posts: 948
Joined: 13 Oct 2007 08:28

Re: Cargo Distribution

Post 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 ... :(
The guy on the picture is not me, it's Alonso.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 9 guests