Page 1 of 1

100% CPU Xubuntu, W/USB midi

Posted: Tue Jul 21, 2015 4:33 pm
by manfacro
Hi all, my QLC+ app seems to have developed a CPU hog bug. It has worked just fine running for months. In the past week I have upgraded to 4.9.1, started testing/using a USB midi controller (nanoKontroller), and also in the virtual console created a panel that corresponded with the sliders, something in the back of my mind is having excessive number of pages in the panel. I did start with 35 pages so I don't have to add pages later (because having the usability to clone again) I did reduce the pages to 15 now but it still did have a freezing fit.


Not sure if it is related to the USB MIDI, the Linux didn't freeze, the CPU peak was just the QLC process. It freezes when the program opens/loads. Takes about 5-10min to load and unfreeze. Then it will work for a bit, and then spontaneously freeze randomly if I click a button for a scene/function.


Any ideas?


--Dan

Re: 100% CPU Xubuntu, W/USB midi

Posted: Tue Jul 21, 2015 6:49 pm
by manfacro
Upon further playing around, it does appear to be tied to one of the rotary knobs which is controlling a submaster. It is always set at 255, but when I move it it freezes the program and 100% CPU.


Any ideas?


--Dan

Re: 100% CPU Xubuntu, W/USB midi

Posted: Tue Jul 21, 2015 7:03 pm
by sbenejam
Can you post your workspace?.

Re: 100% CPU Xubuntu, W/USB midi

Posted: Wed Jul 22, 2015 3:19 am
by manfacro
Here is a link to my qxw file in Google Docs.

https://drive.google.com/open?id=0B2oE5 ... EhLWDFsbTA


One thing to note, the submaster that seems to be part of the problem is in two different frames, controlled by the same midi channel. Originally this was not an issue.


--Dan

Re: 100% CPU Xubuntu, W/USB midi

Posted: Wed Jul 22, 2015 6:11 am
by plugz
manfacro wrote:Here is a link to my qxw file in Google Docs.

https://drive.google.com/open?id=0B2oE5 ... EhLWDFsbTA


One thing to note, the submaster that seems to be part of the problem is in two different frames, controlled by the same midi channel. Originally this was not an issue.


--Dan
Hi,

It's private in google docs... Can you share it here ? :)

Thanks

Re: 100% CPU Xubuntu, W/USB midi

Posted: Wed Jul 22, 2015 6:11 am
by manfacro
plugz wrote: It's private in google docs... Can you share it here ? :)

Thanks
Lets try this again with the public link... https://drive.google.com/file/d/0B2oE5x ... sp=sharing


File is too big to attach here...now that I think about it I think that is the problem. Between backups file jumped from 178kb to 5mb. Ideally I don't want to have to rebuild it, but it's XML? So I may do some poking around trial and error and see if I can manually edit it when I get home in 12hrs. But I'm up for ideas.


--Dan

Re: 100% CPU Xubuntu, W/USB midi

Posted: Wed Jul 22, 2015 10:09 am
by plugz
Some errors occurred while loading the project:

No fixture definition found for <American DJ> <RGBA>
No fixture definition found for <American Dj> <P36>
Please also share any fixture definition that's not currently in QLC+ :)



Appart from that: that's a HUGE workspace :) ! Yes, your submaster knob is acting slow, event without a controller attached. I'll do more tests sometime.

EDIT- The submasters in the 16-page frame are acting slow

Re: 100% CPU Xubuntu, W/USB midi

Posted: Wed Jul 22, 2015 3:20 pm
by plugz
OK, I've looked at this a little more.

You have litteraly more than 9000 widgets in your virtual console. A grep tells 9029 widgets. QLC+ just can't handle this much. You have hidden widgets EVERYWHERE.


Fun workspace though, I think I'll use it to test some performance improvements.

Re: 100% CPU Xubuntu, W/USB midi

Posted: Wed Jul 22, 2015 3:20 pm
by mcallegari
plugz wrote:You have litteraly more than 9000 widgets in your virtual console. A grep tells 9029 widgets. QLC+ just can't handle this much. You have hidden widgets EVERYWHERE.
LOOOOL
Then people ask to have more page cloning options....

Re: 100% CPU Xubuntu, W/USB midi

Posted: Wed Jul 22, 2015 4:09 pm
by manfacro
Ohh crap, just did some rough math, there should be ~850 controls in the new stuff (top most frame) and then I can't imagine more than 100 Active stuff in the back (old stuff for web automation)

Can't wait to really start exploring what happened. I'm guessing something with the cloning.


Question, if I create a panel, add/clone a few pages of widgets, but then go back and delete pages, but then go in and add/clone them back in does it remember what was on the old pages of the panel? I have a suspicion when I was testing the cloning a few times to get it right it just remembered the old pages and added the new stuff on top of it. That's my theory I'm going with, when I get home tonight I gotta start digging!



--Dan

Re: 100% CPU Xubuntu, W/USB midi

Posted: Thu Jul 23, 2015 1:20 am
by manfacro
Problem solved, copied/re-cloned the new stuff and the project magically dropped to 600kb in size, loads and runs instantly again.


Thank you for all your input!


--Dan