Page 1 of 1

Generic Dimmer channel number change leeds to crash

Posted: Fri Dec 04, 2015 8:48 am
by shortylight
Hi,

first of all congratulations to all of you doing such a brilliant job. I tested several other programs for designing light shows and live editing for theatrical use of light, but at last I came to QLC+ as it is the best! As I plan to build my own light control desk on base of QLC+ I like to have a look into the source code and try to find ways to extend qlc+ to my needs if possible. As soon as this work starts, I will let you know.

I started testing the new 4.10.2 on Windows (64bit Windows 7) ad came to this little problem:

If you create a generic dimmer fixture and edit it afterwards, QLC+ will crash if you change the number of channels to a higher value. This is regardless if there is free address space or not for that change. The free address check does not throw an error. As there is not so much sense in changing the number of channels after you created a dimmer fixture, it would be possible just to disable the channel spin in line 474 of qlcplus/ui/src/addfixture.cpp to fix it.

Regards Martin

Re: Generic Dimmer channel number change leeds to crash

Posted: Fri Dec 04, 2015 8:58 am
by mcallegari
Hi, I just tried with the latest GIT build and it doesn't crash for me.
Can you try a TEST version and confirm it has been solved ?
Otherwise, please indicate the exact steps to reproduce the issue.

Re: Generic Dimmer channel number change leeds to crash

Posted: Fri Dec 04, 2015 9:35 am
by shortylight
Hi,

I used that test version already. Here is my detailled description:

1) start QLC+
2) add a set of generic dimmers by dialoug ( e.g. 6 channel each, 3 fixtures, dmx start address 1, no address spacing)
3) confirm
4) open the properties dialogue of the last fixture by double click in the fixture list.
5) edit the channel number ( e.g. 6 -> 7)
6) confirm
7) try to do any other thing in QLC+. The program crashes after a short time.

This was reproducable on two different computers with 4.10.1, 4.10.2 (23.11.) I will also check this again tonight, when I will compile a new version directly from todays GIT sources.

Regards Martin

Re: Generic Dimmer channel number change leeds to crash

Posted: Fri Dec 04, 2015 9:37 am
by plugz
Hello,
shortylight wrote: 7) try to do any other thing in QLC+. The program crashes after a short time.
Try to do what exactly ?

EDIT- I just tested. You don't have to do anything in fact, QLC+ crashed from the moment the dimmer edit has been confirmed.

Re: Generic Dimmer channel number change leeds to crash

Posted: Fri Dec 04, 2015 9:46 am
by shortylight
That is right.

It is not necessary to do anything, but sometimes when I tested it, it took some seconds to appear, so I did something else in QLC+.

Regards Martin

Re: Generic Dimmer channel number change leeds to crash

Posted: Fri Dec 04, 2015 9:50 am
by mcallegari
OK, I saw it too.
In the first test I've done I created just one fixture.
This happens when creating multiple fixtures and I think I know why it crashes.

@plugz: probably they are sharing the same FixtureDef pointer, and changing one deletes it and create a new one.
I think every Generic dimmer should have its own FixtureDef pointer. I'll check the code later unless you fix it before me.

Re: Generic Dimmer channel number change leeds to crash

Posted: Fri Dec 04, 2015 9:53 am
by plugz
mcallegari wrote: @plugz: probably they are sharing the same FixtureDef pointer, and changing one deletes it and create a new one.
I think every Generic dimmer should have its own FixtureDef pointer. I'll check the code later unless you fix it before me.
I also found this, and I'm currently working on a fix :)

Re: Generic Dimmer channel number change leeds to crash

Posted: Fri Dec 04, 2015 10:03 am
by shortylight
Hi,

I am impressed by the speed of your answers! I never met a developer team before with such a quick response! Congratulations!

Regards Martin

Re: Generic Dimmer channel number change leeds to crash

Posted: Fri Dec 04, 2015 4:10 pm
by plugz