Closed Toby66 closed 2 years ago
Hrm I haven't seen that exact error before but it's definitely coming from the JOGL stack which does the openGL bootstrapping for Java/Processing.
Are you hoping/intending to run with a UI on the RaspPi? If not, then you should pass the --headless CLI flag when you invoke on RPi. https://github.com/heronarts/LXStudio-IDE/blob/master/src/main/java/heronarts/lx/app/LXStudioApp.java#L105
This will run without any of the Processing UI being bootstrapped up and should bypass all the code that's going to have problems with GL libraries.
Let me know how that goes? If still having trouble can you send me the details/commands you're using to invoke this from the CLI?
Hey Mark,
I've been having a little more look at this and headless works fine, I was just missing a '-' in the terminal before (it was late at night that's my excuse! ha)
I did a fresh install of Raspbian and compile which seemed to fix the UI error initially, allowing me to open and close the programme with the UI still working, but then as soon as you save or load a project and open it again, I get the same blank screen and errors in terminal. Even removing the project files and copying over a new compile still doesn't fix it so it seems to be saving something/triggering something on the Pi itself on the first run?
Hey Toby - ah, glad headless was simple. Regarding the other error, I now see what's going on here. The difference between a fresh load and a file-restore-load is that there is a file containing the last used window size, which LXStudio will try to restore on subsequent launches. And some systems for some reason really don't like this setSize() call.
That's happening in here: https://github.com/heronarts/P3LX/blob/master/src/main/java/heronarts/p3lx/ui/UI.java#L838
Solution:
I don't know why this barfs on some systems and is fine on others. Hopefully it will work more broadly on Processing 4 with newer JOGL libraries (I'm going to upgrade soon).
As long as you can live with non-resizability, I think this will sort you out with a one-line fix. Let me know if that gets it properly working for you!
Thanks Mark, I made the amendments and has been working perfect this past week!
Hi there, I'm trying to compile the LXStudio-IDE to put over onto a RaspberryPi but I'm getting the following error on terminal when launching.
I'm using the LXStudioAPP class and have tried a fresh Pi install (with default-jdk installed) and with my own, an empty and the example LXP. I get the error both with a screen attached, where lines appear over the UI, and on VNC which gives just a black screen. Although it appears to open the project file, it doesn't output any data via artnet (checked the project file and all looks ok)
Also when running just over Putty/SSH with no screen attached I get the below;
I just wanted to make sure I've not missed anything obvious or stumbling onto a known problem before digging deeper.
Thanks!