Author Topic: Fix the FRED2 Right-Click Crash`  (Read 4662 times)

0 Members and 1 Guest are viewing this topic.

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Fix the FRED2 Right-Click Crash`
This bug has wasted so many hours of my productivity.

Right click on an event in FRED. Randomly, infrequently, you'll cause the program to lock up.

Why? How? Is it fixable? Anyone have any clue on when it tends to happen? Frequency seems to have decreased, but it's still there.

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Fix the FRED2 Right-Click Crash`
Yeah, it's quite disturbing. Fortunately, what I lost more than 3 events only a handful of times (I tend to save the mission file very frequently).

This "bug" was supposed to be fixed quite a while ago, I don't really understand why it's still there.  :sigh:
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Fix the FRED2 Right-Click Crash`
Has anyone filed a mantis report with exact steps to reproduce?
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Fix the FRED2 Right-Click Crash`
Has anyone filed a mantis report with exact steps to reproduce?

That's the problem. Beyond 'it happens when I right click on an event', I can't figure out any way to repro.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Fix the FRED2 Right-Click Crash`
Which means the problem basically becomes "Wait for a coder to be using debug FRED and have it happen to them"

I will try to use FRED via the debugger more often now that I have time for coding/FREDding again.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Dilmah G

  • Failed juggling
  • 211
  • Do try it.
Re: Fix the FRED2 Right-Click Crash`
Oh man, I used to hate this so much. Like Mobius, I got into the habit of saving the mission file very frequently.

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Fix the FRED2 Right-Click Crash`
I'm amazed I don't run into this one and I'm in debug FRED 99% of the time.  Now I do occasionally get the reordering events crash.  Possible your accidentally dragging it a bit when this happens?  If you cad drag when right clicked.  I'll have to try that.  


Nope can't move it when right clicked.  I wonder since I'm in debug and don't see it if this is something that only happens in release builds.
« Last Edit: October 04, 2010, 02:01:16 am by FUBAR-BDHR »
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Fix the FRED2 Right-Click Crash`
Oh man, I used to hate this so much. Like Mobius, I got into the habit of saving the mission file very frequently.

Look I think everybody saves the mission file very frequently, but if you're setting up an event with concatenated when-arguments and it uses like 80 manually entered arguments, it's insane to have to save multiple times during the construction of one event.

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: Fix the FRED2 Right-Click Crash`
There's a mantis entry for the bug that happens when you move events around, maybe using that mission file for tests would help.
I'm thinking moving the event and then trying to rename it might work.

I would test it myself but my pc is still dead, sorry.
el hombre vicio...

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: Fix the FRED2 Right-Click Crash`
Look I think everybody saves the mission file very frequently, but if you're setting up an event with concatenated when-arguments and it uses like 80 manually entered arguments, it's insane to have to save multiple times during the construction of one event.
Protip: if you're adding 80 manually-entered arguments, it's much easier to type them all in using your favorite text editor. ;)

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Fix the FRED2 Right-Click Crash`
Look I think everybody saves the mission file very frequently, but if you're setting up an event with concatenated when-arguments and it uses like 80 manually entered arguments, it's insane to have to save multiple times during the construction of one event.
Protip: if you're adding 80 manually-entered arguments, it's much easier to type them all in using your favorite text editor. ;)

Not always. I use a text editor to copy or merge argument lists, but in terms of adding new arguments, sometimes it's just as quick to get it done in FRED.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Fix the FRED2 Right-Click Crash`
If the arguments are ship or weapon names it's a hell of lot quicker (and much less error prone) to just select them off the list than to try to enter them in notepad. :D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

  

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Fix the FRED2 Right-Click Crash`
If the arguments are ship or weapon names it's a hell of lot quicker (and much less error prone) to just select them off the list than to try to enter them in notepad. :D

Well to be fair that's not gonna work in a when-argument.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Fix the FRED2 Right-Click Crash`
Which is why you set up the list in another SEXP and then copy it. Even using notepad for that would be quicker than typing all the names in using notepad alone. :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Fix the FRED2 Right-Click Crash`
Which is why you set up the list in another SEXP and then copy it. Even using notepad for that would be quicker than typing all the names in using notepad alone. :)

This is what I usually do, but there are times when your arguments are not already in the mission (i.e. a list of names for ships created by ship-create).

 

Offline Mobius

  • Back where he started
  • 213
  • Porto l'azzurro Dolce Stil Novo nella fantascienza
    • Skype
    • Twitter
    • The Lightblue Ribbon | Cultural Project
Re: Fix the FRED2 Right-Click Crash`
Excuse me, but... why are the arguments an issue? You can add them in FRED, save the mission, then right-click on the event's name and proceed. If FRED crashes at that point, you don't lose anything.
The Lightblue Ribbon

Inferno: Nostos - Alliance
Series Resurrecta: {{FS Wiki Portal}} -  Gehenna's Gate - The Spirit of Ptah - Serendipity (WIP) - <REDACTED> (WIP)
FreeSpace Campaign Restoration Project
A tribute to FreeSpace in my book: Riflessioni dall'Infinito

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Fix the FRED2 Right-Click Crash`
Excuse me, but... why are the arguments an issue? You can add them in FRED, save the mission, then right-click on the event's name and proceed. If FRED crashes at that point, you don't lose anything.

Thanks for the tips, Lieutenant General Obvious. We can stop the thread if you'd like to get off.

The issue here is not about when the **** to save. The issue is that FRED should not be randomly crashing, period, no matter whether I'm losing an hour's work or if I just have to reboot and pick up where I left off. Unfortunately this bug is hard as heck to track down.

One thing I'll say is that the frequency seems to have decreased markedly since 3.6.10. It used to happen in long chains.

 

Offline Iss Mneur

  • 210
  • TODO:
Re: Fix the FRED2 Right-Click Crash`
Are we talking about a crash to desktop or just FRED becomes unresponsive and never comes back? If it is a hang, how long have you waited to see if it comes back?
"I love deadlines. I like the whooshing sound they make as they fly by." -Douglas Adams
wxLauncher 0.9.4 public beta (now with no config file editing for FRED) | wxLauncher 2.0 Request for Comments

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Fix the FRED2 Right-Click Crash`
Are we talking about a crash to desktop or just FRED becomes unresponsive and never comes back? If it is a hang, how long have you waited to see if it comes back?

The latter. I've definitely waited three or four minutes, but...it's never looked promising. I can't be totally positive, but I'm pretty sure I've left it going for a couple hours as well with no luck.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Fix the FRED2 Right-Click Crash`
How frequent was it in 3.6.10? Could you reproduce it there?

If there is a reproducible error in 3.6.10 I might check out an old version of the code to see if the cause is still the same and other fixes merely made it harder to run into it.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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