Crash when pasting raster image due to unwritable directory

Bug #211607 reported by Sha_Dow
152
This bug affects 15 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Krzysztof Kosinski
inkscape (Debian)
Fix Released
Unknown
inkscape (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Whenever you click the clipboard icon it creates an 'unexpected termination' and crashes/closes the program. Able to try again but can't use that feature at this point in time.

Thank You,

- Sha_Dow

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote :

I'm getting this too. I cannot paste from selections made in Gimp because it always causes Inkscape to crash.

Ubuntu Intrepid.

$ apt-cache policy inkscape
inkscape:
  Installert: 0.46-2ubuntu2
  Kandidat: 0.46-2ubuntu2
  Versjonstabell:
 *** 0.46-2ubuntu2 0
        500 http://archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

How to reproduce:
1) Open an image in Gimp and make selection. Copy pixels to clipboard with CTRL+C.
2) Open new document in Inkscape, select Paste .. crash.

Revision history for this message
Alvin Penner (apenner) wrote :

confirmed on Win32 Inkscape20225
- I open the attached .gif file, copy it to the clipboard, paste it into Inkscape and get the crash message :

C:\Python25\APP>inkcl.py
return code: -1073741819

(inkscape.exe:392): Gtk-WARNING **: Could not find the icon 'edit-select-all'. T
he 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
        http://icon-theme.freedesktop.org/releases

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
Bobby D (bobbyd918) wrote :

I'm having the same issue in Windows Vista when pasting from GIMP. I get the message Microsoft Visual C++ Runite Library: This application has requested the Runtime to terminate it in an unusual way.

Then an Inkscape error: Inkscape encountered an internal error and will close now.
Automatic backups of unsaved documents were done to the following locations:

Revision history for this message
Oscar Scheepstra (oscarscheepstra) wrote :

same thing when paste anything from firefox.might happen the same when I paste from other programs. actually it even crashes when I try to paste text without th e text tool. Win vista, inskcape .46.

Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) wrote :

Could you please try a recent nightly build (from the downloads section at inkscape.org) and see if you can reproduce the bug? If you can't reproduce it, please let us know.
If it's fixed in the development version, is quite safe to assume that it will be fixed in Inkscape 0.47 when it's released.

Revision history for this message
Oscar Scheepstra (oscarscheepstra) wrote : Re: [Bug 211607] Re: Crashes when attempting to use "Paste objects from clipboard..."

Hi

