Page 1 of 1

Crash / segfault in simple desk

Posted: Fri Mar 17, 2023 11:46 am
by fnetx
Hi,

I'm having trouble building the software from source, so I just grabbed https://www.qlcplus.org/downloads/test/ ... 4.AppImage which seemed somewhat recent. The commit log since that date don't seem to mention related issues.

What I do:

- create two dimmers (can be generic dimmers or spotlights)
- switch to simple desk
- raise fader one
- raise fader two
- observe crash

It is reproducible for me with the attached showfile;:
- go to simple desk
- raise fader 1
- raise fader 2

Result:

Log excerpt:

Code: Select all

[MainView2D] Creating fixture with ID 0 0 0 pos: QVector3D(1342.52, 1000, 1940.45)
[MainView2D] Creating fixture with ID 1 0 0 pos: QVector3D(1692.52, 1000, 1940.45)
Universe thread started 0
void Universe::updateIntensityChannelsRanges() : 1 ranges
Universe thread started 1
Universe thread started 2
Universe thread started 3
[Simple Desk] set value for fixture 0 channel 0 value 2
Got action: 0xC000, history length: 1 (1)
[Simple Desk] set value for fixture 0 channel 0 value 3
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
Generic fader with priority 2 registered at pos 0 , count 1
[Simple Desk] set value for fixture 0 channel 0 value 5
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 10
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 16
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 26
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] set value for fixture 0 channel 0 value 32
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] set value for fixture 0 channel 0 value 42
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 48
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 58
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] set value for fixture 0 channel 0 value 71
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 85
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 108
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] set value for fixture 0 channel 0 value 117
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 136
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 155
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] set value for fixture 0 channel 0 value 161
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] set value for fixture 0 channel 0 value 165
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 172
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] set value for fixture 0 channel 0 value 178
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 197
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 225
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 245
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] set value for fixture 0 channel 0 value 248
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 0 channel 0 value 255
Found match at 0 QVariant(SceneValue, ) QVariant(SceneValue, )
Got action: 0xC000, history length: 1 (1)
[Simple Desk] get fader for universe 0 fixture 0 channel 0
[Simple Desk] set value for fixture 1 channel 0 value 1
Got action: 0xC000, history length: 2 (2)
[Simple Desk] get fader for universe 8388607 fixture 4294967295 channel 4294967295
Segmentation fault (core dumped)
Full log:
https://paste.debian.net/hidden/374d9d6f/

I didn't find recent bug reports of a similar issue, but I understand that I might have missed them. Thank you for working on this project.

Re: Crash / segfault in simple desk

Posted: Sat Mar 18, 2023 6:19 pm
by sbenejam
I tested on Ubuntu 22.04 with same test version, no crash here.

Re: Crash / segfault in simple desk

Posted: Sat Mar 18, 2023 7:13 pm
by kenact
Tested on Windows 10 x64, 5 beta 2, no crash.

Re: Crash / segfault in simple desk

Posted: Mon Mar 27, 2023 7:13 am
by pabo
Same crash on windows 11

Re: Crash / segfault in simple desk

Posted: Mon Mar 27, 2023 10:47 am
by giacomo
Same issue here, debian 12 with the last appimage 20230307.
I had this issue last Saturday, systematically, my file was 5 months old so I thought that maybe it was a version problem.
Tested again now with the new file uploaded and I confirm the crash.

Re: Crash / segfault in simple desk

Posted: Tue Mar 28, 2023 7:25 am
by GGGss
Windows here - latest GIT - NO crash

Re: Crash / segfault in simple desk

Posted: Thu May 11, 2023 10:12 pm
by fnetx
I confirm this is still present. I can add that this problem is only for different fixtures. If you add fixtures with multiple channels, it does work until you fade a second fixture.

Re: Crash / segfault in simple desk

Posted: Thu Nov 02, 2023 7:41 pm
by ramack
I tried QLC5 (beta3-test as I am on Debian linux and beta2 directly crashed with the `GLIBC_2.34' not found.

But I'd like to highlight, that I face the same trouble as described here:
as soon as I try to raise a fader for the second fixture in the simple desk I get a seg fault as it tries to access an unexisting fixture on a weird universe:

Code: Select all

[Simple Desk] get fader for universe 8388607 fixture 4294967295 channel 4294967291
Currently I am not in the mood to compile and debug it myself, but if I can help something with testing I'd like to help!

(If you prefer this as an issue on github, let me know)

Thanks for the great work!

Re: Crash / segfault in simple desk

Posted: Tue Nov 07, 2023 12:44 pm
by mcallegari
Which beta3-test exactly?

Re: Crash / segfault in simple desk

Posted: Thu Nov 09, 2023 4:07 pm
by ramack
mcallegari wrote: Tue Nov 07, 2023 12:44 pm Which beta3-test exactly?
I have here QLC+_5.0.0_beta3-TEST-20230307-x86_64.AppImage from where I don't remember, but beta2 (QLC+_5.0.0_beta2-x86_64.AppImage) fails with:

Code: Select all

qlcplus-qml: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by qlcplus-qml)
and I remember that I searched for the issue and found a link in some (forum?) post to this beta3. If I can try something else, let me know.