QCAD crash on Fedora 32

Use this forum for all posts and questions about the free QCAD Community Edition version 3

Moderator: andrew

Post Reply
sagitter
Junior Member
Posts: 19
Joined: Mon Dec 05, 2016 12:31 pm

QCAD crash on Fedora 32

Post by sagitter » Sat May 02, 2020 10:00 am

Hi all.

QCAD-3.24.3.0 is crashing at startup on Fedora 32 (qt5-qtscript 5.13.2):

Code: Select all

$ gdb qcad
GNU gdb (GDB) Fedora 9.1-3.fc32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
"/usr/bin/qcads": not in executable format: file format not recognized
(gdb) exec-file /usr/lib64/qcad/qcad-bin
(gdb) run
Starting program: /usr/lib64/qcad/qcad-bin 
Missing separate debuginfos, use: dnf debuginfo-install qcad-3.24.3.0-1.fc32.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe4726700 (LWP 16681)]
[New Thread 0x7fffe2d13700 (LWP 16682)]
[New Thread 0x7fffe2512700 (LWP 16683)]
[New Thread 0x7fffe1d0f700 (LWP 16684)]
[New Thread 0x7fffe10b5700 (LWP 16685)]
Warning:  RPropertyTypeId::generateId: property already initialized:  7RObject : "" : "Invisible"
[New Thread 0x7fffcbfff700 (LWP 16686)]

Thread 1 "qcad-bin" received signal SIGBUS, Bus error.
0x00007ffff4e08cbb in QTJSC::JSArray::sort(QTJSC::ExecState*, QTJSC::JSValue, QTJSC::CallType, QTJSC::CallData const&) () from /lib64/libQt5Script.so.5

schmidtw
Newbie Member
Posts: 5
Joined: Wed Jun 04, 2014 8:32 am

Re: QCAD crash on Fedora 32

Post by schmidtw » Tue May 05, 2020 8:02 am

I installed the debug and source packages to get some more crash details:

Code: Select all

GNU gdb (GDB) Fedora 9.1-3.fc32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
"/usr/bin/qcads": not in executable format: file format not recognized
(gdb) exec-file /usr/lib64/qcad/qcad-bin
(gdb) run
Starting program: /usr/lib64/qcad/qcad-bin 
Missing separate debuginfos, use: dnf debuginfo-install glibc-2.31-2.fc32.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe4848700 (LWP 262575)]
Warning:  QSocketNotifier: Can only be used with threads started with QThread
[New Thread 0x7fffdee06700 (LWP 262576)]
[New Thread 0x7fffde605700 (LWP 262577)]
[New Thread 0x7fffdde04700 (LWP 262578)]
[New Thread 0x7fffdd603700 (LWP 262579)]
Warning:  RPropertyTypeId::generateId: property already initialized:  7RObject : "" : "Invisible"
[New Thread 0x7fffcffff700 (LWP 262580)]
Warning:  Failed to load client buffer integration: "wayland-egl"
Warning:  Available client buffer integrations: ()
Warning:  No shell integration named "xdg-shell" found
Warning:  No shell integration named "xdg-shell-v6" found
Warning:  No shell integration named "wl-shell" found
Warning:  No shell integration named "ivi-shell" found
Warning:  Loading shell integration failed.
Warning:  Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")

