mmtrt / notepad-plus-plus-snap

Unofficial snap repo for notepad-plus-plus snap
https://snapcraft.io/notepad-plus-plus
MIT License
64 stars 7 forks source link

Assert crash on launch solid_pen_lines num >= 2 #44

Open SpecificityD3luxe opened 1 month ago

SpecificityD3luxe commented 1 month ago

Hello, thanks for a great way to run notepad-plus-plus!

A couple of days ago I did an update of the snap and I started getting this on launch:

a couple of these ERROR: ld.so: object '/snap/notepad-plus-plus/409/gnome-platform/$LIB/bindtextdomain.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

and then notepad-plus-plus.exe: dlls/win32u/dibdrv/objects.c:812: solid_pen_lines: Assertion `num >= 2' failed.

I couldn't find this solid_pen_lines anywhere in your git log, so I assume some new thing platform, core, wine, something that you switched to has a dependency that I am not aware of.

I am on Ubuntu 22.04 and I installed using instructions on this page, worked great before, started crashing recently (unfortunately I dont know which version worked great or how to revert to it, this snap thing only uses stable and edge as versions?)

Cheers ...

fcazorla commented 4 weeks ago

Hello,

I'm facing the same problem, same ignored error messages about bindtextdomain.so, then the application window briefly shows up, and it crashes instantly showing exactly the same message about solid_pen_lines assertion.

It also happened after the last snap app update, in my case on Ubuntu 24.04.

I think it's worth to mention that when the app window appears for a fraction of a second, I can see the menu's buttons and the tabs of my previously opened files with their content, so the app (I guess almost) finished loading before crashing.

Just in case it helps... Thanks!

mmtrt commented 3 weeks ago

Try fresh install of snap with snap data removed following this

SpecificityD3luxe commented 3 weeks ago

Removing previous stuff works, it gets notepad-plus-plus starting ok.

I can still get it to crash though, if I go into setting and select dark mode, that throws me out again with same error.

So, maybe the issue was triggered by settings? When I started it with settings from before, it will crash, but starting with default settings after purge is enough to get it up?

I can avoid that setting obviously, but might also get triggered by more things than just dark mode?

Cheers ...

fcazorla commented 3 weeks ago

Yep, complete uninstall and reinstall worked for me too.

But I had made a copy of the settings in snap app .wine dir (drive_c/Users//AppLocal/Roaming/Notepad++). After restoring old settings it crushed again with the same error and it turns out I also had Dark Mode theme in my previous setup.

So yes it must have to do with that. Thanks for the tip tho, I could make it work again :)

mmtrt commented 3 weeks ago

That seems to be wine issue though I can reproduce with wine devel 9.20 AppImage as well.