Jump to content

Issue pasting image with v3.5


avd
 Share

Recommended Posts

Got the update prompt today, so installed v3.5. When I try to paste an image in, the program freezes and disables ALL functions-can't even exit, so have to use task manager to close it.

Checked .net framework and it's v3.5 sp1 which I believe is what's required.

System is running W XP with plenty of available disk space (60 gigs or so), though only 512mB ram.

What am I doing wrong?

"Honor your errors as hidden intentions." Brian Eno

Link to comment
Share on other sites

I would like to piggyback on this issue since I seem to have the same problem. If this is not appropriate, please let me know.

Since upgrading, paintdotnet frequently/usually goes into a loop (uses all available cpu cycles forever) after pasting the clipboard. Please note that it occurs frequently, not always. I don't know what's different about the times it doesn't go into a loop.

Sometimes, after a few minutes, it will return control. Once, just for grins, I let it run on for about 20 minutes and eventually had to kill it using task manager.

I should add that I have 768 MB of RAM, but this was not happening with the previous release.

Link to comment
Share on other sites

BoltBait reported a similar issue with the beta...he noted that hitting Escape to cancel the nonexistent dialog box returned control. Try that. :-)

 

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.

Link to comment
Share on other sites

I also have a problem with pasting but a different one to that already mentioned. When pasting an image as a new image, PDN asks me if I want to expand or keep the canvas size. It's going to be a new image, so that IS the new canvas size anyway... And then, no matter if you click expand or keep, it pastes the new image with one extra column of pixels (all transparent) to the left of the image, and occasionally one extra row at the bottom.

Link to comment
Share on other sites

There has to be a hardware problem with this, methinks.

If those who are posting don't mind, please post the following information:

OS Version: 
.NET version: 
Processor:
Physical memory: 
UI DPI:
Laptop / Dekstop:
Manufacturer:
Model:

I am asking because I have had this same problem since early alpha releases and eventually considered it a problem with my hardware.

signature.png

Link to comment
Share on other sites

aye both me and boltbait have had this problem i don't think its a hardware issue because my computer is running the latest windows and has everything up to date and is less than a year old. I have only ran into this problem a few times and i haven't had any problems since upgrading to windows 7.

 

"Clearly it's a very serious and literal meaning. If you're not solving physics equations then get off my lawn!-Rick Brewster Paint.net Lead Developer"

Link to comment
Share on other sites

Answering Mike Ryan's post;

OS Version: XPHome 2002 SP2

.NET version: 3.5 SP1

Processor: Celeron 2.6gHz

Physical memory:512mB ram

UI DPI: 96

Laptop / Desktop:Laptop

Manufacturer:Dell

Model:Inspiron 1150

Good to know a fix is being worked on.

Cheers!

"Honor your errors as hidden intentions." Brian Eno

Link to comment
Share on other sites

I am still unable to reproduce this. People have reported issues with pasting from Office (didn't say what version, I've tried 2003, 2007, 2010), and Greenshot. It never reproduces for me, whether it's on my Core i7 or a Core 2 Duo, or with thread affinity set to 1 CPU, or in a virtual machine, or in Win7 or XP or Vista or anywhere.

Theoretically the CPU usage issue sounds like a classic inversion-of-priority issue. But that would require a spin-wait loop on the UI thread, as well as code that mucked with the thread priority. But, all threads involved in this should be at normal priority.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

I am still unable to reproduce this. People have reported issues with pasting from Office (didn't say what version, I've tried 2003, 2007, 2010), and Greenshot. It never reproduces for me, whether it's on my Core i7 or a Core 2 Duo, or with thread affinity set to 1 CPU, or in a virtual machine, or in Win7 or XP or Vista or anywhere.

Theoretically the CPU usage issue sounds like a classic inversion-of-priority issue. But that would require a spin-wait loop on the UI thread, as well as code that mucked with the thread priority. But, all threads involved in this should be at normal priority.

Just keep pasting images on top of another, larger image. It seems to help if the original is opened from file, then to paste on from an image from the browser. That's not always the case, however, but it seems to help.

Link to comment
Share on other sites

I think I have a fix for the high CPU usage issue. I'm reverting back to the code that I used for Paint.NET v3.36. In v3.5 I was trying out a new asynchronous code model and it hasn't really proven itself to provide any real benefit. So, it's out (for the upcoming v3.5.1 update).

For the issue where Paste into New Image is giving a "invalid format" (etc.) error, I figured that out too. Turns out that the code does this: 1) looks for an image on the clipboard, 2) creates a new image of that size, 3) calls the normal Edit->Paste command to finish up. The problem is that at (1), it was only looking for a bitmap/DIB, and not the other two formats that (3) allows (that is: EMF, and a special Paint.NET internal format that has a selection mask).

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

And, if you'd like to try out the fix, install this:

http://www.getpaint.net/files/zip/test/ ... nstall.zip

It's not an official beta build or anything; it isn't digitally signed, and isn't available anywhere other than via that link.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

This is great news. I am pleased, since I pointed out that it was probably a format issue (viewtopic.php?f=10&t=32417) when we found that pasting to MSPaint worked in cases where the normal paint didn't. Nice catch!

Thanks much for digging deep and figuring these out...

For the issue where Paste into New Image is giving a "invalid format" (etc.) error, I figured that out too. Turns out that the code does this: 1) looks for an image on the clipboard, 2) creates a new image of that size, 3) calls the normal Edit->Paste command to finish up. The problem is that at (1), it was only looking for a bitmap/DIB, and not the other two formats that (3) allows (that is: EMF, and a special Paint.NET internal format that has a selection mask).

Michael

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...