Have used Inkscape since 2019, done lots of "stuff" with it. Haven't used it this Summer, and am now starting projects again. Last time I used it, it was ver 1.0. Now, due to automatic updates, it's Inkscape 1.2.2 (1:1.2.2+202212051552+b0a8486541), and acts like a completely different program!!
The default open wants to load "All Inkscape Files", have to open drop down to get to "All Files" to attempt to load an image. Images WILL NOT LOAD!! .jpg, .jpeg, .bmp, .png... none of them will load!!
Error message: "Could not detect file format. Tried to open it as an SVG anyway but this also failed."
Copying & attempting to paste an image or dragging an image to the Inkscape page generates this error:
"Inkscape encountered an internal error and will close now. Automatic backups of unsaved documents were done to the following locations: /home/dk/New document blah blah blah"
So, until this is fixed, I have a worthless program that will not let me create anything. Perhaps is time to delete and reinstall an older version?
Did that... Here's output: ** (org.inkscape.Inkscape:693127): CRITICAL **: 09:38:14.440: unhandled exception (type Glib::Error) in signal handler: domain: g-file-error-quark code : 2 what : Error opening directory “/usr/share/inkscape/extensions/gcodeplotutils/pyserial3/serial”: Permission denied
Attempting to open the dir with Krusader, denied. Root mode Krusader, opens fine, can see all contents.
Looking at that dir permissions, "Others" were given "No Access". I changed that to "Can Only View Content", and get even weirder error message:
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.689: Duplicate option text ('115200') for parameter 'send-speed' in extension 'mobi.omegacentauri.gcodeplot'.
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.689: Duplicate option value ('115200') for parameter 'send-speed' in extension 'mobi.omegacentauri.gcodeplot'.
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.689: Invalid default value ('0') for parameter 'boolean-shading-crosshatch' in extension 'mobi.omegacentauri.gcodeplot'
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.689: Duplicate option text ('45') for parameter 'direction' in extension 'mobi.omegacentauri.gcodeplot'.
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.689: Invalid default value ('1') for parameter 'boolean-sort' in extension 'mobi.omegacentauri.gcodeplot'
Splash screen is loaded, but attempting to use it kills program. So, granting others permission to view the directory is not the answer!! :-) It would appear that all other directories in the Inkscape folder allow Others access with "Can Only View Content"... That one dir is marked "No Access". Hmmm...
I already did a re-install of the program when I initially opened the new version and encountered the problem.
I CAN import an image into Libre Draw, save as .svg, and then open that with Inkscape, BUT, the "Trace Bitmap" function does not work, so no editing capability.
Thanks... did all that. Same results. Same error message: "Could not detect file format. Tried to open it as an SVG anyway but this also failed."
Wanting to place this image into a circle for earrings. Have done dozens & dozens of earrings/pendants/etc in the past 2 yrs... now, nada...
Starting from command line yields same error message: "Error opening directory “/usr/share/inkscape/extensions/gcodeplotutils/pyserial3”: Permission denied"
In my 2nd post above, there are several files listed as not found after I changed the Permissions. ALL of those files are located in the directory: /usr/share/inkscape/extensions/inkex/deprecated-simple
It would then appear that Inkscape is looking for deprecated files that are not used? Why is that, I wonder? Obviously I could copy the deprecated files to one of the directories that Inkscape is looking in, but that could lead to a real mess, so no...
New development. Suddenly, Inkscape refused to open... splash screen appears, but clicking on New File, or attempting to load an existing file results in program halting.
Purged Inkscape, purged Python3... reinstalled Inkscape, Python3 installed with it. Still will not run upon selecting file to open. Dead in the water... NOT running in the background according to Task Manager.
Opening in in Terminal produces the files, as above, and when selecting a file to open (New or existing) this is generated:
(org.inkscape.Inkscape:79471): GLib-GIO-ERROR **: 15:37:55.548: g_menu_item_set_detailed_action: Detailed action name 'app.command.BachinMaker Gcode.BachinMaker-hatch' has invalid format Trace/breakpoint trap
So, copied the "missing" (deprecated) files into my .config dir, reinstalled Inkscape, get different errors now:
dk@dk-desktop:~$ inkscape ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. Gtk-Message: 22:01:08.947: Failed to load module "xapp-gtk3-module"
** (org.inkscape.Inkscape:97357): WARNING **: 22:01:09.389: Duplicate option text ('115200') for parameter 'send-speed' in extension 'mobi.omegacentauri.gcodeplot'.
** (org.inkscape.Inkscape:97357): WARNING **: 22:01:09.389: Duplicate option value ('115200') for parameter 'send-speed' in extension 'mobi.omegacentauri.gcodeplot'.
** (org.inkscape.Inkscape:97357): WARNING **: 22:01:09.389: Invalid default value ('0') for parameter 'boolean-shading-crosshatch' in extension 'mobi.omegacentauri.gcodeplot'
** (org.inkscape.Inkscape:97357): WARNING **: 22:01:09.389: Duplicate option text ('45') for parameter 'direction' in extension 'mobi.omegacentauri.gcodeplot'.
** (org.inkscape.Inkscape:97357): WARNING **: 22:01:09.389: Invalid default value ('1') for parameter 'boolean-sort' in extension 'mobi.omegacentauri.gcodeplot'
(org.inkscape.Inkscape:97357): GLib-GIO-ERROR **: 22:01:13.910: g_menu_item_set_detailed_action: Detailed action name 'app.command.BachinMaker Gcode.BachinMaker-hatch' has invalid format Trace/breakpoint trap
Also, searched the system, "inkex.py" does not exist on my system Something very broken with the program(s)....
Why is Inkscape looking for a gcode add-on? My CNC uses gcode, but not the laser engraver that uses the .svg files created by Inkscape!! I found the gcode Extension in "extensions" and "other"... renamed them all to code*, so there is NO instance of the word "gcode" in my Inkscape directories. I STILL get the same error messages referencing 'mobi.omegacentauri.gcodeplot:" WHERE is that coming from?
Splash screen still loads after renaming the gcode files, but program will not load!
I had same error , after some checking i found its because in Ubuntu 22.04, the app can not set file format. ( app save the file without format name such as 'apple' ) Rename your save file to [filename].svg (f.e: rename 'apple' to 'apple.svg')
Running Ubuntu 22.04.1 (jammy)
Have used Inkscape since 2019, done lots of "stuff" with it. Haven't used it this Summer, and am now starting projects again. Last time I used it, it was ver 1.0. Now, due to automatic updates, it's Inkscape 1.2.2 (1:1.2.2+202212051552+b0a8486541), and acts like a completely different program!!
The default open wants to load "All Inkscape Files", have to open drop down to get to "All Files" to attempt to load an image. Images WILL NOT LOAD!! .jpg, .jpeg, .bmp, .png... none of them will load!!
Error message: "Could not detect file format. Tried to open it as an SVG anyway but this also failed."
Copying & attempting to paste an image or dragging an image to the Inkscape page generates this error:
"Inkscape encountered an internal error and will close now. Automatic backups of unsaved documents were done to the following locations: /home/dk/New document blah blah blah"
So, until this is fixed, I have a worthless program that will not let me create anything. Perhaps is time to delete and reinstall an older version?
Can you open Inkscape from the terminal. Try again, and see what msg is output on the terminal ?
Did that... Here's output:
** (org.inkscape.Inkscape:693127): CRITICAL **: 09:38:14.440:
unhandled exception (type Glib::Error) in signal handler:
domain: g-file-error-quark
code : 2
what : Error opening directory “/usr/share/inkscape/extensions/gcodeplotutils/pyserial3/serial”: Permission denied
Attempting to open the dir with Krusader, denied. Root mode Krusader, opens fine, can see all contents.
Looking at that dir permissions, "Others" were given "No Access". I changed that to "Can Only View Content", and get even weirder error message:
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.689: Duplicate option text ('115200') for parameter 'send-speed' in extension 'mobi.omegacentauri.gcodeplot'.
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.689: Duplicate option value ('115200') for parameter 'send-speed' in extension 'mobi.omegacentauri.gcodeplot'.
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.689: Invalid default value ('0') for parameter 'boolean-shading-crosshatch' in extension 'mobi.omegacentauri.gcodeplot'
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.689: Duplicate option text ('45') for parameter 'direction' in extension 'mobi.omegacentauri.gcodeplot'.
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.689: Invalid default value ('1') for parameter 'boolean-sort' in extension 'mobi.omegacentauri.gcodeplot'
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.744: Failed to find resource file 'inkex.py'. Looked in:
/home/dk/.config/inkscape/extensions/inkex.py
/usr/share/inkscape/extensions/inkex.py
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.744: Failed to find resource file 'inkex.py'. Looked in:
/home/dk/.config/inkscape/extensions/inkex.py
/usr/share/inkscape/extensions/inkex.py
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.744: Failed to find resource file 'simplepath.py'. Looked in:
/home/dk/.config/inkscape/extensions/simplepath.py
/usr/share/inkscape/extensions/simplepath.py
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.744: Failed to find resource file 'simpletransform.py'. Looked in:
/home/dk/.config/inkscape/extensions/simpletransform.py
/usr/share/inkscape/extensions/simpletransform.py
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.744: Failed to find resource file 'simplestyle.py'. Looked in:
/home/dk/.config/inkscape/extensions/simplestyle.py
/usr/share/inkscape/extensions/simplestyle.py
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.744: Failed to find resource file 'cubicsuperpath.py'. Looked in:
/home/dk/.config/inkscape/extensions/cubicsuperpath.py
/usr/share/inkscape/extensions/cubicsuperpath.py
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.744: Failed to find resource file 'cspsubdiv.py'. Looked in:
/home/dk/.config/inkscape/extensions/cspsubdiv.py
/usr/share/inkscape/extensions/cspsubdiv.py
** (org.inkscape.Inkscape:694704): WARNING **: 09:51:55.744: Failed to find resource file 'bezmisc.py'. Looked in:
/home/dk/.config/inkscape/extensions/bezmisc.py
/usr/share/inkscape/extensions/bezmisc.py
Splash screen is loaded, but attempting to use it kills program. So, granting others permission to view the directory is not the answer!! :-)
It would appear that all other directories in the Inkscape folder allow Others access with "Can Only View Content"... That one dir is marked "No Access". Hmmm...
I already did a re-install of the program when I initially opened the new version and encountered the problem.
I CAN import an image into Libre Draw, save as .svg, and then open that with Inkscape, BUT, the "Trace Bitmap" function does not work, so no editing capability.
Sigh
Assuming you are using the ppa
I use Ubuntu 22.04 with Inkscape 1.2.2 ppa no problems.
If you do not have any valuable extensions / shortcuts or other settings / items in
~/.config/inkscape
I would simply
rm -R ~/.config/inkscape
be careful though rm is a dangerous command.then
sudo apt purge inkscape
and follow the instructions
https://inkscape.org/release/inkscape-1.2.2/gnulinux/ubuntu/ppa/dl/
Thanks... did all that. Same results. Same error message: "Could not detect file format. Tried to open it as an SVG anyway but this also failed."
Wanting to place this image into a circle for earrings. Have done dozens & dozens of earrings/pendants/etc in the past 2 yrs... now, nada...
Starting from command line yields same error message: "Error opening directory “/usr/share/inkscape/extensions/gcodeplotutils/pyserial3”: Permission denied"
Grrr
The only thing besides permissions can think of is missing PIL
https://pillow.readthedocs.io/en/stable/installation.html
However from the message it does seem like a permission error.
2nd attempt, I was able to install PIL & PILLOW.
In my 2nd post above, there are several files listed as not found after I changed the Permissions. ALL of those files are located in the directory:
/usr/share/inkscape/extensions/inkex/deprecated-simple
It would then appear that Inkscape is looking for deprecated files that are not used? Why is that, I wonder? Obviously I could copy the deprecated files to one of the directories that Inkscape is looking in, but that could lead to a real mess, so no...
New development. Suddenly, Inkscape refused to open... splash screen appears, but clicking on New File, or attempting to load an existing file results in program halting.
Purged Inkscape, purged Python3... reinstalled Inkscape, Python3 installed with it. Still will not run upon selecting file to open. Dead in the water... NOT running in the background according to Task Manager.
Opening in in Terminal produces the files, as above, and when selecting a file to open (New or existing) this is generated:
(org.inkscape.Inkscape:79471): GLib-GIO-ERROR **: 15:37:55.548: g_menu_item_set_detailed_action: Detailed action name 'app.command.BachinMaker Gcode.BachinMaker-hatch' has invalid format
Trace/breakpoint trap
So, copied the "missing" (deprecated) files into my .config dir, reinstalled Inkscape, get different errors now:
dk@dk-desktop:~$ inkscape
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Gtk-Message: 22:01:08.947: Failed to load module "xapp-gtk3-module"
** (org.inkscape.Inkscape:97357): WARNING **: 22:01:09.389: Duplicate option text ('115200') for parameter 'send-speed' in extension 'mobi.omegacentauri.gcodeplot'.
** (org.inkscape.Inkscape:97357): WARNING **: 22:01:09.389: Duplicate option value ('115200') for parameter 'send-speed' in extension 'mobi.omegacentauri.gcodeplot'.
** (org.inkscape.Inkscape:97357): WARNING **: 22:01:09.389: Invalid default value ('0') for parameter 'boolean-shading-crosshatch' in extension 'mobi.omegacentauri.gcodeplot'
** (org.inkscape.Inkscape:97357): WARNING **: 22:01:09.389: Duplicate option text ('45') for parameter 'direction' in extension 'mobi.omegacentauri.gcodeplot'.
** (org.inkscape.Inkscape:97357): WARNING **: 22:01:09.389: Invalid default value ('1') for parameter 'boolean-sort' in extension 'mobi.omegacentauri.gcodeplot'
** (org.inkscape.Inkscape:97357): WARNING **: 22:01:09.445: Failed to find resource file 'inkex.py'. Looked in:
/home/dk/.config/inkscape/extensions/inkex.py
/usr/share/inkscape/extensions/inkex.py
** (org.inkscape.Inkscape:97357): WARNING **: 22:01:09.445: Failed to find resource file 'inkex.py'. Looked in:
/home/dk/.config/inkscape/extensions/inkex.py
/usr/share/inkscape/extensions/inkex.py
(org.inkscape.Inkscape:97357): GLib-GIO-ERROR **: 22:01:13.910: g_menu_item_set_detailed_action: Detailed action name 'app.command.BachinMaker Gcode.BachinMaker-hatch' has invalid format
Trace/breakpoint trap
Also, searched the system, "inkex.py" does not exist on my system
Something very broken with the program(s)....
After another purge and re-install, still getting the error message above when attempting to start from Terminal.
Doing a system search for 'mobi.omegacentauri.gcodeplot' yields NOTHING... A Google search turns up this extension add-on:
https://inkscape.org/~arpruss/%E2%98%85gcodeplot
Why is Inkscape looking for a gcode add-on? My CNC uses gcode, but not the laser engraver that uses the .svg files created by Inkscape!!
I found the gcode Extension in "extensions" and "other"... renamed them all to code*, so there is NO instance of the word "gcode" in my Inkscape directories. I STILL get the same error messages referencing 'mobi.omegacentauri.gcodeplot:" WHERE is that coming from?
Splash screen still loads after renaming the gcode files, but program will not load!
I had same error , after some checking i found its because in Ubuntu 22.04, the app can not set file format. ( app save the file without format name such as 'apple' )
Rename your save file to [filename].svg (f.e: rename 'apple' to 'apple.svg')
Good luck 👍