(bug) LibrePCB crashes on two-finger vertical scroll

I’m currently using trackpad with librepcb so my two finger scroll up and down is zoom, and in about 4 hours of work I’ve crashed about 3 times. The trigger seems to be on a scroll, but its not every time so its hard to pinpoint the exact conditions of failure.

I am using Arch Linux (CachyOS) and the librepcb-appimage AUR package.

Hi @pknessness,

I have seen such a problem recently and figured out it seems to be related to a new version of freetype (which I guess is used from the system, not bundled in the AppImage). The crash is easy to reproduce when zooming into the schematic at the location of a netlabel or buslabel. When I run the AppImage from the terminal, I see this:

[ WARNING ] render glyph failed err=62 face=0x56232a5d41f0, glyph=53
Segmentation fault         (core dumped) ./librepcb-2.0.1-linux-x86_64.AppImage

Can you confirm it’s the same issue for you?

The bug seems to be in Qt: QTBUG-145310
See also this report in Fritzing: AUR (en) - fritzing

I’m not sure currently what would be a possible workaround (other than downgrading freetype) :thinking:

Indeed I believe it is the same bug for me as well

[ WARNING ] render glyph failed err=62 face=0x56420062aae0, glyph=50
fish: Job 1, 'librepcb' terminated by signal SIGSEGV (Address boundary error)

That’s unfortunate, glad to know the bug is known at least.

1 Like

I tried to find a workaround to avoid these segfaults, but I couldn’t find any :-/ We really need the Qt bugfix, but Qt 6.11.1 is not even released yet. So I think downgrading freetype is currently the only workaround.

I opened an issue to keep this in mind, so we can update to Qt 6.11.1 before our next release.