QCAD crashed in SplashScreen

Discussion forum for C++ and script developers who are using the QCAD development platform or who are looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

Post Reply
slymn++
Junior Member
Posts: 21
Joined: Tue Feb 16, 2016 8:33 am

QCAD crashed in SplashScreen

Post by slymn++ » Fri Feb 19, 2016 3:24 pm

Hi all

I compiled qcad-3.12.18 with qt5.5.0
When I run , qcad crashed in spashscrenn(%71...))

Qt application output;

Code: Select all


Starting C:\QCADCAM\QCAD-3.12.18.0\release\qcad.exe...
QCAD version  3.12.8
16:18:59: Debug:    TIMER:  150000000 ns ( 150 ms )  -  "loading add-ons"
Warning:  "QFormBuilder was unable to create a custom widget of the class 'RTextEdit'; defaulting to base class 'QTextBrowser'."
Warning:  "QFormBuilder was unable to create a custom widget of the class 'RCommandLine'; defaulting to base class 'QLineEdit'."
Warning:  RScriptHandlerEcma::eval: script engine exception:  "TypeError: Result of expression 'leCommand.commandConfirmed' [undefined] is not an object."
Warning:  "<anonymous>(basePath = 'scripts/Widgets/CommandLine', QSplashScreen, 'Initializing add-ons: 71%\nCadToolMatrix') at C:/QCADCAM/QCAD-3.12.18.0\\scripts/Widgets/CommandLine/CommandLine.js:170\n<anonymous>(splash = QSplashScreen, text = 'Initializing add-ons: 71%\nCadToolMatrix') at C:/QCADCAM/QCAD-3.12.18.0/scripts\\AddOn.js:112\n<anonymous>(splash = QSplashScreen, text = 'Initializing add-ons: 71%\nCadToolMatrix') at C:/QCADCAM/QCAD-3.12.18.0/scripts\\AddOn.js:55\ninitAddOns(addOns = AddOn(actionText: '&Reset / Idle', groupName: scripts, filePath: scripts/Reset/Reset.js),AddOn(actionText: 'File Tools', groupName: scripts, filePath: scripts/File/File.js),AddOn(actionText: '', groupName: File, filePath: scripts/File/AutoSave/AutoSave.js),AddOn(actionText: 'Bit&map Export...', groupName: File, filePath: scripts/File/BitmapExport/BitmapExport.js),AddOn(actionText: '&Close', groupName: File, filePath: scripts/File/CloseFile/CloseFile.js),AddOn(actionText: '&Import', groupName: File, filePath: scripts/File/ImportFile/ImportFile.js),AddOn(actionText: '&New', groupName: File, filePath: scripts/File/NewFile/NewFile.js),AddOn(actionText: '&Open', groupName: File, filePath: scripts/File/OpenFile/OpenFile.js),AddOn(actionText: 'P&DF Export', groupName: File, filePath: scripts/File/PdfExport/PdfExport.js),AddOn(actionText: '&Print', groupName: File, filePath: scripts/File/Print/Print.js),AddOn(actionText: 'Print &Current View', groupName: File, filePath: scripts/File/PrintCurrentView/PrintCurrentView.js),AddOn(actionText: 'Print Pre&view', groupName: File, filePath: scripts/File/PrintPreview/PrintPreview.js),AddOn(actionText: '', groupName: File, filePath: scripts/File/Quit/Quit.js),AddOn(actionText: '', groupName: File, filePath: scripts/File/RecentFiles/RecentFiles.js),AddOn(actionText: '&Save', groupName: File, filePath: scripts/File/Save/Save.js),AddOn(actionText: 'Save &As...', groupName: File, filePath: scripts/File/SaveAs/SaveAs.js),AddOn(actionText: 'SVG &Import...', groupName: File, filePath: scripts/File/SvgImport/SvgImport.js),AddOn(actionText: 'Edit Tools', groupName: scripts, filePath: scripts/Edit/Edit.js),AddOn(actionText: 'Application &Preferences', groupName: Edit, filePath: scripts/Edit/AppPreferences/AppPreferences.js),AddOn(actionText: '', groupName: AppPreferences, filePath: scripts/Edit/AppPreferences/GraphicsViewPreferences/GraphicsViewPreferences.js),AddOn(actionText: '', groupName: GraphicsViewPreferences, filePath: scripts/Edit/AppPreferences/GraphicsViewPreferences/BehaviorPreferences/BehaviorPreferences.js),AddOn(actionText: '', groupName: GraphicsViewPreferences, filePath: scripts/Edit/AppPreferences/GraphicsViewPreferences/ColorPreferences/ColorPreferences.js),AddOn(actionText: '', groupName: GraphicsViewPreferences, filePath: scripts/Edit/AppPreferences/GraphicsViewPreferences/FontPreferences/FontPreferences.js),AddOn(actionText: '', groupName: GraphicsViewPreferences, filePath: scripts/Edit/AppPreferences/GraphicsViewPreferences/GridPreferences/GridPreferences.js),AddOn(actionText: '', groupName: AppPreferences, filePath: scripts/Edit/AppPreferences/InputPreferences/InputPreferences.js),AddOn(actionText: '', groupName: AppPreferences, filePath: scripts/Edit/AppPreferences/LanguagePreferences/LanguagePreferences.js),AddOn(actionText: '', groupName: AppPreferences, filePath: scripts/Edit/AppPreferences/LayerCompatibility/LayerCompatibility.js),AddOn(actionText: '', groupName: AppPreferences, filePath: scripts/Edit/AppPreferences/ScriptingPreferences/ScriptingPreferences.js),AddOn(actionText: '', groupName: AppPreferences, filePath: scripts/Edit/AppPreferences/StartupPreferences/StartupPreferences.js),AddOn(actionText: '', groupName: AppPreferences, filePath: scripts/Edit/AppPreferences/TextPreferences/TextPreferences.js),AddOn(actionText: '', groupName: AppPreferences, filePath: scripts/Edit/AppPreferences/ToolBarPreferences/ToolBarPreferences.js),AddOn(actionText: '&Copy', groupName: Edit, filePath: scripts/Edit/Copy/Copy.js),AddOn(actionText: '&Copy with Reference', groupName: Edit, filePath:
 scripts/Edit/CopyWithReference/CopyWithReference.js),AddOn(actionText: '&Cut', groupName: Edit, filePath: scripts/Edit/Cut/Cut.js),AddOn(actionText: '&Cut with Reference', groupName: Edit, filePath: scripts/Edit/CutWithReference/CutWithReference.js),AddOn(actionText: '&Delete', groupName: Edit, filePath: scripts/Edit/Delete/Delete.js),AddOn(actionText: 'Drawing &Preferences', ..
..
..
..


scripts/Misc/Tutorials/MenusAndToolBars/MenusAndToolBars.js),AddOn(actionText: '', groupName: Tutorials, filePath: scripts/Misc/Tutorials/PersistentWidgets/PersistentWidgets.js),AddOn(actionText: '', groupName: scripts, filePath: scripts/Help/Help.js),AddOn(actionText: '', groupName: Help, filePath: scripts/Help/About/About.js),AddOn(actionText: '', groupName: Help, filePath: scripts/Help/BrowseUserManual/BrowseUserManual.js),AddOn(actionText: '', groupName: Help, filePath: scripts/Help/CheckForUpdates/CheckForUpdates.js),AddOn(actionText: '', groupName: Help, filePath: scripts/Help/FAQ/FAQ.js),AddOn(actionText: '', groupName: Help, filePath: scripts/Help/Forum/Forum.js),AddOn(actionText: '', groupName: Help, filePath: scripts/Help/ReportBug/ReportBug.js),AddOn(actionText: '', groupName: Help, filePath: scripts/Help/ReportTranslationError/ReportTranslationError.js),AddOn(actionText: '', groupName: Help, filePath: scripts/Help/ShowReadme/ShowReadme.js),AddOn(actionText: '', groupName: Help, filePath: scripts/Help/Website/Website.js),AddOn(actionText: '', groupName: ImportExport, filePath: scripts/ImportExport/SvgImporter/SvgImporter.js),AddOn(actionText: '', groupName: lib, filePath: scripts/lib/hull/hull.js),AddOn(actionText: '', groupName: lib, filePath: scripts/lib/sprintf2/sprintf2.js),AddOn(actionText: '', groupName: Navigation, filePath: scripts/Navigation/DefaultNavigation/DefaultNavigation.js),AddOn(actionText: '', groupName: scripts, filePath: scripts/Projection/Projection.js),AddOn(actionText: '', groupName: Projection, filePath: scripts/Projection/IsometricProjection/IsometricProjection.js),AddOn(actionText: '', groupName: IsometricProjection, filePath: scripts/Projection/IsometricProjection/IsoProject/IsoProject.js),AddOn(actionText: '', groupName: Tools, filePath: scripts/Tools/MergeDrawings/MergeDrawings.js), splash = QSplashScreen) at scripts\\autostart.js:385\nmain() at scripts\\autostart.js:630\n<global>() at scripts\\autostart.js:744"
16:18:59: Debug:    "<global>() at 170"
16:18:59: Debug:    counter:  "RAction" :  102
16:18:59: Debug:    counter:  "RGraphicsView" :  1
C:\QCADCAM\QCAD-3.12.18.0\release\qcad.exe exited with code 1

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

