I just witnessed re-produceble Oolite crashes to desktop with "anarchies.oxp 1.0". I can't find what is causing it. I assume is is triggered by an other bug in oolite itself.
The bug happens with my latest save file. When I open this, Oolite crashes with following mac-crashreport:
Removing Anarchies.oxp solved the problem thus this one was involved. Then I disabled the inside script: Crashes still happened. Crashes stopped when I disabled the "shipData.plist". On this one I looked closer. Deleting the first 20 entries also solved the crash. Only deleting the first ten or second ten entries still crashed Oolite. Very strange but reproducible with this savefile.
Looking at the first 20 entries, they all have a role starting with "anarchie-". And because the script was still disabled, none of these ships should have been used by anarchies. But I know that 1.70 has a bug that is sometimes selects wrong ships. So for some reason with this save file the dices roll in a way that it was selecting something from anarchies that bugged. Maybe a part of a bigger structure that works well when chosen in the right way.
Anyhow, one of the last entrys in the crashlog is: [Universe setUpSpace] and I think that it goes wrong there on setting up space. Also meaning that this bug could happen with other players when jumping to an other system.
defaults write org.aegidian.oolite logging-show-file-and-line -bool no
This shouldn’t affect many people, since it’s off by default. This won’t fix whatever the root problem is, but it’ll stop the game from crashing in the way it’s doing for you.
I’m not able to recreate this with a clean 1.70, Anarchies 1.0 and all log messages enabled, but I did find a freezing bug in addEntity:.
I'm sure it is difficult to reproduce as it happened me only while loading a certain save file, not with the others. (I made a mistake that I have that file now overwritten.) It could be that the problem is solved in the trunk. What I am currently witnessing are that regularly large asteroids being added when a ship crashes. It are the large ones from asteroid storm. It happens when I instal Random Hits, but it also happens when I instal Anarchies. frightening when you kill a small mamba and then you crash into several very large asteroids. Somehow these two oxp's force that more ships with a wrong role are selected that normally. Or it is more visible because of the size.
Thats really strange! I do add ships with the role asteroid near the bars, and there is a small random chance of a bunch of Thargoids attacking a bar. In both cases I'm just adding them with addShips and using the standard Oolite role. Everything else has a custom role starting with random_hits. Any idea how it could cause it? I haven't had it happen on 1.70 Windows XP.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
Thats really strange! I do add ships with the role asteroid near the bars,.... I haven't had it happen on 1.70 Windows XP.
I don't think the fault is inside Random Hits because I shoot a non-randomhits ship and the asteroids are part of Asteroid storm. The ship should create wreckage, metal plating, but for some reason it choses rocks. Without random hits and with Anarchies I see the same. Without those two no problems. But there are still other occasions of ships that are selected in the wrong role.
I just had an other re-producible crash to the desktop. This time on hyperspace jumping to a certain system. On removing Anarchies the problem was over. I think it is something similar. Not something in the OXP. but it makes that the system adds a object from an other oxp that is buggy.
--
I must say that this were some of the few occasions I had crashes to the desktop. Normally 1.70 runs very stable for me.
@ Eric: Sorry for the trouble! Unfortunately I have also no idea what is going on, and crash reports generally are just greek for me (no, not true, as I actually can read greek).
But what I forgot in my PM: Could you just send me your save-file, so that I can try it on my machine?
After a little playing with the crash I found that when I removed one of the next 3 oxp's the crash stopped: Anarchies1.0, AsteroidStorm 3.45 or Hotrods 0.51 I turned on all logging options and noticed the last few entries in the log had to do with the ship: "hood-spittingcobra-2" from Hotrods. When I change its role so it was not selected, the crash stopped. Removing of the other two oxp probably only changed the dices so this ship was not added?
He fails to find <hood_spittingcobra4.dat > but that thing is present in the file. Maybe there is more to the bug. It takes its role over a like_ship, but when I explicit gave it his roles the scrash still happens. When I gave that ship also a special role and add it with that role, everything is fine:
defaults write org.aegidian.oolite logging-show-file-and-line -bool no
This shouldn’t affect many people, since it’s off by default. This won’t fix whatever the root problem is, but it’ll stop the game from crashing in the way it’s doing for you.
Thanks. That did the trick. I looked back in my crashlog and noticed a lot of crashes ended with the lines logging-show-file-and-line. I understand it right that it found a bug and that crashed on logging it?
He fails to find <hood_spittingcobra4.dat > but that thing is present in the file.
The “Failed to retrive…” [sic] lines just mean something isn’t in the cache, not that it can’t be found at all.
Eric Walch wrote:
Thanks. That did the trick. I looked back in my crashlog and noticed a lot of crashes ended with the lines logging-show-file-and-line. I understand it right that it found a bug and that crashed on logging it?
The problem was that the a function involved in dealing with file names in logs wasn’t dealing properly with NULL file names, which occur for instance when an NSLog is intercepted (OS X only).