already found a problem to install the file - the unisntall file form my
previous version is missing...
I also got the ame problem on firefox, with teh C++ library stuff. maybe
because I don`t turm my notebook off for more than 3 days? (hibernating /
sleeping instead of turning off)?

2009/4/8 Guillermo Espertino (Gez) <email address hidden>

> Could you please try a recent nightly build (from the downloads section at
> inkscape.org) and see if you can reproduce the bug? If you can't reproduce
> it, please let us know.
> If it's fixed in the development version, is quite safe to assume that it
> will be fixed in Inkscape 0.47 when it's released.
>
> --
> Crashes when attempting to use "Paste objects from clipboard..."
> https://bugs.launchpad.net/bugs/211607
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Oscar Scheepstra

Revision history for this message
Øyvind Stegard (oyvindstegard) wrote : Re: Crashes when attempting to use "Paste objects from clipboard..."

Paste still fails in Jaunty. Tested pasting of image data from Gimp.

$ apt-cache policy inkscape
inkscape:
  Installert: 0.46-5ubuntu4
  Kandidat: 0.46-5ubuntu4
  Versjonstabell:
 *** 0.46-5ubuntu4 0
        500 http://archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Alvin Penner (apenner) wrote :

running Windows nightly build 21091, I no longer have a crash, but now I have a black rectangle after pasting the image.
steps to reproduce:
- open the file Demo2.gif in Inkscape
- confirm that it loads properly
- copy the image to the clipboard
- paste it into the same Inkscape, get a black rectangle
- note that a new file is created in the same directory where the original image was, the new file is called :
inkscape_pasted_image_20090412_120802.png
- confirm that the new file is also a black rectangle.

this is some kind of weird initiallization problem because after pasting some other images from other instances of Inkscape the problem goes away and then it is very difficult to reproduce.

Revision history for this message
Alvin Penner (apenner) wrote :

could someone confirm that a crash still occurs on a recent development build?

Changed in inkscape:
status: Confirmed → Incomplete
Revision history for this message
Oscar Scheepstra (oscarscheepstra) wrote : Re: [Bug 211607] Re: Crashes when attempting to use "Paste objects from clipboard..."

Inkscape is pretty normal now for me...can copy and paste as many times as I
want. I think it was a problem related to a windows update, as I had the
same error for firefox.

2009/5/10 Alvin Penner <email address hidden>

> could someone confirm that a crash still occurs on a recent development
> build?
>
>
> ** Changed in: inkscape
> Status: Confirmed => Incomplete
>
> --
> Crashes when attempting to use "Paste objects from clipboard..."
> https://bugs.launchpad.net/bugs/211607
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Oscar Scheepstra

Revision history for this message
Fabio Puddu (fabius) wrote : Re: Crashes when attempting to use "Paste objects from clipboard..."

I confirm this bug with inkscape 0.46-5ubuntu4 and jaunty jackalope x64.
I found that this does not happen if the program is launched with sudo
it seems like the program cannot create the png file if launched without administrative privileges.

Fabio Puddu (fabius)
Changed in inkscape:
status: Incomplete → New
Revision history for this message
Fabio Puddu (fabius) wrote :

I found indeed that inkscape try to create the png file in the / directory

Revision history for this message
su_v (suv-lp) wrote :

@Fabio - see also bug #381301 which also describes a crash after

> what : Failed to open '/pastedpic_05282009_151750.png' for writing: Permission denied

I still can reproduce this crash on OS X 10.5.7 with Inkscape 0.47pre1 by setting the current 'Save as...' path to '/' (steps to reproduce in bug #381301 comment 7) but only if the clipboard syncing mechanism between X11 and OS X is interfering with Inkscape internal copy&paste process (just copying an object then triggers the 'write to a tmp pastedpic...' process).

Do you use Parcellite? See bug #312286 and bug #399149 how it can interfere with Inkscape's internal clipboard handling. Does disabling it stop Inkscape from crashing?

Revision history for this message
Bram Stolk (b-stolk) wrote :

Paste crashes for me on:
Inkscape 0.47pre1 r21720, built Jul 20 2009

All I need to do to make it reliably crash:
- draw a path
- Edit -> Copy
- Edit -> Paste

100% crash.
I'm on Mac OSX, intel.
The jul1 binary has the same problem.

Really annoying, as I need a recent build to use a live path effect, however, the late builds are far to unstable to use.

  Bram

Revision history for this message
Bram Stolk (b-stolk) wrote :
Download full text (3.6 KiB)

And here is the call-stack that I get when I 'paste':

Thread 0 Crashed:
0 libSystem.B.dylib 0x96c56e42 __kill + 10
1 libSystem.B.dylib 0x96cc923a raise + 26
2 libSystem.B.dylib 0x96cd5622 __abort + 97
3 libSystem.B.dylib 0x96cd568a _cproc_fork_child + 0
4 libstdc++.6.dylib 0x9732f005 0x972e7000 + 294917
5 libstdc++.6.dylib 0x9732d10c __gxx_personality_v0 + 1108
6 libstdc++.6.dylib 0x9732d14b std::terminate() + 29
7 libstdc++.6.dylib 0x9732d261 __cxa_throw + 101
8 libglibmm-2.4.1.dylib 0x010de5be Glib::FileError::throw_func(_GError*) + 78
9 libglibmm-2.4.1.dylib 0x010e8faf Glib::Error::throw_exception(_GError*) + 319
10 libgdkmm-2.4.1.dylib 0x010244f6 Gdk::Pixbuf::save(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Glib::ustring const&) + 102
11 inkscape-bin 0x0047e3be (anonymous namespace)::LogPrinter::notifyAttributeChanged(Inkscape::XML::Node&, unsigned int, Inkscape::Util::ptr_shared<char>, Inkscape::Util::ptr_shared<char>) + 17518
12 inkscape-bin 0x0048174b (anonymous namespace)::LogPrinter::notifyAttributeChanged(Inkscape::XML::Node&, unsigned int, Inkscape::Util::ptr_shared<char>, Inkscape::Util::ptr_shared<char>) + 30715
13 inkscape-bin 0x000fed2f std::vector<SPCanvasItem*, std::allocator<SPCanvasItem*> >::_M_insert_aux(__gnu_cxx::__normal_iterator<SPCanvasItem**, std::vector<SPCanvasItem*, std::allocator<SPCanvasItem*> > >, SPCanvasItem* const&) + 19775
14 inkscape-bin 0x003192d2 sigc::internal::typed_slot_rep<sigc::bind_functor<-1, sigc::pointer_functor3<SPObject*, SPObject*, SPObject*, void>, SPObject*, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil> >::dup(void*) + 23906
15 libgobject-2.0.0.dylib 0x0168db29 g_closure_invoke + 313
16 libgobject-2.0.0.dylib 0x0169e39c g_signal_init + 4460
17 libgobject-2.0.0.dylib 0x0169fa4d g_signal_emit_valist + 1853
18 libgobject-2.0.0.dylib 0x0169fdb9 g_signal_emit + 41
19 libgtk-x11-2.0.0.dylib 0x01322f94 gtk_widget_activate + 148
20 libgtk-x11-2.0.0.dylib 0x01217973 gtk_menu_shell_activate_item + 259
21 libgtk-x11-2.0.0.dylib 0x01217d18 gtk_menu_shell_activate_item + 1192
22 libgtk-x11-2.0.0.dylib 0x0120434b gtk_marshal_VOID__UINT_STRING + 331
23 libgobject-2.0.0.dylib 0x0168db29 g_closure_invoke + 313
24 libgobject-2.0.0.dylib 0x0169e525 g_signal_init + 4853
25 libgobject-2.0.0.dylib 0x0169f4c7 g_signal_emit_valist + 439
26 libgobject-2.0.0.dylib 0x0169fdb9 g_signal_emit + 41
27 libgtk-x11-2.0.0.dylib 0x01323226 gtk_widget_activate + 806
28 libgtk-x11-2.0.0.dylib 0x01202535 gtk_propagate_event + 213
29 libgtk-x11-2.0.0.dylib 0x01202acf gtk_main_do_event + 1151
30 libgdk-x11-2.0.0.dylib 0x014ef2d5 gdk_event_get_graphics_expose + 1365
31 libglib-2.0.0.dylib 0x01b0bf1d g_main_context_dispatch + 573
32 libglib-2.0.0.dylib 0x01b0f7cb g_main_context_check + 22...

Read more...

Revision history for this message
su_v (suv-lp) wrote :

@Bram - which version of X11/XQuartz do you have installed? Can you check your X11 pasteboard preference settings if you have deactivated the 'Update Pasteboard when CLIPBOARD changes' option - see also <http://wiki.inkscape.org/wiki/index.php/FAQ#Copying_and_pasting_in_Inkscape_creates_pixellated_images_instead_of_copying_the_vector_objects>?

Revision history for this message
Bram Stolk (b-stolk) wrote : Re: [Bug 211607] Re: Crashes when attempting to use "Paste objects from clipboard..."

XQuartz 2.1.6 (xorg-server 1.4.2-apple33)

$ xdpyinfo
name of display: /tmp/launch-pVxOtQ/:0
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 10402000
X.Org version: 1.4.2

About the X11 preferences... those are not in inkscape, right?
When I select X11 preferences, I can only choose one of three tabs:
Input, Output, Security.
None of them have "Pasteboard".

  Bram

On Sat, Aug 15, 2009 at 6:03 PM, ~suv <email address hidden> wrote:

> @Bram - which version of X11/XQuartz do you have installed? Can you
> check your X11 pasteboard preference settings if you have deactivated
> the 'Update Pasteboard when CLIPBOARD changes' option - see also
> <
> http://wiki.inkscape.org/wiki/index.php/FAQ#Copying_and_pasting_in_Inkscape_creates_pixellated_images_instead_of_copying_the_vector_objects
> >?
>
> --
> Crashes when attempting to use "Paste objects from clipboard..."
> https://bugs.launchpad.net/bugs/211607
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--

“Programming today is a race between software engineers striving to build
bigger and better idiot- proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.” (R Cook).

Revision history for this message
su_v (suv-lp) wrote : Re: Crashes when attempting to use "Paste objects from clipboard..."

You have updated to 10.5.7 or 8? If you still don't see the other X11 preferences tabs I assume you don't have 'English' set as language and haven't installed the Localization updates from <http://xquartz.macosforge.org/trac/wiki#a10.5.7>.

OTOH I haven't seen Inkscape crash on OS X when an external clipboard manager interferes with the Inkscape internal system clipboard support. I found only one special case how to reproduce it (see comment 13 above and bug #381301). Any other clipboard managing software running in the background besides X11?

Revision history for this message
Bram Stolk (b-stolk) wrote : Re: [Bug 211607] Re: Crashes when attempting to use "Paste objects from clipboard..."

Suv... thanks for your awesome support. You were spot on.

I am on 10.5.7
After installing that locale update, I had the Pasteboard prefs in X11.
When disabling the update, I can now copy and paste paths without crashes!

Also, now "Paste Path" works in LPE "Pattern along path"!

Skeleton edits of 'Blend Path' still freeze inkscape though, but I am
building MacPorts, so hopefully I can run the SVN version soon.

  Bram

On Sat, Aug 15, 2009 at 6:37 PM, ~suv <email address hidden> wrote:

> You have updated to 10.5.7 or 8? If you still don't see the other X11
> preferences tabs I assume you don't have 'English' set as language and
> haven't installed the Localization updates from
> <http://xquartz.macosforge.org/trac/wiki#a10.5.7>.
>
> OTOH I haven't seen Inkscape crash on OS X when an external clipboard
> manager interferes with the Inkscape internal system clipboard support.
> I found only one special case how to reproduce it (see comment 13 above
> and bug #381301). Any other clipboard managing software running in the
> background besides X11?
>
> --
> Crashes when attempting to use "Paste objects from clipboard..."
> https://bugs.launchpad.net/bugs/211607
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--

“Programming today is a race between software engineers striving to build
bigger and better idiot- proof programs, and the Universe trying to produce
bigger and better idiots. So far, the Universe is winning.” (R Cook).

Revision history for this message
su_v (suv-lp) wrote : Re: Crashes when attempting to use "Paste objects from clipboard..."

another question: could you
- quit X11,
- open Console.app, select 'All messages', wipe clean,
- restart X11 and Inkscape to reproduce above crash and
- paste/attach any related log messages here?

Revision history for this message
su_v (suv-lp) wrote :

Glad you could solve this issue ( - and I hope you can download a new prerelease build from sf.net soon ;-)

Revision history for this message
Bram Stolk (b-stolk) wrote : Re: [Bug 211607] Re: Crashes when attempting to use "Paste objects from clipboard..."
Download full text (7.7 KiB)

Ok,
I put reenabled the pasteboard update, but the weird thing is that it is no
longer crashing when I paste.
That locale thingy may have something to do with it?

When testing the frozen skeleton edit, I got no output on the console.

This is all the output I have:

15/08/09 7:07:37 PM org.x.startx[80407] Xquartz: start_x11_server: (ipc/mig)
server died
15/08/09 7:07:37 PM org.x.startx[80407] xinit: connection to X server lost.

15/08/09 7:07:37 PM org.x.startx[80407] xinit: Operation not permitted
(errno 1): Can't kill X server
15/08/09 7:08:23 PM defaults[31071]
The domain/default pair of (kCFPreferencesAnyApplication,
AppleAquaColorVariant) does not exist

15/08/09 7:08:23 PM defaults[31073]
The domain/default pair of (kCFPreferencesAnyApplication,
AppleHighlightColor) does not exist

15/08/09 7:08:23 PM [0x0-0x595595].org.inkscape.Inkscape[31043]
./sync_osx_look.sh: line 38: gtkrc: Read-only file system
15/08/09 7:08:23 PM defaults[31081]
The domain/default pair of (.GlobalPreferences, AppleCollationOrder) does
not exist

15/08/09 7:08:23 PM [0x0-0x595595].org.inkscape.Inkscape[31043] Warning:
AppleCollationOrder setting not found, using AppleLocale.
15/08/09 7:08:23 PM [0x0-0x595595].org.inkscape.Inkscape[31043] Warning:
AppleCollationOrder setting not found, using AppleLocale.
15/08/09 7:08:23 PM [0x0-0x595595].org.inkscape.Inkscape[31043] Setting
Language: .UTF-8
15/08/09 7:08:24 PM [0x0-0x595595].org.inkscape.Inkscape[31043]
(process:31050): Gtk-WARNING **: Locale not supported by C library.
15/08/09 7:08:24 PM [0x0-0x595595].org.inkscape.Inkscape[31043] Using the
fallback 'C' locale.
15/08/09 7:08:24 PM org.x.startx[31105] font_cache: Scanning user font
directories to generate X11 font caches
15/08/09 7:08:24 PM org.x.startx[31105] font_cache: Updating FC cache
15/08/09 7:08:24 PM org.x.privileged_startx[31119] font_cache: Scanning
system font directories to generate X11 font caches
15/08/09 7:08:24 PM defaults[31135]
The domain/default pair of (org.x.X11, dpi) does not exist

15/08/09 7:08:25 PM org.x.startx[31105] xauth: creating new authority file
/Users/bram/.serverauth.31105
15/08/09 7:08:25 PM org.x.startx[31105] Xquartz: X11.app =
/Applications/Utilities/X11.app/Contents/MacOS/X11
15/08/09 7:08:25 PM org.x.startx[31105] Xquartz: Starting X server:
/Applications/Utilities/X11.app/Contents/MacOS/X11 --listenonly
15/08/09 7:08:25 PM org.x.startx[31105] Xquartz: Starting X server:
/Applications/Utilities/X11.app/Contents/MacOS/X11 --listenonly
15/08/09 7:08:26 PM org.x.startx[31105] X11.app: main(): argc=2
15/08/09 7:08:26 PM org.x.startx[31105] argv[0] =
/Applications/Utilities/X11.app/Contents/MacOS/X11.bin
15/08/09 7:08:26 PM org.x.startx[31105] argv[1] = --listenonly
15/08/09 7:08:26 PM org.x.startx[31105] Waiting for startup parameters via
Mach IPC.
15/08/09 7:08:26 PM org.x.privileged_startx[31119] font_cache: Updating FC
cache
15/08/09 7:08:26 PM org.x.startx[31105] X11.app: Listening on socket for fd
handoff: (3) /var/tmp/tmp.0.7vQvCi
15/08/09 7:08:26 PM org.x.startx[31105] X11.app: Thread created for
handoff. Returning success to tell caller to connect and push the fd.
15/08/09 7:08:26 PM org.x.startx[31105] Xqu...

Read more...

Revision history for this message
su_v (suv-lp) wrote : Re: Crashes when attempting to use "Paste objects from clipboard..."

The skeleton freeze did not give any console messages here either... I asked for it before I knew the X11 pasteboard changes indeed stopped the paste related crashes.

> That locale thingy may have something to do with it?
I don't think so. When X11 disables Inkscapes internal c&p every copy you do of vector shapes gets pasted as bitmap (like the command 'Edit > Make Bitmap Copy'). Bitmap copies are stored as external bitmap files and only linked into the svg file. They usually are saved in either the current working directory, a tmp directory or sometimes Inkscape re-uses the path of the last/stored 'Save as...' command. If you don't have write-privileges in any of these directories Inkscape fails to write the png file and - this exception doesn't get caught - crashes. There is however a console message that says "what : Failed to open '/pastedpic_05282009_151750.png' for writing: Permission denied " or similar.

Since 0.47pre1 the way Inkscape stores the default paths for open/save/export has changed - hopefully reducing the number of situations where it crashes without visible (i.e. perceptible for the user) reason.

tags: added: clipboard crash
Revision history for this message
su_v (suv-lp) wrote :

Setting back to confirmed as I don't believe it was meant to be reset to unconfirmed 'New' following comment #11.

Changed in inkscape:
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

While the crash might no longer happen in recent SVN and 0.47pre builds, AFAIU the cause of the crash (terminate called after throwing an instance of 'Glib::FileError') hasn't been fixed yet (see also my comment (#16) in bug #447412).

Revision history for this message
Hope Gamble (hepgamble) wrote :

Need to repaste 3 images to an existing doc because they were missing when I opened the doc I created 2 weeks ago. I really need it for a client and keep getting a 'runtime' error and the program then shuts down because of the error. PLEASE HELP!!

Revision history for this message
Diederik van Lierop (mail-diedenrezi) wrote :

Hi Hope, we will need more information to be able to help you. For example, which Inkscape version are you using? Have you tried our latest prerelease yet? Which operating system are you using, XP, Mac, Linux? Can you share a copy of your files with us such that we can try reproducing this bug? Could you please describe as accurate as possible the steps which lead to this crash?

Revision history for this message
Oscar Scheepstra (oscarscheepstra) wrote : Re: [Bug 211607] Re: Crashes when attempting to use "Paste objects from clipboard..."

you should import the images... give it a try

2009/10/23 Hope Gamble <email address hidden>

> Need to repaste 3 images to an existing doc because they were missing
> when I opened the doc I created 2 weeks ago. I really need it for a
> client and keep getting a 'runtime' error and the program then shuts
> down because of the error. PLEASE HELP!!
>
> --
> Crashes when attempting to use "Paste objects from clipboard..."
> https://bugs.launchpad.net/bugs/211607
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Oscar Scheepstra

Revision history for this message
Alex Valavanis (valavanisalex) wrote : Re: Crashes when attempting to use "Paste objects from clipboard..."

Marking as fixed in Ubuntu, as the bug does not affect in the latest version (karmic + inkscape 0.47~pre4-0ubuntu1). I'll leave the upstream report open, because I believe the bug still appears in other OSes.

Changed in inkscape (Ubuntu):
status: New → Fix Released
su_v (suv-lp)
Changed in inkscape:
importance: Undecided → High
Revision history for this message
wolfi (wolfi-sigxcpu) wrote :

Is this bug really fixed in Ubuntu?
I just successfully reproduce the report in debian's BTS:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=545459

> The error occurs after doing
>
> a) Open Inkscape
> b) Draw something
> c) Save the document to a separate directory
> d) Close Inkscape
> e) Remove the directory and its contents
> f) Open Inkscape
> g) Copy a picture to clipboard
> h) Paste it into the Inkscape document
>
> Inkscape does not crash when I save the document before h).
>

I created a backtrace, which looks the same as Brams cited before.
If this bug is fixed in Ubuntu, but not in debian, it shouldn't be to hard to extract a patch.

Revision history for this message
Pietro Battiston (toobaz) wrote :

Karmic + Inkscape 0.47~pre4-0ubuntu1 _is_ affected.

Changed in inkscape (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Pietro Battiston (toobaz) wrote :

Output of gdb running Inkscape in karmic.

Revision history for this message
Krzysztof Kosinski (tweenk) wrote :

The bug was triggered when the save_path was not writable. This should be fixed as of revision 9143. Pasted pixel data is embedded and no external file is created.

Changed in inkscape:
status: Confirmed → Fix Committed
assignee: nobody → Krzysztof Kosinski (tweenk)
su_v (suv-lp)
Changed in inkscape:
milestone: none → 0.48
summary: - Crashes when attempting to use "Paste objects from clipboard..."
+ Crash when pasting raster image due to unwritable directory
Revision history for this message
Bongolio (mikptz) wrote :

I was having this bug months ago on Karmic. For some reason, it stopped doing it (crashing upon pasting) so I did not bother. Today I think there was a kernel update or something and this thing started again. If I launched the program using sudo, everything seemed to work correctly. This seemed to suggest that inkscape is indeed trying to access the root to create some "temporary" png files. I tried to open (not as root but as normal user) an old pdf figure I produced earlier and saved it in my home directory. Then I was able to paste as usual in this document. Just to make sure, I closed the application, started again and I was able to paste from a fresh new document. I don't know if this will work for you but it seems to have fixed the bug for me... Enjoy!

Revision history for this message
Krzysztof Kosinski (tweenk) wrote :

Yes, saving any document (even an empty one) into your home directory using Save As is a valid workaround.

You can also use the development version, which embeds pasted images into the SVG document and no extra files are created.

Changed in inkscape (Debian):
status: Unknown → Confirmed
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Upstream diff which fixes this bug. I guess we could use this as a patch for Ubuntu?:

http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/9143

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

OK, I finally managed to reproduce this in lucid beta1:

1. Select a section of a raster image in GIMP. Copy to clipboard
2. Open new inkscape drawing
3. File->Save As... something in the root directory
>> Inkscape correctly announces that the file cannot be saved in this location
4. Paste the image into Inkscape
>> Inkscape crashes

Backtrace attached.

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

I have made a new version of the Ubuntu package to incorporate the upstream changes while we're waiting for the upstream release. Please feel free to try it (at your own risk!!) ppa:valavanisalex/inkscape

debdiff attached

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Updated debdiff to give more sensible patch numbering. Please check my work carefully if you decide to upload... I haven't used dpatch before!

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your work there, I've renamed the patch to be next to the previous one, changed the upload distribution to the current one and cleaned the file copies in the diff and uploaded that one

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package inkscape - 0.47.0-2ubuntu3

---------------
inkscape (0.47.0-2ubuntu3) maverick; urgency=low

  * 51-paste-in-unwritable-directory.dpatch, debian/control: Allow paste
    from clipboard when in unwritable working directory (LP: #211607)
 -- Alexander Valavanis <email address hidden> Tue, 06 Apr 2010 00:29:36 +0100

Changed in inkscape (Ubuntu):
status: Confirmed → Fix Released
jazzynico (jazzynico)
Changed in inkscape:
status: Fix Committed → Fix Released
Changed in inkscape (Debian):
status: Confirmed → Fix Released
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.