Jump to content

paint.net 5.1 beta build 8986


Recommended Posts

This is a hotfix for 5.1 beta build 8985 that should resolve the hangs related to having the rulers enabled.

 

I'm not 100% certain of this, but it appears to be due to the fact that the canvas is using DirectComposition, while the rulers are not. The fix (knock on wood) was to enable DirectComposition for the rulers as well. Windows doesn't seem to like having mixed presentation systems utilized within the same HWND hierarchy in this way.

 

Download and Install

This build is available via the built-in updater as long as you have opted-in to pre-release updates. From within Settings -> Updates, enable "Also check for pre-release (beta) versions of paint.net" and then click on the Check Now button. You can also use the links below to download an offline installer or portable ZIP.
 

image.png

 

You can also download the installer here (for any supported CPU and OS), which is also where you can find downloads for offline installers, portable ZIPs, and deployable MSIs.

 

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

The good news is that using DirectComposition for the rulers means it can take advantage of the same per-image GPU memory savings that the canvas uses. So now enabling rulers, and having multiple images open, will consume even less GPU memory.

  • Like 1

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

Okay that's not good 😭 What in particular were you doing when it hung? Just moving the mouse, or drawing with a specific tool, or ... ?

 

Also, could you create and post another memory dump file? Instructions are here for quick access

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

Okay I got it to hang, and I think I know the fix.

 

Here's how I can get it to repro:

  • Make sure the History, Layers, and Colors windows are open
  • Also enable rulers. I don't think this is necessary, but I had them enabled.
  • Make a selection (any selection) -- this ensures the canvas is regularly re-drawing itself because of the selection outline animation
  • Switch to the paintbrush tool
  • This can be the tough part depending on your keyboard layout: rapidly move the mouse around the canvas, while simultaneously pressing Ctrl+Shift+N (New Layer) repeatedly

This causes constant redrawing of the canvas, rulers, History window, and Layers window. The History window is not using DirectComposition, and seems to be causing the same type of issue as the hang in build 8985. (Colors is also not using DirectComposition, but shouldn't be redrawing anything during all of this)

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

As a temporary workaround, you can disable hardware acceleration in Settings -> Graphics. Be sure to re-enable it once I push out the next build, it should be in the morning (hopefully within 12 hours from when this comment is posted).

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

Not hang-ups and such but

 

1. paint the image with black and white checker board.

2. select all black pixels with magic wand tool, flood mode = global.

3. select part of them with lasso select tool, selection mode = intersect.

 

By doing this, lasso select tool being very slow and doesn't work as intended.

I think this is by-effect of the recent changes.

Link to comment
Share on other sites

3 hours ago, _koh_ said:

 

1. paint the image with black and white checker board.

2. select all black pixels with magic wand tool, flood mode = global.

3. select part of them with lasso select tool, selection mode = intersect.

 

By doing this, lasso select tool being very slow and doesn't work as intended.

 

Confirmed that 5.1 beta is much slower at step 3 than 5.0.13 to the extent that the lasso select does not capture all the mouse movements, so the final selection shape is incorrect.

 

For reference, in the tests below I started with a 1000 x 750 canvas and used Boltbait's Grid/Checkerboard plugin to create a 5 x 5 pixel black&white checkerboard.

Then at step 3, I moved the mouse quickly to select a (very approximate) 400 x 300 pixel square.

 

Here's the 5.0.13 lasso selection, which I've coloured red to make it easier to see:

 

5-0-13-selection.png

 

 

Here's the 5.1 8986 Beta lasso selection. The red line represents my approx mouse movement.

 

5-1-beta-selection.png

 

NB It's possible that in the above test, I overshot with the mouse to the upper corner of the triangle - but then I'd have expected the selection to be as shown below, which I created using 5.1 8986 Beta by moving the mouse very slowly:

 

image.png

 

 

 

Link to comment
Share on other sites

8 minutes ago, Win080811 said:

i just turn on and off the ruler option fast and sometimes the unfilled spaces displays black for a short time like milliseconds

i know this is just an old thing but fix this later :)

 

Yeah I have an issue on GitHub where I'm keeping track of some flickers and stale frames, I'll make sure that's on the list. The really big and nasty ones are all fixed, I believed, but there are still some smaller ones here and there.

 

Thanks!

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...