Thread 1 "qcad-bin" received signal SIGBUS, Bus error.
0x00007ffff4e36cbb in QTJSC::JSArray::sort(QTJSC::ExecState*, QTJSC::JSValue, QTJSC::CallType, QTJSC::CallData const&) () from /lib64/libQt5Script.so.5
Missing separate debuginfos, use: dnf debuginfo-install GConf2-3.2.6-27.fc31.x86_64 adwaita-qt5-1.1.1-3.fc32.x86_64 at-spi2-atk-2.34.2-1.fc32.x86_64 at-spi2-core-2.36.0-1.fc32.x86_64 atk-2.36.0-1.fc32.x86_64 bzip2-libs-1.0.8-2.fc32.x86_64 cairo-1.16.0-8.fc32.x86_64 cairo-gobject-1.16.0-8.fc32.x86_64 dbus-glib-0.110-7.fc32.x86_64 dbus-libs-1.12.16-4.fc32.x86_64 dconf-0.36.0-1.fc32.x86_64 expat-2.2.8-2.fc32.x86_64 fontconfig-2.13.92-9.fc32.x86_64 freetype-2.10.1-2.fc32.x86_64 gdk-pixbuf2-2.40.0-2.fc32.x86_64 glib2-2.64.2-2.fc32.x86_64 graphite2-1.3.14-1.fc32.x86_64 gtk3-3.24.20-1.fc32.x86_64 gvfs-client-1.44.1-1.fc32.x86_64 harfbuzz-2.6.4-3.fc32.x86_64 libX11-1.6.9-3.fc32.x86_64 libXau-1.0.9-3.fc32.x86_64 libXcomposite-0.4.5-2.fc32.x86_64 libXdamage-1.1.5-2.fc32.x86_64 libXext-1.3.4-3.fc32.x86_64 libXfixes-5.0.3-11.fc32.x86_64 libXi-1.7.10-3.fc32.x86_64 libXinerama-1.1.4-5.fc32.x86_64 libXrender-0.9.10-11.fc32.x86_64 libdatrie-0.2.9-11.fc32.x86_64 libepoxy-1.5.4-2.fc32.x86_64 libffi-3.1-24.fc32.x86_64 libgcc-10.0.1-0.13.fc32.x86_64 libgcrypt-1.8.5-3.fc32.x86_64 libglvnd-1.3.1-1.fc32.x86_64 libglvnd-glx-1.3.1-1.fc32.x86_64 libgpg-error-1.36-3.fc32.x86_64 libicu-65.1-2.fc32.x86_64 libjpeg-turbo-2.0.4-1.fc32.x86_64 libmount-2.35.1-8.fc32.x86_64 libpng-1.6.37-3.fc32.x86_64 libselinux-3.0-3.fc32.x86_64 libstdc++-10.0.1-0.13.fc32.x86_64 libthai-0.1.28-4.fc32.x86_64 libwayland-client-1.18.0-1.fc32.x86_64 libwayland-cursor-1.18.0-1.fc32.x86_64 libxcb-1.13.1-4.fc32.x86_64 libxkbcommon-0.10.0-2.fc32.x86_64 lz4-libs-1.9.1-2.fc32.x86_64 openssl-libs-1.1.1g-1.fc32.x86_64 pcre-8.44-1.fc32.x86_64 pcre2-utf16-10.34-9.fc32.x86_64 qgnomeplatform-0.6.0-3.fc32.x86_64 qt5-qtbase-5.13.2-5.fc32.x86_64 qt5-qtbase-gui-5.13.2-5.fc32.x86_64 qt5-qtscript-5.13.2-2.fc32.x86_64 qt5-qtsvg-5.13.2-2.fc32.x86_64 qt5-qtwayland-5.13.2-4.fc32.x86_64 systemd-libs-245.4-1.fc32.x86_64 xz-libs-5.2.5-1.fc32.x86_64 zlib-1.2.11-21.fc32.x86_64
(gdb) bt
#0  0x00007ffff4e36cbb in QTJSC::JSArray::sort(QTJSC::ExecState*, QTJSC::JSValue, QTJSC::CallType, QTJSC::CallData const&) () from /lib64/libQt5Script.so.5
#1  0x00007ffff4e0f512 in QTJSC::arrayProtoFuncSort(QTJSC::ExecState*, QTJSC::JSObject*, QTJSC::JSValue, QTJSC::ArgList const&) () from /lib64/libQt5Script.so.5
#2  0x00007fff480001b4 in ?? ()
#3  0x00007fffcf3ff2f0 in ?? ()
#4  0x0000000000000001 in ?? ()
#5  0x0000000000000006 in ?? ()
#6  0x00007fffccf8d600 in ?? ()
#7  0x00007fff4803cab1 in ?? ()
#8  0xffff000000000002 in ?? ()
#9  0x00007fffdc340cc0 in ?? ()
#10 0x44dabf5200000019 in ?? ()
#11 0x00007fffdc3d71c8 in ?? ()
#12 0x00007fffcdea0000 in ?? ()
#13 0x00007fffcd50c7e8 in ?? ()
#14 0x00007fff48000228 in ?? ()
#15 0x00007fffdc3d0750 in ?? ()
#16 0x00007fffcf3ff338 in ?? ()
#17 0x00007fffffffcfc0 in ?? ()
#18 0x00007ffff4f71248 in ?? () from /lib64/libQt5Script.so.5
#19 0x00007fffdc3d5800 in ?? ()
#20 0x00007ffff4f71248 in ?? () from /lib64/libQt5Script.so.5
#21 0x00007fffcf3ff000 in ?? ()
#22 0x00007fffdc3d0738 in ?? ()
#23 0x00007fffcf3ff048 in ?? ()
#24 0x00007fffdc3d0750 in ?? ()
#25 0x00005555556a4288 in ?? ()
#26 0x00007ffff4da2079 in QTJSC::Interpreter::execute(QTJSC::EvalExecutable*, QTJSC::ExecState*, QTJSC::JSObject*, int, QTJSC::ScopeChainNode*, QTJSC::JSValue*) [clone .part.0] () from /lib64/libQt5Script.so.5
#27 0x00007ffff4da5933 in QTJSC::Interpreter::execute(QTJSC::EvalExecutable*, QTJSC::ExecState*, QTJSC::JSObject*, QTJSC::ScopeChainNode*, QTJSC::JSValue*) () from /lib64/libQt5Script.so.5
#28 0x00007ffff4ec5e91 in QScriptEnginePrivate::evaluateHelper(QTJSC::ExecState*, long, QTJSC::EvalExecutable*, bool&) () from /lib64/libQt5Script.so.5
#29 0x00007ffff4ecb206 in QScriptEngine::evaluate(QString const&, QString const&, int) () from /lib64/libQt5Script.so.5
#30 0x00007ffff710bf3f in RScriptHandlerEcma::eval (this=0x55555599b550, script=..., fileName=...) at RScriptHandlerEcma.cpp:1084
#31 0x00007ffff7111edd in RScriptHandlerEcma::doScript (this=0x55555599b550, scriptFile=..., arguments=...) at RScriptHandlerEcma.cpp:1078
#32 0x00007ffff682fe31 in RScriptHandler::init (this=0x55555599b560, autostartFile=..., arguments=...) at /usr/include/qt5/QtCore/qlist.h:116
#33 0x000055555555987e in ?? ()
#34 0x0000000000000040 in ?? ()
#35 0x00007fffffffd340 in ?? ()
#36 0x00007fffffffd330 in ?? ()
#37 0x00007fffffffd338 in ?? ()
#38 0x00007ffff682f780 in .annobin__ZN14RScriptHandler4initERK7QStringRK11QStringList.start () at /usr/include/qt5/QtCore/qstring.h:550
#39 0x00000001ffffffff in ?? ()
#40 0x051af9f800000440 in ?? ()
#41 0x000055555558a160 in ?? ()
#42 0x000055555558a190 in ?? ()
#43 0x00005555557fb390 in ?? ()
#44 0x0000555555679a30 in ?? ()
#45 0x00007ffff63a1c80 in ?? () from /lib64/libQt5Core.so.5
#46 0x000055555586e370 in ?? ()
#47 0x00007ffff63a3bc0 in ?? () from /lib64/libQt5Core.so.5
#48 0x000055555586e370 in ?? ()
#49 0x0000000000000000 in ?? ()
Jumping to the code in qcad, the last call in the stack is in frame 30.
https://github.com/qcad/qcad/blob/17cc1 ... .cpp#L1084

