Fractal Softworks Forum

Starsector => Bug Reports & Support => Topic started by: Cosmitz on April 28, 2017, 05:52:15 PM

Title: Game froze and died
Post by: Cosmitz on April 28, 2017, 05:52:15 PM
This is new. No mods, vanilla etc. Jre 7 u80 win 7 pro

-------------

Last lines of starsector.log are fine/nondescript:

27940292 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.missions.MarketProcurementMissionCreator  - Created MarketProcurementMission: food to Salamanca
27940617 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Raesvelg by 0.0016271373, is now 0.076881774
27940617 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Raesvelg by 0.002440706, is now 0.0787123
27940617 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Skathi by 0.0016271373, is now 0.07436612
27940617 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Skathi by 0.002440706, is now 0.076196656
27940617 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Ragnar Complex by 0.0016271373, is now 0.06166214
27940617 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Ragnar Complex by 0.002440706, is now 0.06349267
27940792 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.MarketConnectionActivityData  - Updating connection: [agreus|arcadia_station]: trade (s: 0, l: 0), smuggling: (s: 0, l: 0)
27941583 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.MarketConnectionActivityData  - Updating connection: [gilead|volturn]: trade (s: 0, l: 0), smuggling: (s: 0, l: 1)
27942073 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Nova Maxios by 0.0027833355, is now 0.03538546
27942073 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Nova Maxios by 0.0027833355, is now 0.03747296
27942073 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Tibicena by 0.0027833355, is now 0.034988236
27942073 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Tibicena by 0.0027833355, is now 0.037075736
27942086 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.MarketConnectionActivityData  - Updating connection: [chicomoztoc|jangala]: trade (s: 0, l: 0), smuggling: (s: 0, l: 0)
27942993 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.fleets.BaseLimitedFleetManager  - 29 out of a maximum 30 fleets in play for [com.fs.starfarer.api.impl.campaign.fleets.PirateFleetManager]
27942994 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.fleets.BaseLimitedFleetManager  - Spawned fleet [pirate raiders] at hyperloc Vector2f[-12517.046, -5370.1035]


---------

However, event viewer in windows:

Fault bucket 3927310064, type 5
Event Name: AppHangB1
Response: Not available
Cab Id: 0

Problem signature:
P1: java.exe
P2: 7.0.450.18
P3: 525404d0
P4: 1e37
P5: 0
P6:
P7:
P8:
P9:
P10:

Attached files:
C:\UsersAppData\Local\Temp\WER42F2.tmp.appcompat.txt
C:\UsppData\Local\Temp\WER4A14.tmp.WERInternalMetadata.xml

These files may be available here:
C:\UsersAppData\Local\Microsoft\Windows\WER\ReportArchive\AppHang_java.exe_15ce7dfe5b183f86302af8bb9cd63d645220c0_4a455182

Analysis symbol:
Rechecking for solution: 0
Report Id: 099886ca-2c75-11e7-91f6-8c89a5c1485e
Report Status: 0



-----------------


The program java.exe version 7.0.450.18 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Action Center control panel.
 Process ID: 8d4c
 Start Time: 01d2c040b748359c
 Termination Time: 169
 Application Path: Z:\Starfarer\jre\bin\java.exe
 Report Id: 099886ca-2c75-11e7-91f6-8c89a5c1485e


------------

Fault bucket , type 0
Event Name: AppHangTransient
Response: Not available
Cab Id: 0

Problem signature:
P1: notepad.exe
P2: 6.1.7601.18917
P3: 559ea8be
P4: unknown
P5: unknown
P6: unknown
P7: unknown
P8:
P9:
P10:

Attached files:

These files may be available here:


Analysis symbol:
Rechecking for solution: 0
Report Id: 271a3634-2c75-11e7-91f6-8c89a5c1485e
Report Status: 1

-------------------

Attached hang files: https://www.dropbox.com/s/xisjx16u3evf8ul/AppHang_java.exe_15ce7dfe5b183f86302af8bb9cd63d645220c0_4a455182.zip?dl=0
Title: Re: Game froze and died
Post by: Alex on April 28, 2017, 05:57:40 PM
Huh, weird - I'll keep an eye out. Nothing particularly enlightening in the log, sadly.

Did it actually die or did you close it down after it "stopped responding"?

