Author Topic: FRED Crashes  (Read 4977 times)

0 Members and 1 Guest are viewing this topic.

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
I've been FREDding for years, and I've got the latest nightly FS2_Open 3.7.3 AVX build.

The reason I am posting here is that FRED keeps on crashing when its main window isn't focused after some while, or after being inactive for some time. For example, when I looked away from FRED to refer something, then FRED crashes. This problem gets annoying for me and others for that matter, so I believe this needs to be resolved as soon as possible.

On an ending note, wxFRED is expected to solve all these problems by integrating the UI cross-platform, the recently released Windows 10 included. wxFRED is supposed to replace FRED, but... the development is stalled. However, I do have an interest in continuing development of wxFRED for the sake of the SCP's future.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Have you tried running the debug version of FRED? Does the same thing happen?
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
Yes, I tried running the debug version of FRED? The same thing happen.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

  

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
So what does the fred2_open.log say?
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
The fred 2 open logs say nothing but problems with modpack.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Well fix those first then. It's quite easy to crash FRED if you have bad data.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
I'm using AVX because my PC's CPU is AVX capable. And I have Windows 10. Keep it up, Karajoma.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
So does FRED report any errors with the mod now? We can help you fix those if you can't figure them out.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
Yes.

But FRED seems to be crashing on Windows 10. For missions with large numbers of objects and wings, using a retail to create another wing will result in its crash.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
The limits on retail are much lower than on SCP versions. IIRC over 100 ships in a mission will crash it.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
Model instancing will solve this problem, but I believe there are other modern methods of solving this for the sake of performance, reliability and stability.

However, I do have one more concern.

When I open up the ship list, FRED crashes without displaying an "Assertion Failed" message. The log once again comes up empty, as what happened to its FSO counterpart.

Here's the fred2_open.log file, which is pretty much larger:

Code: [Select]
...
Allocating space for at least 6 new ship subsystems ...  a total of 200 is now available (6 in-use).