I'm not sure where to go from here, but I'm seeing a crash with stock Fedora 32 as well.

Code version:

Code: Select all

qcad-3.24.3.0-1.fc32.x86_64
How it was built:

Code: Select all

https://src.fedoraproject.org/rpms/qcad/tree/f32

User avatar
andrew
Site Admin
Posts: 6874
Joined: Fri Mar 30, 2007 6:07 am

Re: QCAD crash on Fedora 32

Post by andrew » Tue May 05, 2020 9:15 am

If you're just looking for a way to run QCAD, you might want to download the official package from our web site instead:
https://qcad.org/en/download

You can remove the trial add-ons to use the Community Edition.

schmidtw
Newbie Member
Posts: 5
Joined: Wed Jun 04, 2014 8:32 am

Re: QCAD crash on Fedora 32

Post by schmidtw » Wed May 06, 2020 6:54 am

Thanks Andrew. Do you have any instructions for building the source code with debug symbols on?

enpontus
Newbie Member
Posts: 9
Joined: Sat Feb 26, 2011 11:14 am

Re: QCAD crash on Fedora 32

Post by enpontus » Wed May 06, 2020 6:56 am

i guess you have already seen this but there¨s a fedora bug for this https://bugzilla.redhat.com/show_bug.cgi?id=1830487

enpontus
Newbie Member
Posts: 9
Joined: Sat Feb 26, 2011 11:14 am

Re: QCAD crash on Fedora 32

Post by enpontus » Fri May 08, 2020 3:09 pm

fwiw - the upstreams version (3.24.3 - trial version) seems to work in F32 (altghough they do not respect the keyboard layout of the underlying system, just like the older commercial releases i have at hand) as per Andrews comment above

schmidtw
Newbie Member
Posts: 5
Joined: Wed Jun 04, 2014 8:32 am

Re: QCAD crash on Fedora 32

Post by schmidtw » Mon Jun 15, 2020 5:41 pm

I think the issue was in one of these upstream packages:

Code: Select all

 qt5-designer   < 5.14.2
 qt5-qtsvg      < 5.14.2
 qgnomeplatform < 0.6.1
As updating to these packages (above) fixed the crash.

User avatar
petevick
Active Member
Posts: 41
Joined: Tue May 19, 2020 9:34 am

Re: QCAD crash on Fedora 32

Post by petevick » Tue Jun 16, 2020 10:58 am

you mention Fedora 32, is that a 32bit install ? as you're trying to run a 64bit QCAD version
Pete Vickerstaff
Linux Mint 19.3 Cinnamon, Qcad Pro 3.24.3

Post Reply

Return to “QCAD Community Edition”