Are there any recent hs_errXXX files in the same location as starsector.log?
Title: Re: Game froze and died
Post by: Cosmitz on April 28, 2017, 06:01:52 PM
Nope nothing. I was post combat, game froze. Waited a bit, 5-8 seconds. Didn't get a not-responding grayed out window or an hourglass, then it just closed down on itself without my interaction. Tried to sneakily F5, maybe-maybe the game would still take commands and save my game but no go.
Title: Re: Game froze and died
Post by: Alex on April 28, 2017, 06:04:36 PM
Alright, thank you. Not sure what went wrong, but we'll see if anyone else reports it/whether it happens to you again/etc. Not entirely impossible that it was some kind of system hiccup, but it's so hard to say what it could have been.

One more question: was it after you'd selected some kind of menu option? Or was the game unpaused/transitioning from the salvage menu/etc? Basically, what state was the game in when this happened, i.e. "post combat", but more exactly?
Title: Re: Game froze and died
Post by: Cosmitz on April 28, 2017, 06:15:07 PM
I had just finished a fight (bounty in some far away system), was a few seconds out, i think i was activating SB to get out or preparing to, but no, it didn't feel like it happened as an instant-result of an action i had done within the game. The game was 'at peace'. :P
Title: Re: Game froze and died
Post by: Alex on April 28, 2017, 07:10:04 PM
Thank you, will be good to have this info to compare notes in case it happens in the future.
Title: Re: Game froze and died
Post by: oreganor on April 29, 2017, 01:40:53 PM
I have a savegame I can consistenly make it crash after docking to the nearby planet and repeatedly checking ship details in the buy/sell menu. If in the same savegame, instead of docking, I do the same on the fleet dialog so far after more than 100 ship detail windows opened, it doesn't crash.

I had another CTD were I was just flying on this same playthrough, but I don't remember the exact conditions nor I could repeat it right after suffering it.

Game Version: 0.8a-RC19 (Vanilla)
OS: Win 7 pro x64
Jre(Reported by java -version): 1.8.0_131

I compressed (using winrar) the entire savegame folder of the Captain and uploaded it to google drive, just in case it's an exotic state my savegame is, instead of a general bug:

https://drive.google.com/file/d/0BxOjT8xhbKf7TlJMWDBHckxrZzA/view?usp=sharing

If any additional info is needed/helpful I can provide it without problems.

EDIT: I haven't done anything strange on this playthrough... Just uninstalled the previous version, installed the new one and this is my 1st Captain, completed the tutorial and I'm just earning early income on the system I was pointed to after cleaning the jump nodes from pirate activity.
Title: Re: Game froze and died
Post by: Alex on April 29, 2017, 01:47:15 PM
Thanks! I can't reproduce the crash so far using that save (docked, clicked on the ? button for every ship in the fleet and most of the ships for sale).

Does an error message come up when there's a crash? What's in the log at the time of the crash? (C:\Program Files (x86)\Fractal Softworks\Starsector\starsector-core\starsector.log)

Side note: the game comes with its own version of java, so if you just ran java -version on the command line, that'll tell you the version of java on your system, not the one the game will use.
Title: Re: Game froze and died
Post by: oreganor on April 29, 2017, 01:57:37 PM
Here is the complete log after cleaning the old one, rebooting the computer, started starsector, loaded the "faulty savegame", immediatly docked and spammed the ship details (crashed after the 4th window this time):

https://drive.google.com/file/d/0BxOjT8xhbKf7clE0NTBGb1hQb00/view?usp=sharing
Title: Re: Game froze and died
Post by: Cosmitz on April 29, 2017, 08:55:19 PM
Ok. Happened again. Same situation, after combat (core worlds, not bounties), 4-5 seconds away, was not doing anything apart from moving away. This time hardlocked. Music continued playing, cursor/hourglass, game not responding.

Last lines out of starsector.log as *shrug* as ever (though given the progression of the events in resuming world-sim, it's very specifically stopping around the exact point):

9875331 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.fleets.PatrolFleetManager  - Spawned patrol fleet [Persean League patrol] from market Yesod
9875465 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Cibola by 0.0019463465, is now 0.004188181
9875465 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Cibola by 0.0019463465, is now 0.0056479406
9875465 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Madeira by 0.0019463465, is now 0.004188181
9875465 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.StarSystemActivityTracker  - Increasing system bounty probability for Madeira by 0.0019463465, is now 0.0056479406
9875999 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.shared.MarketConnectionActivityData  - Updating connection: [qaras|sindria]: trade (s: 0, l: 0), smuggling: (s: 10, l: 0)
9876049 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.fleets.BaseLimitedFleetManager  - 29 out of a maximum 30 fleets in play for [com.fs.starfarer.api.impl.campaign.fleets.PirateFleetManager]
9876050 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.fleets.BaseLimitedFleetManager  - Spawned fleet [pirate scout] at hyperloc Vector2f[-8904.36, -10709.742]
9879402 [Thread-4] INFO  com.fs.starfarer.api.impl.campaign.fleets.PatrolFleetManager  - 6 out of a maximum 7 patrols in play for market [Mazalot]


--------

LE: Loaded game... transversed. Froze again.

LE2: And again upon transversing.

Ok then.. it's repeatable, enter, unpause, click transverse to hyperspace. It crashes 8/10 times there or a bit later. Save file here: https://www.dropbox.com/s/pkkymn16uw47uj8/BROKENsave_SarahGinTonic_5246980135016847510.zip?dl=0
Title: Re: Game froze and died
Post by: Alex on April 29, 2017, 09:11:53 PM
Here is the complete log after cleaning the old one, rebooting the computer, started starsector, loaded the "faulty savegame", immediatly docked and spammed the ship details (crashed after the 4th window this time):

https://drive.google.com/file/d/0BxOjT8xhbKf7clE0NTBGb1hQb00/view?usp=sharing

Thank you - can't reproduce this. And looks similar to Cosmitz's issue, too. Would either/both of you mind upgrading the game's java version to Java 7 64 bit (instructions here (http://fractalsoftworks.com/forum/index.php?topic=8726.0)) to see if that resolves the issue?

Also: in the starsector-core, there should be some hs_errXXXXX files, created at the time of each crash. Seeing what's in those would help narrow down the problem.
Title: Re: Game froze and died
Post by: Cosmitz on April 29, 2017, 09:19:17 PM
Hey Alex, F5 and check edits on my last post.

LE: http://imgur.com/a/vGbmT < no hs_er etc files.

Updating now.
Title: Re: Game froze and died
Post by: Alex on April 29, 2017, 09:25:59 PM
Thank you - loaded it up a couple of times, the the unpause/transverse/wait a few seconds. No crashes. Tried w/ both sound on and off, just in case it was related.

(Edit: glad you told me to F5, btw, or I would have totally missed it.)

That this is reproducible on your end is great. If you try it with java 7 64 bit, that would confirm things one way or another.

Really weird that there are no hs_err files, though. That's java dying with some extreme prejudice.
Title: Re: Game froze and died
Post by: Cosmitz on April 29, 2017, 09:38:27 PM
1    [main] INFO  com.fs.starfarer.StarfarerLauncher  - Java version: 1.7.0_80 (64-bit)

+vmparams

Same thing. Freezes on transverse or shortly after. (may just freeze on its own a bit later but trying to be consistent)


LE:
------------------
In Event logs..

Fault bucket , type 0
Event Name: AppHangTransient
Response: Not available
Cab Id: 0

Problem signature:
P1: java.exe
P2: 7.0.800.15
P3: 55281754

----------

Isn't 7.0.800.15 32bit?
Title: Re: Game froze and died
Post by: Alex on April 29, 2017, 09:55:21 PM
Hmm, that's unfortunate - could you try 1) with the sound off (assuming it was on) 2) the opposite fullscreen setting to what you're using, and 3) rebooting? A graphics driver update is also potentially worth a shot here.
Title: Re: Game froze and died
Post by: Cosmitz on April 29, 2017, 09:59:10 PM
Check last edit in previous post.

Rebooted, opposite fullscreen, sound off, and i am running Geforce 378.78.

No matter what i do, it crashes within 10-ish second of loading, and this is about the same timeframe as it would have happened when i got back from the battle when the worldsim resumed (when it crashed the first time). It doesn't crash if i don't unpause.
Title: Re: Game froze and died
Post by: Alex on April 29, 2017, 10:04:57 PM
Thank you for trying this stuff. Really not much to go on here, unfortunately.

Oh - another thought occurs, can you try running the game using starsector.bat rather than the exe?

Isn't 7.0.800.15 32bit?

Same version numbers for 32/64 bit versions, pretty sure.
Title: Re: Game froze and died
Post by: Cosmitz on April 29, 2017, 10:08:29 PM
Ok. Nailed it to something.

If i push shift, timespeed up, after i load, it doesn't freeze. (tested 3 times, both on and off) And come to think of it, the other occurence was related to me speeding up time. I mean, as an old player it's second nature that i just half my finger on shift almost always.

But upon loading the game after it became 'unstuck', to the 'stuck' save event, it almost instantly freezes upon loading.
Title: Re: Game froze and died
Post by: Alex on April 29, 2017, 10:11:27 PM
Just double-checked to make sure I wasn't pressing shift without thinking about it - still no crash.
Title: Re: Game froze and died
Post by: oreganor on April 30, 2017, 12:52:44 AM
The change to x64 JRE 7u80 does not prevent the crash in my case. I tried disabling sound (as the last lines of the log refer to some updates on the sound threads), CTD still happening.

