Sign in to follow this  
evanpage

Not Enough Memory to Paste from Clipboard

Recommended Posts

1 hour ago, Rick Brewster said:

So if someone has a list of dummy-proof and very specific instructions to recreate this, I can check it out. This is really important so that I can recreate the problem and verify the fix (assuming there is one).

 

There's an image of flowers (from my PaintBucket account)  in my comment above. If you use Copy Image to copy the image, then try to import it into PDN using Paste into New Image, you should see the "Not enough memory" error.

Share this post


Link to post
Share on other sites
9 hours ago, MJW said:

 

There's an image of flowers (from my PaintBucket account)  in my comment above. If you use Copy Image to copy the image, then try to import it into PDN using Paste into New Image, you should see the "Not enough memory" error.

 

Copy Image ... from what source? Chrome? Firefox? Like I said, very specific instructions :)

Share this post


Link to post
Share on other sites
2 minutes ago, Rick Brewster said:

Copy Image ... from what source? Chrome? Firefox? Like I said, very specific instructions

 

Sorry, Firefox. Firefox 51.0.1, to be exact.

Share this post


Link to post
Share on other sites

Okay I should have a fix for this in the next update, even if Firefox doesn't fix anything on their side.

 

Paint.NET has a prioritized list of formats that it goes through. If data isn't available in format 1, it will then try format 2, then format 3, etc. However, if any format throws an OutOfMemoryException, the whole process stops and is aborted.

 

The fix is that an OOME won't cause an abort. The format will be retried once after a full garbage collection is forced, and then if it still won't work then the next format will be tried.

 

And it works great with whatever Firefox is doing.

  • Upvote 4

Share this post


Link to post
Share on other sites

The issue with Firefox is simply the file format of the image. You need to right click the image and select 'View Image' BEFORE copying and pasting. That works for me anyway.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this