winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.88k stars 762 forks source link

Can't open file .nc from fusion360 ? #2011

Closed Witawat closed 1 year ago

Witawat commented 1 year ago

Version

2.0.12

Hardware / Firmware

GRBL 1.1

What happened

image

How to reproduce

No response

Operating System

windows 10 64bit

Anything else

No response

breiler commented 1 year ago

That is an old problem that has been fixed, are you sure you are running version 2.0.12 of UGS?

Witawat commented 1 year ago

That is an old problem that has been fixed, are you sure you are running version 2.0.12 of UGS? yes 2.0.12

image image

breiler commented 1 year ago

Can you post your log files from C:/Users/[your username>]/.ugsplatform/2.X/dev/var/log/messages.log

Witawat commented 1 year ago

Can you post your log files from C:/Users/[your username>]/.ugsplatform/2.X/dev/var/log/messages.log

messages.log messages.log.1.txt messages.log.2.txt

breiler commented 1 year ago

Can you send me a gcode-file that you have problems opening

Witawat commented 1 year ago

test.zip reupload

breiler commented 1 year ago

The file opened fine for me.

Have you unpacked different versions of UGS on top of each other? Because the code that generates this line (test3)????1??test3 is old.

Try deleting the directory D:\XSoFTz\Download\Compressed\ugs-platform-app-win64\ugsplatform-win\platform and unzip it again.

Witawat commented 1 year ago

The file opened fine for me.

Have you unpacked different versions of UGS on top of each other? Because the code that generates this line (test3)????1??test3 is old.

Try deleting the directory D:\XSoFTz\Download\Compressed\ugs-platform-app-win64\ugsplatform-win\platform and unzip it again. err

breiler commented 1 year ago

Have you tried removing the old folder and tried unzipping the package again?

Witawat commented 1 year ago

Have you tried removing the old folder and tried unzipping the package again? yes i delete all file all version and delete C:\Users\XSoFTz-PC.ugsplatform\ and download new file unzip and run messages.log

Witawat commented 1 year ago

this step new run err1

breiler commented 1 year ago

Very strange. By deleting the C:\Users\XSoFTz-PC\.ugsplatform folder you have also cleared any library caches, which would have been my next suggestion.

I have no idea what is going on...

Witawat commented 1 year ago

this error message in visual mode ? , if not open visual moad no error ? in version 2.0.11 have error , but old version can't download

SEVERE [com.willwinder.ugs.nbm.visualizer.renderables.GcodeModel]: Problem opening file : Corrupt data found while processing gcode stream: (top)????1??top
java.io.IOException: Corrupt data found while processing gcode stream: (top)????1??top
    at com.willwinder.universalgcodesender.utils.GcodeStreamReader.getNextCommand(GcodeStreamReader.java:90)
    at com.willwinder.universalgcodesender.visualizer.GcodeViewParse.toObjFromReader(GcodeViewParse.java:134)
[catch] at com.willwinder.ugs.nbm.visualizer.renderables.GcodeModel.generateObject(GcodeModel.java:241)
    at com.willwinder.ugs.nbm.visualizer.renderables.GcodeModel.setGcodeFile(GcodeModel.java:119)
    at com.willwinder.ugs.nbm.visualizer.RendererInputHandler.setGcodeFile(RendererInputHandler.java:102)
    at com.willwinder.ugs.nbm.visualizer.RendererInputHandler.UGSEvent(RendererInputHandler.java:129)
    at com.willwinder.universalgcodesender.model.GUIBackend.lambda$sendUGSEvent$3(GUIBackend.java:859)
    at java.base/java.util.ArrayList.forEach(Unknown Source)
    at java.base/java.util.Collections$SynchronizedCollection.forEach(Unknown Source)
    at com.willwinder.universalgcodesender.model.GUIBackend.sendUGSEvent(GUIBackend.java:859)
    at com.willwinder.universalgcodesender.model.GUIBackend.processGcodeFile(GUIBackend.java:406)
    at com.willwinder.universalgcodesender.model.GUIBackend.setGcodeFile(GUIBackend.java:388)
    at com.willwinder.ugs.nbp.editor.EditorUtils.openFile(EditorUtils.java:35)
    at com.willwinder.ugs.nbp.editor.SourceMultiviewElement.componentOpened(SourceMultiviewElement.java:67)
    at org.netbeans.core.multiview.MultiViewPeer.showCurrentElement(MultiViewPeer.java:471)
    at org.netbeans.core.multiview.MultiViewPeer.peerComponentOpened(MultiViewPeer.java:357)
    at org.netbeans.core.multiview.MultiViewCloneableTopComponent.componentOpened(MultiViewCloneableTopComponent.java:129)
    at org.openide.windows.WindowManager.componentOpenNotify(WindowManager.java:282)
    at org.netbeans.core.windows.WindowManagerImpl.notifyTopComponentOpened(WindowManagerImpl.java:1189)
    at org.netbeans.core.windows.Central.addModeOpenedTopComponent(Central.java:773)
    at org.netbeans.core.windows.ModeImpl.addOpenedTopComponent(ModeImpl.java:333)
    at org.netbeans.core.windows.WindowManagerImpl.topComponentOpenAtTabPosition(WindowManagerImpl.java:1309)
    at org.netbeans.core.windows.WindowManagerImpl.topComponentOpen(WindowManagerImpl.java:1266)
    at org.openide.windows.TopComponent.open(TopComponent.java:472)
    at org.openide.windows.TopComponent.open(TopComponent.java:452)
    at org.openide.windows.CloneableOpenSupport.openCloneableTopComponent(CloneableOpenSupport.java:183)
    at org.openide.windows.CloneableOpenSupport$1.run(CloneableOpenSupport.java:82)
    at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEvent(NbMutexEventProvider.java:95)
    at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.writeAccess(NbMutexEventProvider.java:60)
    at org.netbeans.modules.openide.util.LazyMutexImplementation.writeAccess(LazyMutexImplementation.java:56)
    at org.openide.util.Mutex.writeAccess(Mutex.java:285)
    at org.openide.windows.CloneableOpenSupport.open(CloneableOpenSupport.java:79)
    at org.openide.text.CloneableEditorSupport.open(CloneableEditorSupport.java:411)
    at com.willwinder.ugs.nbp.core.actions.OpenAction.openFile(OpenAction.java:111)
    at com.willwinder.ugs.nbp.core.actions.OpenAction.actionPerformed(OpenAction.java:98)
    at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
    at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.desktop/java.awt.Component.processEvent(Unknown Source)
    at java.desktop/java.awt.Container.processEvent(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Unknown Source)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Unknown Source)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
breiler commented 1 year ago

Yes, and that is an indication that it is somehow running some old code. And I don't know how that is possible as you've deleted both the application folder and cache-directory.

We changed the separator from ? to ¶¶ in #1897 to mitigate other problems. So the (top)????1??top should actually be (top)¶¶¶¶¶¶¶¶1¶¶¶¶top now.

Witawat commented 1 year ago

i download file on github now dowload on jfos.io is ok ?

breiler commented 1 year ago

Fixed in #2078

This is available now in the latest nightly build. It will be available in the next release 2.0.13.