Crash when creating gcode in J tech Photonics Laser Tool

Bug #1770902 reported by Miguel
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned

Bug Description

Hello I'm following this tutorial http://www.instructables.com/id/Make-Your-3D-Printer-Draw-Things/ and when I click apply on the J tech Photonics Laser Tool tab (to create g code) just crashes just like this http://prntscr.com/jh4ksp

Please Advise

Using 0.92.3 x86 (already tried 64bits version) on windows 10

Revision history for this message
Hachmann (marenhachmann) wrote :

To help us determine if this is a problem with Inkscape or with the third-party extension, or with your Inkscape installation, please answer the following questions:

- have you uninstalled Inkscape completely and made sure that this has deleted all its files before you reinstalled it? If not, please try that first and let us know what happens when you try it again afterwards.

- please share a file and the exact steps to reproduce the issue (where do you click, what options do you select)
(you can append attachments to your comments here, 1 per comment)

Revision history for this message
biscuitlad (kesterclegg) wrote :

Hi

I think this is the same bug as I experience on Ubuntu Bionic. There's a directory parsing string error message. Either you type a directory, and laser.py claims it doesn't exist, or you leave it blank in which case it fails to write the gcode file:

Traceback (most recent call last):
  File "laser.py", line 3173, in <module>
    e.affect()
  File "/usr/share/inkscape/extensions/inkex.py", line 283, in affect
    self.effect()
  File "laser.py", line 3170, in effect
    self.laser()
  File "laser.py", line 3032, in laser
    self.check_dir()
  File "laser.py", line 2554, in check_dir
    if self.options.directory[-1] not in ["/","\\"]:
IndexError: string index out of range

This only occurs with the plugin. Have emailed Photonics to let them know. If anyone has a quick work around please let me know - maybe commenting out the directory path check?

Revision history for this message
biscuitlad (kesterclegg) wrote :

(bionic)kester@localhost:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
(bionic)kester@localhost:~$ inkscape --version
Inkscape 0.92.3 (2405546, 2018-03-11)
(bionic)kester@localhost:~$

Revision history for this message
Hachmann (marenhachmann) wrote :

You could just try it out, and report back if it worked.

Revision history for this message
Craig Manning (onyx-sphinx) wrote :

Hi,

I found this post because I had the same error and it's the top Google result.

If I specified a directory for the output file it was all good. I think it's the blank default path which gives rise to the error, there is no last character in an empty string.

Revision history for this message
Max Gaukler (mgmax) wrote :

Closing: The bug is not within Inkscape, please complain with the author of the original plugin.

Changed in inkscape:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.