I observed a few things (My card is an ATI HD7700):

- Windows Event Log assings the error purely to java engine stoping responding in all cases.

- The screen flicker happens in a special way (Game screen freezes with the translucent ship detail window open for a few moments, then it goes black, after a moment the desktop is briefly visible and then the screen goes black again, this time with the windows problem dialog appearing) that reminds me of when some games do not like ATI drivers and the driver recovers itself.

- If I have an open browser window in the background (I use chrome) the browser window stops to refresh itself after the CTD happens on Starsector (I have to close the browser window because nothing I do makes it redraw itself). Again, I have seen this behaviour on ATI drivers after a faulty application makes them crash. But on all this cases (I mean the possitive ones that are fixed at some point by a patch on the application/game itself) on the Event Log the one that stopped responding was the ATI driver itself.

I'm going to play with compatibility modes/graphical options to see if anything has an impact on the crash. Are there any extra vmparams that affect graphic display/process that I could test?
Title: Re: Game froze and died
Post by: oreganor on April 30, 2017, 01:15:27 AM
Compatibility modes doesn't have an impact on CTD (as expected they make the error recovery behave in different ways... But I think that's not related to the main problem).

Meanwhile fullscreen option HAS AN IMPACT:

- Fullscreen mode, resolution to the max (1680x1050) -> CTD as reported

- NOT Fullscreen, resolution to the max (1680x1050) -> CTD as reported (Correct me if I'm wrong but SS behaviour looks like fullscreen if you select max resolution reported by the monitor, doesn't matter if I choose fullscreen or not?)

- NOT Fullscreen, resolution down to 1440x900 (So the game window is visible with a portion of the desktop visible around the borders) -> NOT CTD after at least 100 ship details windows opened.

- Fullscreen, resolution down to 1440x900 -> NOT CTD after at least 100 ship details windows opened.


It's not the 1st time I see a game behaving like this were fullscreen + max resolution = CTDs (Specially on some versions of Unity Engine), that later is corrected by a patch on the game itself.


EDIT: I haven't mentioned it specifically, but the rest of games, window itself, dxdiag, etc, etc are working without problems and not reporting any issues at all at max resolution.
Title: Re: Game froze and died
Post by: Cosmitz on April 30, 2017, 05:28:44 AM
Ok, went full rambo on this. The issue was consistent but only on one install on my machine. My save on another install. Fine. Moved my install to another machine as is, fine. Moved the install to another local disk. Fine. Did a chkdsk for 8 hours on the original drive. While it came out 'clean' "Windows has made corrections to the file system."

Reran original install in original location.

Solved. For once, the issue /was/ on my end.

---


Oreganor, try running a chkdsk /f on the drive SS is on. If that fixes it for you, we can call this closed.
Title: Re: Game froze and died
Post by: oreganor on April 30, 2017, 10:28:12 AM
I will do it, but I think the issues are different... Mine is strictly related to an UI action, which is opening the ship detail window... And the change on resolution fixing it, starts to smell to something related to vsync...

...Yours was timed driven as it did happen at a given moment with independence of what you were doing. I can play for hours for as long as I don't abuse ship details too much (in 1680x1050) and nothing bad happens for as long as I don't raise from 1440x900...

