Author Topic: Crash on clicking "Remove Group"  (Read 3979 times)

Offline kevinp

  • Sr. Member
  • ****
  • Posts: 373
    • View Profile
Crash on clicking "Remove Group"
« on: April 27, 2015, 12:20:43 PM »
Just playing around with model groups and I noticed that xlights crashes every time that I highlight a group and then click the remove group button.  Version 4.0.24, running under Windows XP.  I'll have to try this once I'm home and can test on OS X.
Kevin Pankratz
Blaine MN

Offline tomwb301

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Crash on clicking "Remove Group"
« Reply #1 on: April 27, 2015, 01:29:22 PM »
The same thing is happening on my 8.1 machine. I figured it will all sort out with the final release.
Tom
Crosby, Texas


Offline BobinWV

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Re: Crash on clicking "Remove Group"
« Reply #2 on: April 27, 2015, 02:51:52 PM »
Ditto

Offline sean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1727
    • View Profile
    • Xlights and Nutcracker Forum
Re: Crash on clicking "Remove Group"
« Reply #3 on: April 27, 2015, 02:54:56 PM »
Open an issue to track it on github. Sounds like a bug


Sent from my iPhone using Tapatalk
Sean
Littleton, CO
Latest releases http://nutcracker123.com/nutcracker/releases
xLights/Nutcracker Forum http://nutcracker123.com/forum/index.php
Fbook [url=https://www.facebook.com/groups/62

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Crash on clicking "Remove Group"
« Reply #4 on: April 27, 2015, 03:24:33 PM »
Please include as much info as possible like is the model you are deleting the only one in the list because I did see that crash.  Is it a wholehouse model?  Does the model you are deleting exist on the grid?  I know I tested deleting models because I had to make a change to that code back when it became a sorted list and things broke.

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Crash on clicking "Remove Group"
« Reply #5 on: April 27, 2015, 06:17:26 PM »
I just checked in a fix that I think will correct this.  It looked like the only way it would crash is if you were deleting the last model in the list because I was using the selection index to set the new one and if it was at the end then after deletion that index was out of bounds.

Offline kevinp

  • Sr. Member
  • ****
  • Posts: 373
    • View Profile
Re: Crash on clicking "Remove Group"
« Reply #6 on: April 27, 2015, 06:27:40 PM »
I just opened a github issue (#217) while you were doing this too.  I couldn't duplicate the issue at home under OS X, but I did get a different error that I copied and pasted the dialog box information.  Hopefully that will help Dan fix the Mac side error?
Kevin Pankratz
Blaine MN

Offline kevinp

  • Sr. Member
  • ****
  • Posts: 373
    • View Profile
Re: Crash on clicking "Remove Group"
« Reply #7 on: April 27, 2015, 06:35:26 PM »
Correction, I can duplicate it under OS X.  And you're correct, it has to be the last item in the list of model groups.
Kevin Pankratz
Blaine MN