Closed Xpktro closed 1 year ago
Hey @Xpktro, thank you for raising the issue. One thing to rule out is if it's related to Java. If you go to Settings
-> Java
you can disable using the bundled Java (currently OpenJDK) and instead use Java you have installed on your machine (JDK 8u202 is recommended for Processing).
The choice to go with the OpenJDK by default for Visor is still up for debate so I'm interested to know if this helps you at all. Let me know if that makes sense or not and I look forward to hearing from you, thanks!
Hello @EmperorJack thanks for your quick response! by your suggestion I modified the mentioned setting and the crash persisted. I also tried installing the actual Oracle 8u202 JDK, pointed to the exact location of it and got the same result.
By checking the actual exception message I think it might be unrelated to java itself and more like something responsible for ui updates running in a thread other than the main one (being not running on AppKit (main) thread
the exception message I got every time).
Hey again @Xpktro. You're right in that the exception is coming from something responsible for the UI, my guess is JOGL at this stage. Thank you for trying to switch the Java version though, in my experience with similar exceptions I've found that the Java version I'm using has sometimes affected whether the error shows up as a warning or as an exception. Though, I haven't been able to replicate the exact error you are facing.
Next thing to try is to see what happens when running Visor with the latest version of JOGL on your machine. I've made a new Visor build with this if you could please try it out: https://drive.google.com/open?id=1vQwnf4U-AepYENq8nvzSsJc77k3cJVYJ
Let me know how you go. Thank you for spending time to debug this, it's very much appreciated.
Thanks to you for taking the time trying to help me @EmperorJack ! I tried the build you provided with no results. However now the UI doesn't go blank and a Network Error alert appears on screen:
Not working even setting Visor to use its bundled java
Thanks for trying that out @Xpktro. I've tried to replicate on a Macbook with Mojave (10.14.6) as well but with no luck. I also realise this is likely the same problem that was occurring in issue #2 (still unresolved).
I'm trying to think of a way to work out at what point the error is coming from, but it's quite tricky without being able to replicate it on my end. One thing to try and see is if this Java code works for you in Processing. It mimics part of what Visor does by creating a second sketch (which runs in another thread) from the 'main thread', which may (or may not) relate to the reported error.
void settings() {
size(400, 400, P3D);
}
void setup() {
String args[] = { "" };
PApplet.runSketch(args, new Sketch());
}
void draw() {
background(0);
}
class Sketch extends PApplet {
void settings() {
size(400, 400, P3D);
}
void draw() {
background(255, 0, 0);
}
}
Once again, let me know how you go. And thank you for spending time on this.
Hello and sorry for the delayed response. I've downloaded and tried the example sketch you provided, and although both sketch windows seem to appear, some strange and incomplete exception message is displayed in the console. Nothing appears in the errors tab tho
Maybe this can lead you in the right path!
Have just released version 0.11.0, which updates to Processing 4.3 and Java 17, and may fix this issue. Going to close for now, but can reopen if still present.
When trying to run any sketch (even the default, blank one) in the latest Visor build, the app main screen crashes (going blank) and I get the following trace (I'm using a 2018 macbook pro running macOS Mojave 10.14.6):
large formatted text ahead:
Any hints or help regarding this behavior would be appreciated.