MyPaint version pre-alpha preview

Ah… that’s a bug, should be fixed now.

That was fast! Yes, the tool options panel is now updating when I change tools. Thank you for the fix.

Hello CandyFace,

It looks like I may have encountered a small bug and it only occurs when the 2b pencil is selected. All other tools work as expected.

To recreate

Select the 2b pencil. Move the canvas and after you let go you will see that the 2b pencil is no longer selected. Instead the 4h pencil will be selected.

Thanks for reporting, should be fixed now. New build will arrive in 15 min or so…

Yes, looks like everything is good. I have been using this version almost everyday now and have not encountered any other MyPaint related issue. Thank you for all your work.

@danya That’s great to hear :slight_smile:

New build coming within 15 min.

Notable changes:

  • Fix key events not working after selecting a brush in “Brush selector” window. An example is trying to pan the canvas using space bar, this would not trigger on first try.
  • Fix crash when copy/pasting a selection to a new frame when the selection rectangle is still shown.

Quick update:

New build available:

  • Don’t render canvas cursor when using selection tool
  • Fix canvas cursor not updating visually according to the new brush setting.

Hello

You’ve recently mentioned a few fixes related with copying/pasting and the selection tool. I figured I should mention some of the issues I have encountered with the selection tool of the MyPaint version, just in case.

  1. I like using the gray background and when I select an image and move it to a different location on the same frame I get a white square box in the original location. But it disappears when I hit enter.

  2. When I rotate the image, the image changes size (gets smaller) as I rotate, but fortunately it goes back to the original size when I hit enter.

  3. When I begin to draw again on the same frame, the drawing that I moved and rotated earlier gets duplicated.

To recreate

Set background to grey. Draw something. Select drawing. Rotate drawing and move drawing to a different location on the same frame. Draw something else on the same frame.

Thanks for reporting :slight_smile:

  1. Selection causing white rect - fixed
  2. Rotation selection, distorts image - fixed
  3. Weird behaviour when drawing on layer after a selection has been made… - working on it.

Confirmed on linux. 1 and 2 are now resolved. Thanks!

Before I forget, I recently and accidentally closed the brush selector window (where the MyPaint Brushes are) and realized that there is no easy way to get this window back without restarting or clicking on the reset windows button. At least none that I know of.

Ah… yes you’re right, I forgot to add it to the menu. it has been fixed now.

Check if you can do something about the pressure @MrStevns :smiley:

The 3. bug should be fixed now too. After I fixed it though, it let to another bug… The first is as you describe, it would slightly offset the image, but after that if you successfully moved the image and kept the selection, you could sometimes also make it crash…

While debugging, I got some time rethink how to re-apply the transformed image into the mypaint backend, which should result in a nice performance increase when transforming on a huge surface.

I just tried it out and yes it is working perfectly. I can’t thank you enough and I’m glad to hear about the added performance increase.

@MrStevns I tested MyPaint latest development build and had a similar issue as @kaiko with the pressure sensitivity (no pressure)

What I did to workaround was to change the Windows compatibility mode form Win 10 to Win 7, and it worked again.

That said the last build that was working without this workaround for my system was pencil2d-win64-2020-04-04.zip as the whole batch between April 13th and may 3rd has the original brush system for some reason, and it starts to lose pressure sensitivity from pencil2d-win64-2020-05-09.zip onwards.

I feel that whatever you merged into the MyPaint branch after the April 4th version from master, is the culprit for this behavior in both Pencil2D master and in this branch.

@JoseMoreno I wrote you something on Discord. It has to do with the version of Qt :+1:

Hello @MrStevns

I have another one for you. I’ve been experiencing a number of issues and sometimes crashes. These starts to occur when I have multiple layers and when copying and pasting drawings. They seem random and difficult to recreate but I think I got one of them.

To recreate:

  1. open pencil2d-mypaint version
  2. write the number 1 with the 2b pencil on key frame 1.
  3. go to frame five, add a key frame. write the number 5.
  4. create a new bitmap layer.
  5. go to new layer and draw the number 2 on key frame 1.
  6. go to frame 5, add a key frame and draw the number 6.
  7. Go back to layer one and frame one.
  8. with the select tool (v), select drawing 1 and ctrl-c (copy)
  9. go to frame five on the same layer and with the select tool still active click the canvas with your stylus at random locations.

you should observe the drawings from layer two switching on and off. If you keep playing with the selection tool (ie, clicking random parts of the canvas and maybe even switching frames), the app will probably crash.

After a crash I get the following message in the command prompt:

ASSERT: “!selection.isEmpty()” in file …/…/pencil-implement_mypaint_nobitmapsurface/core_lib/src/graphics/bitmap/bitmapimage.cpp, line 222 Aborted (core dumped)

note: I compile from source on Linux

Being that it’s an assert, you can run the app in release mode and the crash should be gone. asserts are debug only, to let the developer know that something unexpected has happened and thus crashes.

I am currently working on fixing some things regarding the selection tool, so I am aware that it can crash the app occasionally. Hopefully the next release will contain some nice improvements while also some bugfixes.

1 Like

@MrStevns

Your last work from day 3th does not have mypaint brushes. Just to let you know.

Windows