Re: QCAD crashed in SplashScreen

Post by andrew » Fri Feb 19, 2016 3:33 pm

Plugin "qcadcustomwidgets" has not been loaded. It makes custom widgets available to be used in Qt Designer .ui form files loaded at runtime.
The DLL has to be in C:\QCADCAM\QCAD-3.12.18.0\plugins\designer, so Qt can find it and load is as designer plugin.

slymn++
Junior Member
Posts: 21
Joined: Tue Feb 16, 2016 8:33 am

Re: QCAD crashed in SplashScreen

Post by slymn++ » Fri Feb 19, 2016 3:55 pm

I succesfuly compiled. But dont see lib files in path (C:\QCADCAM\QCAD-3.12.18.0\plugins\designer)
How Can I do it.

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

Re: QCAD crashed in SplashScreen

Post by andrew » Fri Feb 19, 2016 3:59 pm

The sources for that plugin are in src/customwidgets. Have a look at the .pro file and check if the plugin compiles correctly.

slymn++
Junior Member
Posts: 21
Joined: Tue Feb 16, 2016 8:33 am

Re: QCAD crashed in SplashScreen

Post by slymn++ » Fri Feb 19, 2016 4:10 pm

Yes I see pro files.
But only changes stemmer.pro and dxf.pro
I removed POST_TARGETDEPS. Because I get errors.


#POST_TARGETDEPS += ../../$$ROUTDIR/$${RLIBPRE}stemmer$${RLIBPOST}
#POST_TARGETDEPS += ../../../$$ROUTDIR/$${RLIBPRE}dxflib$${RLIBPOST}

slymn++
Junior Member
Posts: 21
Joined: Tue Feb 16, 2016 8:33 am

Re: QCAD crashed in SplashScreen

Post by slymn++ » Fri Feb 19, 2016 4:22 pm

Hi Andrew

I changed in customwidgets.pro
I used absolute path

#DESTDIR = ../../plugins/designer
DESTDIR = C:/QCADCAM/QCAD-3.12.18.0/plugins/designer

it makes lib file in path

Post Reply

Return to “QCAD Programming, Script Programming and Contributing”