Author Topic: xLights crashes while save is in progress  (Read 4118 times)

Offline gadgetsmith

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
xLights crashes while save is in progress
« on: January 06, 2015, 07:41:12 AM »
I've tried and tried to lay off clicking anything when xLights is saving, but I keep running into this problem.  My finger has a mind of it's own and clicks something while xLights is saving.  This always causes the program to crash.  It there anyway for the program to ignore mouse/keyboard presses while saving?

Generally, i've not lost more than a few minutes work, but not sure if others have this issue or if it's just me.

Thanks
Charlie

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: xLights crashes while save is in progress
« Reply #1 on: January 06, 2015, 08:38:29 AM »

You shouldn't have lost any work.  The very first thing that is saved is the xml file for the sequence.  And that's done right on the main thread and thus it could not have been processing key events either.   

That said, you could turn off the multi-threaded save.  That may prevent some of this.  Not sure.   I cannot reproduce any of these crashes which makes it hard to diagnose.  We've started trying to investigate options for getting better crash info, but that's for a future version.
Daniel Kulp
Framingham, MA

Offline Lights On Fifth

  • Sr. Member
  • ****
  • Posts: 287
    • View Profile
Re: xLights crashes while save is in progress
« Reply #2 on: January 06, 2015, 03:21:55 PM »
I've tried and tried to lay off clicking anything when xLights is saving, but I keep running into this problem.  My finger has a mind of it's own and clicks something while xLights is saving.  This always causes the program to crash.  It there anyway for the program to ignore mouse/keyboard presses while saving?

Generally, i've not lost more than a few minutes work, but not sure if others have this issue or if it's just me.

Thanks
Charlie

Charlie have you ever thought about cutting your fingers off when in save mode.  :P
Don Gillespie
Medicine Hat Ab.

Offline gadgetsmith

  • Jr. Member
  • **
  • Posts: 75
    • View Profile
Re: xLights crashes while save is in progress
« Reply #3 on: January 06, 2015, 03:39:42 PM »
Yes! :-[

Ok. It's something with my PC. After a reboot (haven't rebooted the pc in about two months) I don't have the problem any more. Go figure.

Offline Lights On Fifth

  • Sr. Member
  • ****
  • Posts: 287
    • View Profile
Re: xLights crashes while save is in progress
« Reply #4 on: January 06, 2015, 03:49:42 PM »
Well that is good news
Don Gillespie
Medicine Hat Ab.

Offline flyinverted

  • Administrator
  • Hero Member
  • *****
  • Posts: 756
    • View Profile
Re: xLights crashes while save is in progress
« Reply #5 on: January 06, 2015, 04:54:32 PM »
I have started many screen recording sessions to show how to crash XL/NC. Of course it won't crash when you want it to, just when you're working late at night trying to finish a sequence.

What I found is that the most likely culprit is lack of memory. Each time I started recording I had a fresh reboot and not several hours worth of browsing data in cache memory.

I have tried on 3 different computers that have all crashed NC easily and ever since they've been rebooted and Chrome closed when using NC, I haven't been able to crash it.

-Steve



Steve Giron
Maricopa County, AZ
xLights user with a boat-load of channels.

Do not ask to know all the answers, but ask to understand the question.

Offline dkulp

  • Supporting Member
  • Hero Member
  • *
  • Posts: 812
    • View Profile
Re: xLights crashes while save is in progress
« Reply #6 on: January 06, 2015, 07:33:57 PM »

Interesting... that COULD be one reason why I cannot reproduce things like this.   On the Mac, xLights is a 64bit application and thus has access to gobs and gobs of memory.  :-)
Daniel Kulp
Framingham, MA

Offline drlucas

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
Re: xLights crashes while save is in progress
« Reply #7 on: January 06, 2015, 07:55:35 PM »
I am very glad of the progress on the Mac side the last 2 months with xlights....I was running windows under bootcamp and had SERIOUS memory issues...since i've gone back to native OS X it's been WAY better. way way better.

.....please don't cut your fingers off. it is impossible to scratch your head when trying to figure out why xlights is crashing on you. oh wait you solved that problem.....if you are looking for things to do when your show is saving, then consider having another PC or smartphone sitting beside the sequencing machine and read up on your favourite forums and resist the temptation to hit alt-tab and multitask :)

Offline jnealand

  • Hero Member
  • *****
  • Posts: 1421
    • View Profile
Re: xLights crashes while save is in progress
« Reply #8 on: January 07, 2015, 11:04:47 AM »
if you are looking for things to do when your show is saving, then consider having another PC or smartphone sitting beside the sequencing machine and read up on your favorite forums and resist the temptation to hit alt-tab and multitask :)

Now you have come upon one of the great uses of having dual monitors, I just play a quick game of solitaire on the other monitor or read some email.  I also have my desktop connected via KVM switch to 2 other computers and a PI.  Too many toys.  LOL
Jim Nealand
Kennesaw, GA