Parse complete.
0 errors.  0 warnings.
Adding default sun.
Requested file kato_ao.dds found at: C:\Program Files (x86)\GOG.com\Freespace 2\ShatteredStars-dev1\data\maps\Kato_AO.dds
Requested file kato_ao-glow.dds found at: C:\Program Files (x86)\GOG.com\Freespace 2\ShatteredStars-dev1\data\maps\Kato_AO-glow.dds
Resetting dynamic tree node limit from 0 to 0...
Resetting dynamic tree node limit from 0 to 0...
Found required string [#Mission Info]
Found required string [$Version:]
Found required string [$Name:]
Found required string [$Author:]
Found required string [$Created:]
Found required string [$Modified:]
Found required string [$Notes:]
Found required string [$End Notes:]
Found required string [$Mission Desc:]
Found required string [$end_multi_text]
Found optional string [+Game Type Flags:]
Found optional string [+Flags:]
Found optional string [+Disallow Support:]
Found optional string [+Hull Repair Ceiling:]
Found optional string [+Subsystem Repair Ceiling:]
Found optional string [+Viewer pos:]
Found optional string [+Viewer orient:]
Found optional string [$AI Profile:]
Found required string [#Command Briefing]
Found required string [#Briefing]
Found required string [$start_briefing]
Found required string [$num_stages:]
Found required string [$end_briefing]
Found required string [#Debriefing_info]
Found required string [$Num stages:]
Optional string [#Alternate Types:] not found
Optional string [#Callsigns:] not found
Found required string [#Players]
Found required string [$Starting Shipname:]
Found required string [$Ship Choices:]
Found optional string [+Weaponry Pool:]
Found required string [#Objects]
Found required string [$Name:]
Found required string [$Name:]
Found required string [$Class:]
Found required string [$Team:]
Found required string [$Location:]
Found required string [$Orientation:]
Found required string [$AI Behavior:]
Found required string [$Cargo 1:]
Found optional string [+Initial Velocity:]
Found optional string [+Initial Hull:]
Found required string [+Subsystem:]
Found required string [$Arrival Location:]
Found required string [$Arrival Cue:]
Found required string [$Departure Location:]
Found required string [$Departure Cue:]
Found required string [$Determination:]
Found optional string [+Flags:]
Found optional string [+Flags2:]
Optional string [+Group:] not found
Found optional string [+Use Table Score:]
Found optional string [+Score:]
Found required string [#Wings]
Found required string [#Events]
Found required string [#Goals]
Found required string [#Waypoints]
Found required string [#Messages]
Found required string [#Reinforcements]
Found required string [#Background bitmaps]
Found required string [$Num stars:]
Found required string [$Ambient light level:]
Found optional string [+Nebula:]
Found required string [+Color:]
Found required string [+Pitch:]
Found required string [+Bank:]
Found required string [+Heading:]
Found required string [#Asteroid Fields]
Found required string [#Music]
Found required string [$Event Music:]
Found required string [$Briefing Music:]
Found required string [#End]

FYI, I've opened an issue on GitHub. I'm running a decent nightly build of FSO/FRED2Open using AVX.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

 

Offline niffiwan

  • 211
  • Eluder Class
Yo, please provide the whole log.  If it's massive, please pastebin it (or use a similar service) then post the link.
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

 

Offline niffiwan

  • 211
  • Eluder Class
Firstly, I think it's likely that this is an issue with assets. I'm sure there's many other FREDers opening the ship list all the time without crashes.

And, I can see a bunch of warnings that you should fix:

In the GHC Custos, probably defined in C:\Program Files (x86)\GOG.com\Freespace 2\ShatteredStars-dev1\data\tables\ss-shp.tbm

Code: [Select]
Stuffed string = [turret05]
WARNING: "Unable to find WEAPON_LIST_TYPE string "Warhammer#Sanctus" in stuff_int_list  Many possible sources for this error.  Get a programmer!" at parselo.cpp:2819
Stuffed string = [turret06]
WARNING: "Unable to find WEAPON_LIST_TYPE string "Warhammer#Sanctus" in stuff_int_list  Many possible sources for this error.  Get a programmer!" at parselo.cpp:2819

GHFg Decuria; in the same file

Code: [Select]
Stuffed string = [turret30]
WARNING: "Unable to find WEAPON_LIST_TYPE string "HV Beam" in stuff_int_list  Many possible sources for this error.  Get a programmer!" at parselo.cpp:2819
Stuffed string = [turret31]
WARNING: "Unable to find WEAPON_LIST_TYPE string "HV Beam" in stuff_int_list  Many possible sources for this error.  Get a programmer!" at parselo.cpp:2819
Stuffed string = [turret32]
WARNING: "Unable to find WEAPON_LIST_TYPE string "LT Beam" in stuff_int_list  Many possible sources for this error.  Get a programmer!" at parselo.cpp:2819
Stuffed string = [turret33]
WARNING: "Unable to find WEAPON_LIST_TYPE string "LT Beam" in stuff_int_list  Many possible sources for this error.  Get a programmer!" at parselo.cpp:2819
Stuffed string = [turret34]
WARNING: "Unable to find WEAPON_LIST_TYPE string "LT Beam" in stuff_int_list  Many possible sources for this error.  Get a programmer!" at parselo.cpp:2819
Stuffed string = [turret35]
WARNING: "Unable to find WEAPON_LIST_TYPE string "LT Beam" in stuff_int_list  Many possible sources for this error.  Get a programmer!" at parselo.cpp:2819


AuFg Marchion, in the same file.

Code: [Select]
Stuffed string = [1stFleet_BlueStripes]
WARNING: "Team name 1stFleet_BlueStripes is invalid. Teams must be defined in colors.tbl." at ship.cpp:2447

AuD Bulwark

Code: [Select]
Stuffed string = [1stFleet]
WARNING: "Team name 1stFleet is invalid. Teams must be defined in colors.tbl." at ship.cpp:2447

Code: [Select]
WARNING: "Pbank capacity not specified for ballistic-primary-enabled ship GRF Kavi. Defaulting to capacity of 1 per bank." at ship.cpp:4994
WARNING: "Pbank capacity specified for non-ballistic-primary-enabled ship AuB Retaliator. Resetting capacities to 0. To fix this, add a ballistic primary to the list of allowed primaries." at ship.cpp:4986

In short, get rid of all those warning 1st, then we'll look at what could be causing the crash.

Also, you might want to temporarily rename your debug_filter.cfg file so that the log has less data in it; at least until all the warning are gone.
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline m!m

  • 211
I agree that the warnings should be fixed but bad data shouldn't be able to crash FSO.
@Bryan See: How big is your modpack? If I can reproduce the crash using your data I should be able to replace it with a proper error message. I think you mentioned in another thread that FSO also suffers from this issue so it's probable that the source lies within the shared code of FRED and FSO.

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
My modpack is about 2.48 GB, because I intend it to become the largest modpack ever assembled after Inferno. I fixed all errors, and now uploading it to GitHub.

Yet, FRED has crashed again after being inactive for a while. The log I provided below once again does not show any sign of "assertion failed" message. I am using the AVX branch, not the Standard, SSE or SSE2.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...

 

Offline m!m

  • 211
That's definitely too big for me to download (GitHub is also not a good host for such large amounts of data).
You either have to reduce the size of the modpack or run FSO using a debugger which will show us where and why the crash occurs.

 

Offline niffiwan

  • 211
  • Eluder Class
Yeah, the lack of Assertion is what m!m wants to fix for you.

To run FSO in a debugger, see this post.
Creating a fs2_open.log | Red Alert Bug = Hex Edit | MediaVPs 2014: Bigger HUD gauges | 32bit libs for 64bit Ubuntu
----
Debian Packages (testing/unstable): Freespace2 | wxLauncher
----
m|m: I think I'm suffering from Stockholm syndrome. Bmpman is starting to make sense and it's actually written reasonably well...

 

Offline m!m

  • 211
That post is a bit out of date so don't use it yet. I'll see what I can do about updating that.

EDIT: Updated guide is available here: http://www.hard-light.net/wiki/index.php/What_to_do_when_SCP_coders_cannot_reproduce_your_fs2_open_crashes%3F
« Last Edit: October 12, 2015, 07:51:43 am by m!m »

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem, but under Tiger Parents
    • Skype
    • Steam
    • Twitter
The modpack is here on GitHub. Head over to the Shattered Stars thread to get it, if you want to fix it for me. I am having problems with my FS2/FRED open builds, using AVX.

RE to m!m and niffiwan regarding the updated guide, thank you for this suggestion. I'll try this.
« Last Edit: October 12, 2015, 12:31:20 pm by Bryan See »
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Full Projects:
Shattered Stars

Campaigns:
Lost in the Mist - Cyrene vs. Psamtik
FreeSpace: Reunited

Ships:
GTS Hygeia, GTT Argo, SC Raguel

Tools:
FSO TC/Game template

I've been under attack by Tiger Parents like Jennifer Pan...