Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash after image processing #529

Closed
vexillia opened this issue Aug 24, 2022 · 14 comments
Closed

Crash after image processing #529

vexillia opened this issue Aug 24, 2022 · 14 comments

Comments

@vexillia
Copy link

Lazpaint: lazpaint 7.2.2_linux64.deb
OS: xUbuntu 22.04.1 (fresh install)
Mono: version 6.12.0.182 (tarball Tue Jun 14 22:35:00 UTC 2022) via official ppa

Lazpaint opens OK. I can open an image file and change the canvas size but after resampling the program crashes completely.

Opening app via terminal gives a error message that suggests it's a mono failure (hence the updated version) and sometimes I get a error file (json) too.

Same behaviour with standard version of mono and either 7.22 or 7.1.6 too.

What am I missing?

@circular17
Copy link
Collaborator

Hello!

LazPaint doesn’t use Mono so I don’t understand how that would be the issue.

Can you give more details on the error you’re getting and the exact steps to reproduce?

If you can, you can debug it with Lazarus (I can explain how to) to get more detailed information or I will do that.

@vexillia
Copy link
Author

vexillia commented Aug 25, 2022

On start from terminal:

`Gtk-Message: 08:14:59.115: Failed to load module "xapp-gtk3-module"

(lazpaint:450873): dbind-WARNING **: 08:14:59.120: Couldn't connect to accessibility bus: Failed to connect to socket /root/.cache/at-spi/bus_0.0: Permission denied
`
After crash:

[FORMS.PP] ExceptionOccurred Sender=EAccessViolation Exception=Access violation Stack trace: $0000000000000000 $000055E7A044E264 $000055E7A02521A8 $000055E7A0251E37 $000055E7A02525BE $000055E7A044DC33 $000055E7A0252514 [FORMS.PP] ExceptionOccurred

Hope that helps.

@circular17
Copy link
Collaborator

Hmmm that looks like an issue between the program and the widget set. I will try on a VM to fix it

@circular17 circular17 added the bug label Sep 2, 2022
@zeroheure
Copy link

Similar behaviour here on Debian Sid (up to date).
How can I launch Lazpaint with debug options ?

@circular17
Copy link
Collaborator

circular17 commented Sep 10, 2022

One way would be to compile it yourself. Here's how.

Install Lazarus package.
Download the source code of LazPaint, for example from upstream:
https://github.com/bgrabitmap/lazpaint-upstream
Then run Lazarus.
With all necessary packages (bgrabitmap, bgracontrols, lazpaintcontrols)

  • open using package menu and find LPK file
  • go into package options, go to link options and set optimization level 0, in debug options check generate debug info

Then open LazPaint project (lazpaint.lpi)
Choose build mode Debug (next to Play button there is a config button, click the dropdown arrow, then choose)
Then click the Play button
You should get LazPaint running. If an error occurs, it will stop and show the line causing the problem. You can also open the stack trace with menu View > Debug window

Otherwise I will try to provide debug binaries

@circular17
Copy link
Collaborator

@circular17
Copy link
Collaborator

I've tried on a virtual machine with xUbuntu 22.04.1 and resampled an image without issue. Can you provide a sample image that I can try to resample and steps to reproduce the bug?

@vexillia
Copy link
Author

vexillia commented Oct 6, 2022

Not sure it's image specific: it happened with each and every image I tried. Here's one anyway ...

20210916 - FnF damage

@zeroheure
Copy link

I've just downloaded the debug binaries (sorry, I was unable to do it before), and tried but I can't reproduce the bug.
Here's what I've done ;

  • Open an image, go to menu Image / Canvas Size
  • the dialog window opens, I can change the width and height values
  • Lazpaint crash when validating
    Or
  • Open an image, go to menu Image / Resample
  • the dialog window opens, I can change the width and height values
  • Lazpaint crash when validating

With Debian Sid binaries, it crash, with your debug binaries, no crash (same image).

This can be related : when debian binary opens, the window below is shown.

lazpaint 7 2 2 x64 statup

@zeroheure
Copy link

zeroheure commented Oct 6, 2022

Breaking news ! it only happened on the Lazpaint Qt5 version. Sorry, I didn't even knows that there is two versions. The GTK2 version works fine for me, no crash, no exception at startup.

I suggest to put something about the two existing versions in the About window.

@circular17
Copy link
Collaborator

Thanks for the detailed answer. I understand we are not always available.

Xfce is kind of related to Gtk so it makes sense it would be more compatible. Though there may be some way to avoid the crash with Qt5.

Ok I was able to reproduce the two bugs with Qt5 version. It it related to timer events.

@circular17
Copy link
Collaborator

I found a way to avoid the bugs by removing the yellow popup about action progress. Here is a fixed version for Qt5 :
https://github.com/bgrabitmap/lazpaint/releases/download/v7.2.2/lazpaint7.2.2_linux64_qt5_bugfix.tar.gz

@zeroheure
Copy link

Tested, everything ok

  • no exception at startup
  • no crash after canvas resize or resample

Thanks for the good job Johann !

@circular17
Copy link
Collaborator

You're very welcome

Thanks for helping me finding the bugs !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants