LibreCAD icon indicating copy to clipboard operation
LibreCAD copied to clipboard

Crash when opening Current Drawing Preferences

Open sudduth opened this issue 8 months ago • 2 comments

Version: 2.2.0.2 Compiler: GNU GCC 15.0.1 Compiled on: Jan 17 2025 Qt Version: 5.15.17 Boost Version: 1.83.0 System: Fedora Linux 42 (Workstation Edition)

From the menu choose Options -> Current Drawing Preferences

Expected: The current drawing preferences dialog to open

Actual: *** stack smashing detected ***: terminated Aborted (core dumped)

The Application Preferences dialog opens without issue.

sudduth avatar Jun 12 '25 00:06 sudduth

There is more recent version. You can try 2.2.1.1

ErtugrulEge avatar Jun 12 '25 05:06 ErtugrulEge

also, we should be releasing a 2.2.1.2 soon.

I'm currently busy due to some family emergency.

dxli avatar Jun 12 '25 21:06 dxli

I am having the same issue. Was working up until my fedora 'dnf update' of last week. Ran updates and rebooted again today and it is still crashing.

Version: 2.2.0.2 Compiler: GNU GCC 14.1.1 Compiled on: Jul 18 2024 Qt Version: 5.15.17 Boost Version: 1.83.0 System: Fedora Linux 41 (Workstation Edition)

vtkovacs avatar Jun 29 '25 15:06 vtkovacs

I found that it works on my laptop which is running the same LibreCAD package on the same OS. Seems like it might be more of a Fedora issue than a LibreCAD issue.

sudduth avatar Jun 29 '25 16:06 sudduth

I pulled the source code for 2.2.1.1 and compiled. It does not crash.

vtkovacs avatar Jun 30 '25 16:06 vtkovacs

Opened a PR to update the package in Fedora. If someone needs a workaround for now, they can pull the RPMs out of the builds linked in the PR. https://src.fedoraproject.org/rpms/librecad/pull-request/3

Bugzilla Issue tracking this https://bugzilla.redhat.com/show_bug.cgi?id=2372635

@dxli This was made more difficult because currently Fedora pulls libdxfrw from https://github.com/LibreCAD/libdxfrw and builds it as a separate package, then patches LibreCAD to use that version. However, that repo does not seem to be maintained consistently as brought up in https://github.com/LibreCAD/libdxfrw/issues/80. So I using the bundled one and marked it as a bundled library. Fedora is not a fan of bundled libraries. Hopefully the package maintainers don't have a problem with that. But it would help if the libdxfrw repo is either kept updated or archived.

avylove avatar Jul 25 '25 17:07 avylove

Install from flathub 2.2.1.2 version is working correctly!

Matrikssz avatar Aug 07 '25 15:08 Matrikssz

@avylove

From our side, I'm thinking about a new libdxfrw release to make the upstream more consistent for package maintainers.

dxli avatar Aug 07 '25 19:08 dxli