Skip to content
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

Windows 10; X3GWriter making empty file #37

Open
Danmchales opened this issue Aug 24, 2020 · 10 comments
Open

Windows 10; X3GWriter making empty file #37

Danmchales opened this issue Aug 24, 2020 · 10 comments

Comments

@Danmchales
Copy link

Hello, I'm trying to use Cura with my Flashforge creator pro, but cura only produces a file with no data. Is there a way to fix this?

@Ghostkeeper
Copy link
Owner

I don't know. Could you show me Cura's log file?

@Danmchales
Copy link
Author

Curalog.txt

Sure, thank you for your help!

@mwu1020
Copy link

mwu1020 commented Aug 27, 2020

Hello Ghostkeeper, I have the same problem like Danmchales.
I can create the x3g file but it is empty. I'm using MacOS 10.15.6 with Cura 4.6/4.7 3d Printer is an Makerbot Replicator 2
log file attached.

Very thanks for your help
Martin

Curalog.txt

@Ghostkeeper
Copy link
Owner

Ghostkeeper commented Aug 28, 2020

@mwu1020 there is a similar report for MacOS here, with a lot of discussion: #30

The problem with MacOS seems to be that the GPX binary I'm using is linked to a libgcc distributable which is not always present on your computer. That's different from what's happening on Windows, so I'd like to keep the issues separate.

@Ghostkeeper
Copy link
Owner

Strange, it looks normal from the log file that Danmchales posted. Writing the file took 0.26s, the GPX command gives no output in its error streams. All seems correct to me. Very strange.

You could look if there is any mention of "gpx.exe" in the blocklist of any firewall you may be using. Never heard of the firewall blocking that though, but it could be.

@Danmchales
Copy link
Author

gpx.exe doesn't appear in my firewall, anything else I can try?

@swyphcosmo
Copy link

I had this happen to me too after an upgrade to 4.7. When I opened it, I selected firewall settings to allow comms on Private and Public networks. I tried downloading 4.6.1 (which I uninstalled when I upgraded) and 4.6.2, both had the same issue even though each had their own copies of the X3GWriter plugin.

I rebooted and removed cura from the firewall settings. When I opened cura this time, I kept the default firewall settings (only Public networks), and poof! It worked!

Hope this works for others too!

@kleinwareio
Copy link

Also having empty .x3g file output problem. Win 10, Cura 4.8.0, X3GWriter 1.1.11.

Running Cura as admin (as suggested in another, closed issue) creates .x3g files as expected.

@charisis
Copy link

charisis commented Feb 6, 2021

The problem, at least in my case, was that the gpx executable was linked against libwinpthread-1.dll which doesn't exist in windows. I believe this comes with some mingw package.

I was able to work around the problem by downloading a fresh (I believe statically linked) binary from the gpx project and dropping it into the plugin directory.

Maybe you'll want to check the returncode of the pipe subprocess after completion to catch abnormal termination cases.

@Ghostkeeper
Copy link
Owner

I'm working on a new release of the X3GWriter with updated GPX version and rebuilt binary, as an attempt to fix this. I have a preview here, which you can drop in your Cura window to install. Would any of you like to try?
X3GWriter7.0.0.zip
The file refers to SDK 7.0.0, which should work with Cura 4.4 and newer. (The release would actually be versioned 1.1.12.)

To install this version: Drop the .curapackage file onto the Cura window, then restart Cura.

To uninstall it (if unsuccessful or whatever): Go to the Marketplace in Cura and click on the "Installed" tab. Then search for the X3GWriter and press the "Uninstall" button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants