Jump to content

Not enough momory to paste from clipboard?


Recommended Posts

I've had Paint.NET for years, and I have never ran into this problem, until now. It seems like when I try to post a big image, it pops up a message saying "Not enough momory to paste from clipboard." Along with some details which I'll put at the bottom. It was only a couple days ago that I tried pasting the exact same image, which makes no sense that it doesn't do it now. I've already tried stopping some background programs but that doesn't help at all. Please, I'm desperate for a fix!

 

Details:

System.OutOfMemoryException: Out of memory.



   at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)

   at PaintDotNet.ClipboardUtil.GetClipboardImageAsSurface(IWin32Window currentWindow, IPdnDataObject clipData) in d:\src\pdn\paintdotnet\src\PaintDotNet\ClipboardUtil.cs:line 534

   at PaintDotNet.ClipboardUtil.GetClipboardImageImpl(IWin32Window currentWindow, IPdnDataObject clipData) in d:\src\pdn\paintdotnet\src\PaintDotNet\ClipboardUtil.cs:line 215

   at PaintDotNet.ClipboardUtil.GetClipboardImage(IWin32Window currentWindow, IPdnDataObject clipData) in d:\src\pdn\paintdotnet\src\PaintDotNet\ClipboardUtil.cs:line 164

   at PaintDotNet.Actions.PasteAction.PerformActionImpl() in d:\src\pdn\paintdotnet\src\PaintDotNet\Actions\PasteAction.cs:line 110

Link to comment
Share on other sites

11 hours ago, CarmineJ said:

4. 4.6.5693.28 (I think.)

 

I think NO. The actual version is 4.0.13 (Final: 4.13.6191.1824). Your version number rather reminds me on Microsoft Windows NET-Framework.

 

Quote

1. 520x260

 

Pixels, inch, centimeters? Because if pixels, thats not a big image.

 

How much free RAM (memory) do you have? Take a look at the task manager -> performance.

Edited by IRON67
Link to comment
Share on other sites

8 hours ago, IRON67 said:

Pixels, inch, centimeters? Because if pixels, thats not a big image.

How much free RAM (memory) do you have? Take a look at the task manager -> performance.

1.Yeah, when I said "Big Image" I didn't mean extremely big, but I can paste small things.

2. It says I have 2.6 GB In Use, with 3.1 GB Available.

I've never been the best with stuff like this, but if I have 3.1 GB available then I should have enough memory to paste something that's 520x260, right? It makes no sense.

 

EDIT: Woah, so I tried pasting something 2000x1502 and it worked, so I went back and tried to paste my original image, it came up with the same message. Then I tried pasting an image that was 1200x1200, and it worked. Then I went and found another image that was 620x430 and it came up with the message again. I don't understand how this is happening but hopefully you can work with this information.

 

Thanks for the help!

Edited by CarmineJ
New Information.
Link to comment
Share on other sites

39 minutes ago, CarmineJ said:

so I went back and tried to paste my original image, it came up with the same message

 

Can you upload this image here, so that we can check out, wether it may be corrupted in some way or something else, what cause this problem?

 

And by the way: I still doesn't know exactly, what do you mean with "big image".

Edited by IRON67
Link to comment
Share on other sites

2 hours ago, IRON67 said:

 

Can you upload this image here, so that we can check out, wether it may be corrupted in some way or something else, what cause this problem?

And by the way: I still doesn't know exactly, what do you mean with "big image".

1. Here.

2. I'm still not even sure myself, basically what I mean by "Big Image" is an image that's like above 150x200 or so, but I don't think size matters anymore, if you read my edit on my last post.1

 

EDIT: Please read my last edit, it will get you up to date.

Edited by CarmineJ
Link to comment
Share on other sites

1 hour ago, IRON67 said:

I think, you have misunderstood me. I don't need this small image of a shoe you have tried to paste in but the big one.

However ... your linked image is okay and pasting it in a bigger image is no problem here.

If by the big one you mean the original image I had a problem with, that is the image. It really isn't that big but it still says not enough memory, I've also tried pasting several other images and a lot of them pop up with the message, so I don't think it's the image that's the problem. I also updated Paint.NET and the problem persisted.

 

Sorry for all the trouble, and thanks for the help! (Sorry if I misunderstood any information)

Link to comment
Share on other sites

I wonder if you have a failing memory module. An image that size is insignificant in terms of the memory capacity available.

Link to comment
Share on other sites

45 minutes ago, Ego Eram Reputo said:

I wonder if you have a failing memory module. An image that size is insignificant in terms of the memory capacity available.

A failing memory module? How would I know if that was it?

 

37 minutes ago, toe_head2001 said:

Also keep in mind that the CLR can over-allocate memory; some times by a lot.

What's CLR?

 

Thanks everybody for trying to help!

Link to comment
Share on other sites

I have EXACTLY the same problem after auto update to 4.0.13

 

I have 10GB of free memory (16GB total) so that's not an issue.

 

I haven't been able to paste anything from the clipboard at all, had to resort to pasting to MS Paint, saving, then opening in paint.net

 

Link to comment
Share on other sites

Here's an idea.... Tell us about it. Post the crash log and the contents of settings > diagnostics.

 

 

Link to comment
Share on other sites

6 hours ago, bondsac said:

I have EXACTLY the same problem after auto update to 4.0.13

I have 10GB of free memory (16GB total) so that's not an issue.

I haven't been able to paste anything from the clipboard at all, had to resort to pasting to MS Paint, saving, then opening in paint.net

If somebody comes up with a solution that works for me, I'll quote you here!

 

1 hour ago, Ego Eram Reputo said:

Here's an idea.... Tell us about it. Post the crash log and the contents of settings > diagnostics.

The crash log is in my original message at the top("Details")
System > Diagnostics:



paint.net 4.0.13 (Final 4.13.61.91.1824)
Build Date: Tuesday, December 13, 2016

True

True

DPI: 96.00

OS: Windows 10

.NET Runtime 4.0.30319.420000

Physical Memory: 6,066 MB(This might be important.)

CPU: Intel(R) Core i7-5500U CPU @ 2.40GHz
64-bit
Other Details that you probably don't need...

 

Thanks for all the help!

Link to comment
Share on other sites

Just now, IRON67 said:

I'm not absolutely sure on Win 10, but for Win 7 NET Runtime is actual in Version 4.6 and Paint.NET requires 4.6 too.

Huh, weird, could NET Runtime be linked to the problems I'm having? What is NET Runtime? Also, how come it's only started happening recently?
By the way, I found out some weird information. I've been getting all the images I've been trying to paste from Google Images, I just click on the image to zoom in, and then copy it. But I tried pressing 'View Image' first and then copying it, and so far most images that don't usually work have been working after pressing view image first. Not sure why or how, though.

 

Thanks for helping out!

Link to comment
Share on other sites

Forget my post. I've just found, that your version number is an internal number corresponding to my own, so you have the actual version, I think.

 

Quote

I've been getting all the images I've been trying to paste from Google Images, I just click on the image to zoom in, and then copy it. But I tried pressing 'View Image' first and then copying it, and so far most images that don't usually work have been working after pressing view image first. Not sure why or how, though.

 

Maybe thats really the problem, depending on your browsers cache management or something else. Try to save the shown image first on hard disk and use it then.

Edited by IRON67
Link to comment
Share on other sites

33 minutes ago, IRON67 said:

Forget my post. I've just found, that your version number is an internal number corresponding to my own, so you have the actual version, I think.

Maybe thats really the problem, depending on your browsers cache management or something else. Try to save the shown image first on hard disk and use it then.

Opening images that are already saved is no problem, it's only when I tried to copy the images from Google Images, I've been copying after pressing 'View Image' and it's all been working now, so for now I'm just gonna go with the conclusion that it's probably google somehow, thanks for all your help! And sorry for being ignorant to a lot of stuff. I'm gonna quote bondsac and see if his problem is fixed the same way as mine.

 

8 hours ago, bondsac said:

 

 

 

Thanks everybody for your help!

 

Link to comment
Share on other sites

MSDN says an OutOfMemoryException from the Image.FromFile method actually means unsupported/invalid format.  So, it's not an issue with system memory. What a misnomer. :/

 

11 minutes ago, CarmineJ said:

it's only when I tried to copy the images from Google Images

When you copy an image from the browser, is it an actual image file, or is it a Base64 stream?  Google uses those in its search results (Base64 streams can be stored in a database; image files can't).

Base64 streams will start with this: data:image/png;base64

 

 

For the record, Base64 streams works alright for me. I'm copying from Firefox. It looks like Firefox is converting the Base64 stream, and also placing a Bitmap and a DIB on the clipboard, in addition to the Base64 stream.

Link to comment
Share on other sites

45 minutes ago, CarmineJ said:

I've been copying after pressing 'View Image'

 

Do you mean when viewing, you right click and 'copy image'? That should work.

Link to comment
Share on other sites

30 minutes ago, Ego Eram Reputo said:

Do you mean when viewing, you right click and 'copy image'? That should work.

Here's what I mean, in this image I usually would right click and copy image on where it's highlighted Blue, but what works is pressing on View Image, where it's highlighted red. It shows the image by itself, and when I copy from there and paste it, it works.

2a2R5rK.png

Link to comment
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.

 Share

×
×
  • Create New...