...Definitively mine looks like one of those horrible glitches hard to reproduce linked most likely to a particular combo of card/OS/related hardware. Will try a chkdsk /f anyways, that will not harm in either case :), but unless some1 else with a similar hardware helps, I think it's just bad luck on my side and the Dev has enough on his dish to actually waste time in fixing a bug that (so far) can be avoided (1440x900 is not preatty... But at least I can play without crossing fingers each time I check a ship's stats before buying it ;) ) and affects a single person (or at least I haven't seen other reports like mine so far).
Title: Re: Game froze and died
Post by: oreganor on April 30, 2017, 10:51:26 AM
As I was suspecting has to do with vsync. Luckily I could create a performance profile in my Radeon Software linked to the local java.exe that SS uses, to do some forced vsync tests:

- At fullscreen 1680x1050 with vsync forcefully active in my Radeon profile for this game. More than 100 ship detail windows without problems.

- At fullscreen 1680x1050 with vsync forcefully inactive in my Radeon profile for this game. It crashed at the 3rd window opened. This time, as I got the Radeon profiler on, on top of SS crashing, I got also a proper driver soft failure reported by windows.

So at least in my system I need vsync on to prevent this CTD from happening. Hope that helps.
Title: Re: Game froze and died
Post by: Alex on April 30, 2017, 11:41:01 AM
@Cosmitz: whew, glad you figured it out. Hadn't thought about chkdsk, but in retrospect that makes sense - will be good to know to suggest in the future, in case someone has a similar issue.


So at least in my system I need vsync on to prevent this CTD from happening. Hope that helps.

Glad you figured it out as well :) Will help in case someone with AMD has a similar issue, certainly - what's weird is that the game has vsync turned on by default, so forcing it on shouldn't have any effect. (This is almost definitely a driver bug; could possibly be worked around by making the game do something different, but with these things it's hard to do that w/o being able to reproduce in the dev environment.)

(Correct me if I'm wrong but SS behaviour looks like fullscreen if you select max resolution reported by the monitor, doesn't matter if I choose fullscreen or not?)

What it does in this case is create an "undecorated" window - a window without the caption bar or borders, which would make a full-resolution window not fit on the screen. It's different from fullscreen in that it can be switched to and from more quickly, though I believe it's also handled by the OS/graphics drivers differently than a regular window. Kind of an in-between case.
Title: Re: Game froze and died
Post by: oreganor on April 30, 2017, 12:51:00 PM
Radeon default preset for Vsync is a bit confusing because it comes in 4 states:

- Always on

- Always off

- Always on unless application says off.

- Always off unless application says on <--- Default State

If I have to bet... My AMD driver is not understanding the setting you are using and defaulting to vsync off. In fact having 4 options here is totally pointless, with off, on and application controlled (like NVIDIA defines Vsync states) is more than enough but...

...AMD drivers are... well, we all know how they are ;).
Title: Re: Game froze and died
Post by: Alex on April 30, 2017, 12:55:41 PM
Interesting! I wonder if that means the game is running with vsync off on a substantial number of AMD cards. Ah, well.

...AMD drivers are... well, we all know how they are ;).

Hah, yes :)
Title: Re: Game froze and died
Post by: DIEHARD25 on May 12, 2017, 01:06:03 AM
Hello all

Have same (or similar) issue. Game suddenly freezes, Java became unresponded.

My specs:
Win 7 x64
FX 8350
MSI GTX 1060
8 Gb RAM
SSD 60 Gb (game installed on SSD)

Game version - 0.8a (RC19)

Video drivers are up-to-date (from stable branch).

Already try to forced VSynC On - no effect. Also, checkdisk dont give me any effect.
Already try with different JRE versions - both 7.79 and 7.8, also try out 8 (with disabling warnings in settings.json)
Already try launching wia .bat, with and without sound, different fullscreen combinations (on and off) and different resoultions (from 1920x1080 downgrade 4 or 5 others res).
Log don't have any suspicious info - seems to be, problem somwere in native Java, not in game files.

Almost forgot - vmparams modified for use 2 to 4 Gb of RAM.
Already try both clean and modded versions (SS+)

Also, if this important - freeze become on same in-game date (13-th Dec 206).

upd. i will try to clearly re-install the game and try out videodrivers from Beta branch today at evening (in 8 hours at my local) - will post results after

upd2. sorry for bad English
Title: Re: Game froze and died
Post by: Schwartz on May 12, 2017, 02:04:30 AM
You could try this little tool for a stack trace when SS hangs itself. Note that you need to run it *while* the hang occurs, so you may be a bit pressed for time. For 64-bit Java you need the 64-bit executable.

http://www.nirsoft.net/utils/what_is_hang.html
Title: Re: Game froze and died
Post by: DIEHARD25 on May 12, 2017, 02:32:30 AM
yeah, thanks for idea ;)

will try it at evening today.
Title: Re: Game froze and died
Post by: DIEHARD25 on May 15, 2017, 03:31:56 AM
Ok, that was very interesting Weekend. I killed almost whole Saturday to manage the game works properly.

So, solution was very simple - antivirus.
My "greatest and awesome" NIS managed to block a process with high CPU usage without even a single noticing to me. Discovered this occasionally, exploring the log of AV. And found a lot of entries about Java blocking.

That is'nt funny, believe me. I'm almost decided to fully re-install my Windows.

For now game work stable.

And some FAQ entry should be added - "Check your AV if something goes wrong with game"

Thanks everyone for reading!
Cheers!
Title: Re: Game froze and died
Post by: Alex on May 15, 2017, 09:07:53 AM
Glad you found the issue, at least.