Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#62209 - [qcad] aborts upon startup

Attached to Project: Community Packages
Opened by ed adasiewicz (eda2z) - Monday, 01 April 2019, 23:06 GMT
Last edited by Ike Devolder (BlackEagle) - Sunday, 14 April 2019, 17:33 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Ike Devolder (BlackEagle)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

If I start qcad from the gnome menu I see the splash screen and the initializing message but then it immediately terminates. If I start qcad from the command line then the same occurs but I get the following Debug messages:

QCAD version 3.22.0.5
18:05:14: Debug: RDxfPlugin::init
18:05:14: Debug: RScriptsPlugin::init
18:05:15: Debug: TIMER: 1000000 ns ( 1 ms ) - "block list update"
Warning: RScriptHandlerEcma::eval: script engine exception: "TypeError: Result of expression 'global[defaultActionClass].init' [undefined] is not a function."
Warning: "<anonymous>() at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:522\n<anonymous>(documentInterface = RDocumentInterface(0x55eaf5e9e860)) at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:472\n<anonymous>() at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:251\n<anonymous>() at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:109\n<eval>() at 1\nslotTrigger() at -1\nopenFiles(args = , createNew = true) at scripts/autostart.js:209\nmain() at scripts/autostart.js:794\n<global>() at scripts/autostart.js:832"
Warning: RScriptHandlerEcma::eval: script engine exception: "TypeError: Result of expression 'global[defaultActionClass].init' [undefined] is not a function."
Warning: "<anonymous>() at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:522\n<anonymous>(documentInterface = RDocumentInterface(0x55eaf5e9e860)) at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:472\n<anonymous>() at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:251\n<anonymous>() at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:109\n<eval>() at 1\nslotTrigger() at -1\nopenFiles(args = , createNew = true) at scripts/autostart.js:209\nmain() at scripts/autostart.js:794\n<global>() at scripts/autostart.js:832"
Warning: At least one uncaught exception:
Warning: "<anonymous>() at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:522\n<anonymous>(documentInterface = RDocumentInterface(0x55eaf5e9e860)) at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:472\n<anonymous>() at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:251\n<anonymous>() at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:109\n<eval>() at 1\nslotTrigger() at -1\nopenFiles(args = , createNew = true) at scripts/autostart.js:209\nmain() at scripts/autostart.js:794\n<global>() at scripts/autostart.js:832"
18:05:15: Debug: "<global>() at 522"
This task depends upon

Closed by  Ike Devolder (BlackEagle)
Sunday, 14 April 2019, 17:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.22.0.6
Comment by Cryptoxin (rrjj99) - Tuesday, 09 April 2019, 00:21 GMT
Same here, but from KDE

QCAD version 3.22.0.5
Warning: QApplication: invalid style override passed, ignoring it.
Available styles: Breeze, bb10dark, bb10bright, cleanlooks, gtk2, cde, motif, plastique, Oxygen, QtCurve, Windows, Fusion
10:19:27: Debug: RDxfPlugin::init
10:19:27: Debug: RScriptsPlugin::init
Warning: RScriptHandlerEcma::eval: script engine exception: "TypeError: Result of expression 'global[defaultActionClass].init' [undefined] is not a function."
Warning: "<anonymous>(useGuiAction = false) at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:522\n<eval>() at /usr/lib/qcad/scripts/File/PrintPreview/PrintPreview.js:145\n<native>('scripts/File/PrintPreview/PrintPreview.js') at -1\n<eval>() at /usr/lib/qcad/scripts/File/Print/Print.js:23\n<native>('scripts/File/Print/Print.js') at -1\n<eval>() at /usr/lib/qcad/scripts/Edit/DrawingPreferences/PageSettings/PageSettings.js:22\n<native>('scripts/Edit/DrawingPreferences/PageSettings/PageSettings.js') at -1\n<eval>() at /usr/lib/qcad/scripts/Widgets/FirstStart/FirstStart.js:23\n<native>('Widgets/FirstStart/FirstStart.js') at -1\nmain() at scripts/autostart.js:573\n<global>() at scripts/autostart.js:832"
Warning: At least one uncaught exception:
Warning: "<anonymous>(useGuiAction = false) at /usr/lib/qcad/scripts/File/OpenFile/../NewFile/NewFile.js:522\n<eval>() at /usr/lib/qcad/scripts/File/PrintPreview/PrintPreview.js:145\n<native>('scripts/File/PrintPreview/PrintPreview.js') at -1\n<eval>() at /usr/lib/qcad/scripts/File/Print/Print.js:23\n<native>('scripts/File/Print/Print.js') at -1\n<eval>() at /usr/lib/qcad/scripts/Edit/DrawingPreferences/PageSettings/PageSettings.js:22\n<native>('scripts/Edit/DrawingPreferences/PageSettings/PageSettings.js') at -1\n<eval>() at /usr/lib/qcad/scripts/Widgets/FirstStart/FirstStart.js:23\n<native>('Widgets/FirstStart/FirstStart.js') at -1\nmain() at scripts/autostart.js:573\n<global>() at scripts/autostart.js:832"
10:19:27: Debug: "<global>() at 522"
Comment by Gottfried (bonobo) - Wednesday, 10 April 2019, 05:52 GMT
same here

my interim solution:
download the sources from qcad.org

cd qcad-3.22.0.0

qmake -r

Info: creating stash file /home/bonobo/bin/qcad-3.22.0.0/.qmake.stash
Info: creating cache file /home/bonobo/bin/qcad-3.22.0.0/.qmake.cache
Reading /home/bonobo/bin/qcad-3.22.0.0/src/src.pro
Reading /home/bonobo/bin/qcad-3.22.0.0/src/3rdparty/3rdparty.pro
Project ERROR: Script bindings not available for Qt version 5.12.2. You can add them to src/3rdparty/qt-labs-qtscriptgenerator-5.12.2 or use another version of Qt.

cd src/3rdparty/qt-labs-qtscriptgenerator-5.12.2
qmake
make

this will build files in ../qt-labs-qtscriptgenerator-5.5.0

move or copy this to ../qt-labs-qtscriptgenerator-5.12.2

Excuse me, I can't remember from here.
?
back to qcad-3.22.0.0
make

start qcad ../qcad-3.22.0.0/release/qcad-bin
(make it first executable)

Comment by Norbert Reschke (mawima) - Wednesday, 10 April 2019, 12:33 GMT
same for me

QCAD version 3.22.0.5
14:30:16: Info: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
14:30:16: Debug: RDxfPlugin::init
14:30:16: Debug: RScriptsPlugin::init
14:30:18: Debug: TIMER: 3000000 ns ( 3 ms ) - "block list update"
Warning: RScriptHandlerEcma::eval: script engine exception: "TypeError: Result of expression 'global[defaultActionClass].init' [undefined] is not a function."
...
14:30:18: Debug: "<global>() at 522"
Comment by Norbert Reschke (mawima) - Saturday, 13 April 2019, 12:30 GMT
Yes, 3.22.0.6 does start up and is useable like before 3.22.0.5

@Ike Devolder
Thank you very much

Loading...