New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visualizer not working; showing blank white screen on Windows 7 x64 #236
Comments
My machine is NOT an AMD64. It's an Intel x64, so I don't know why it's looking for AMD64 libs. |
Try the 2.0 classic GUI build, I just added a link to the main page. I made a few fixes to the visualizer recently and added some more log messages. |
Thanks to the person who fixed the nightly build for 2.0, however, the visualizer for 2.0 isn't working either. It displays a black window and prints the errors below. I don't write Java code, but it seems like the .jar file maybe missing important platform specific resource files (at least that's what the comments from the [JarClassLoader] is stating). Also, why are the program [JarClassLoader]comments about not finding "amd64" files? I have an Intel x64 computer... One last note: These are the same errors I get in every version since v1.0.6. INFO: Getting control state. [JarClassLoader] INFO: findResource(): unable to locate "natives/windows-amd64/" |
Having the screen be black is good, it means that the 3D libraries have been loaded. From your error it looks like you have a bad gcode, specifically "YF2000". I'm not sure if the standard allows it or not, but the UGS gcode parser can't handle it right now. Basically you are specifying that there is a Y coordinate, but then there is no coordinate before the feed rate is given. Are you able to visualize another gcode file? There are several gcode files that I use to test here: https://github.com/winder/Universal-G-Code-Sender/tree/master/test_files |
Ok. I'll try the test files. Here is the gcode file I was trying to visualize (this is the same file that visualized just fine with v1.0.6). It's a simple box. M136 (enable build) |
I tested a couple of sample files from the link you gave me and both visualize using v2.0. Thank you. |
UGS should be able to at least handle/ignore cases like this, I've just On Tue, Mar 10, 2015 at 5:52 PM, NothinIsEasy notifications@github.com
|
I'm going to close this issue, thank you. One last thing, if you have time. Is there a list of G-Code commands that UGS is using? Then I can, at least, pre-parse the gcode myself, to ferret out potential errors. |
Its just the stand alone X Y Z, put a zero after them and I expect the unsupported commands will be ignored and everything else should look alright. |
I'm using January 10 2019 nightly build version classic and visualizer is blank (white) and console is generating some Exception errors about OpenGL. C:\Users\Phoenix\Desktop\UniversalGcodeSender-v2.0.0-stable2>java -jar -Xmx256m UniversalGcodeSender.jar |
The visualizer works for v1.0.6, but only displays a blank white window for versions v1.0.7 and v1.0.8.
Using v1.0.8 (by running start-windows.bat), the command window is displaying these errors:
Stable Library
Native lib Version = RXTX-2.2-20081207 Cloudhopper Build rxtx.cloudhopper.net
Java lib Version = RXTX-2.1-7
WARNING: RXTX Version mismatch
Jar version = RXTX-2.1-7
native lib Version = RXTX-2.2-20081207 Cloudhopper Build rxtx.cloudhopper.net
[JarClassLoader] INFO: findResource() found: "com/jogamp/common/os/Platform.class" for caller null in codebase lib/glue
gen-rt.jar
[JarClassLoader] INFO: findResource() found: "jogamp/common/Debug.class" for caller null in codebase lib/gluegen-rt.jar
[JarClassLoader] INFO: findResource(): unable to locate "natives/windows-amd64/"
[JarClassLoader] INFO: findResource(): unable to locate "jogamp/nativetag/common/windows/amd64/TAG.class"
[JarClassLoader] INFO: findResource() found: "jogamp/nativewindow/Debug.class" for caller null in codebase lib/jogl-all
.jar
[JarClassLoader] INFO: findResource(): unable to locate "natives/windows-amd64/"
[JarClassLoader] INFO: findResource(): unable to locate "jogamp/nativetag/nativewindow/windows/amd64/TAG.class"
[JarClassLoader] INFO: findResource() found: "jogamp/opengl/Debug.class" for caller null in codebase lib/jogl-all.jar
[JarClassLoader] INFO: findResource(): unable to locate "natives/windows-amd64/"
[JarClassLoader] INFO: findResource(): unable to locate "jogamp/nativetag/opengl/windows/amd64/TAG.class"
[JarClassLoader] INFO: findResource() found: "jogamp/newt/Debug.class" for caller null in codebase lib/jogl-all.jar
[JarClassLoader] INFO: findResource(): unable to locate "natives/windows-amd64/"
[JarClassLoader] INFO: findResource(): unable to locate "jogamp/nativetag/newt/windows/amd64/TAG.class"
[JarClassLoader] INFO: findResource() found: "jogamp/nativewindow/Debug.class" for caller null in codebase lib/jogl-all
.jar
[JarClassLoader] INFO: findResource(): unable to locate "natives/windows-amd64/"
[JarClassLoader] INFO: findResource(): unable to locate "jogamp/nativetag/nativewindow/windows/amd64/TAG.class"
[JarClassLoader] INFO: findResource() found: "jogamp/nativewindow/Debug.class" for caller null in codebase lib/jogl-all
.jar
[JarClassLoader] INFO: findResource(): unable to locate "natives/windows-amd64/"
[JarClassLoader] INFO: findResource(): unable to locate "jogamp/nativetag/nativewindow/windows/amd64/TAG.class"
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "YF2000"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at sun.misc.FloatingDecimal.parseDouble(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at com.willwinder.universalgcodesender.gcode.GcodePreprocessorUtils.parseCoord(GcodePreprocessorUtils.java:340)
at com.willwinder.universalgcodesender.gcode.GcodePreprocessorUtils.updatePointWithCommand(GcodePreprocessorUtil
s.java:192)
at com.willwinder.universalgcodesender.gcode.GcodeParser.handleGCode(GcodeParser.java:290)
at com.willwinder.universalgcodesender.gcode.GcodeParser.processCommand(GcodeParser.java:231)
at com.willwinder.universalgcodesender.gcode.GcodeParser.addCommand(GcodeParser.java:133)
at com.willwinder.universalgcodesender.gcode.GcodeParser.addCommand(GcodeParser.java:123)
at com.willwinder.universalgcodesender.visualizer.GcodeViewParse.toObjRedux(GcodeViewParse.java:102)
at com.willwinder.universalgcodesender.visualizer.VisualizerCanvas.generateObject(VisualizerCanvas.java:443)
at com.willwinder.universalgcodesender.visualizer.VisualizerCanvas.setGcodeFile(VisualizerCanvas.java:175)
at com.willwinder.universalgcodesender.visualizer.VisualizerWindow.setGcodeFile(VisualizerWindow.java:93)
at com.willwinder.universalgcodesender.MainWindow.visualizeButtonActionPerformed(MainWindow.java:1568)
at com.willwinder.universalgcodesender.MainWindow.access$500(MainWindow.java:73)
at com.willwinder.universalgcodesender.MainWindow$6.actionPerformed(MainWindow.java:310)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0-FPSAWTAnimator#00-Timer0" com.jogamp.opengl.util.AnimatorBase$UncaughtAnimatorExce
ption: java.lang.RuntimeException: javax.media.opengl.GLException: Caught NullPointerException: null on thread AWT-Event
Queue-0
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:84)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:449)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:176)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
Caused by: java.lang.RuntimeException: javax.media.opengl.GLException: Caught NullPointerException: null on thread AWT-E
ventQueue-0
at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58)
at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103)
at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:201)
at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:202)
at javax.media.opengl.Threading.invoke(Threading.java:221)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:525)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:77)
... 4 more
Caused by: javax.media.opengl.GLException: Caught NullPointerException: null on thread AWT-EventQueue-0
at javax.media.opengl.GLException.newGLException(GLException.java:75)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1394)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.willwinder.universalgcodesender.visualizer.VisualizerCanvas.reshape(VisualizerCanvas.java:228)
at jogamp.opengl.GLDrawableHelper.reshape(GLDrawableHelper.java:742)
at jogamp.opengl.GLDrawableHelper.reshape(GLDrawableHelper.java:748)
at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1379)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
... 16 more
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Caught NullPointerException: null on thread AWT-E
ventQueue-0
at javax.media.opengl.GLException.newGLException(GLException.java:75)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1394)
at javax.media.opengl.Threading.invoke(Threading.java:223)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:525)
at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:579)
at sun.awt.RepaintArea.paintComponent(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.willwinder.universalgcodesender.visualizer.VisualizerCanvas.reshape(VisualizerCanvas.java:228)
at jogamp.opengl.GLDrawableHelper.reshape(GLDrawableHelper.java:742)
at jogamp.opengl.GLDrawableHelper.reshape(GLDrawableHelper.java:748)
at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1379)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
... 28 more
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Caught NullPointerException: null on thread AWT-E
ventQueue-0
at javax.media.opengl.GLException.newGLException(GLException.java:75)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1311)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1131)
at javax.media.opengl.awt.GLCanvas$11.run(GLCanvas.java:1394)
at javax.media.opengl.Threading.invoke(Threading.java:223)
at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:525)
at javax.media.opengl.awt.GLCanvas.paint(GLCanvas.java:579)
at sun.awt.RepaintArea.paintComponent(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.willwinder.universalgcodesender.visualizer.VisualizerCanvas.reshape(VisualizerCanvas.java:228)
at jogamp.opengl.GLDrawableHelper.reshape(GLDrawableHelper.java:742)
at jogamp.opengl.GLDrawableHelper.reshape(GLDrawableHelper.java:748)
at javax.media.opengl.awt.GLCanvas$10.run(GLCanvas.java:1379)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1277)
... 28 more
The text was updated successfully, but these errors were encountered: