Jump to content

Building Cura (dev version) with MinGW-w64 works, but Cura fails on launch.


umagi

Recommended Posts

Posted (edited) · Building Cura (dev version) with MinGW-w64 works, but Cura fails on launch.

Hi nallath,

What I did was to open a normal Windows Command prompt window, and first set the following path:

 

set PYTHONPATH=G:\dev\cura-build\build\inst\lib\python3.4\site-packages

 

Then, I started:

 

python G:\dev\cura-build\build\inst\bin\cura_app.py

 

This starts Cura (developer version), with splash screen and all, including the crash after selecting the Printer. At the same time the following output was printed in the command window:

 

Microsoft Windows [Version 6.1.7601]Copyright © 2009 Microsoft Corporation.  All rights reserved.G:\dev\cura-build\build\inst\bin>python G:\dev\cura-build\build\inst\bin\cura_app.py2016-03-01 21:24:26,003 - INFO - Loaded plugin ConsoleLogger2016-03-01 21:24:26,043 - INFO - Loaded plugin CuraEngineBackend2016-03-01 21:24:26,043 - WARNING - Plugin ConsoleLogger was already loaded2016-03-01 21:24:26,073 - INFO - Loaded plugin 3MFWriter2016-03-01 21:24:26,083 - INFO - Loaded plugin OBJReader2016-03-01 21:24:26,093 - INFO - Loaded plugin OBJWriter2016-03-01 21:24:26,103 - INFO - Loaded plugin STLReader2016-03-01 21:24:26,113 - INFO - Loaded plugin STLWriter2016-03-01 21:24:26,133 - INFO - Loaded plugin FileLogger2016-03-01 21:24:26,153 - INFO - Loaded plugin LocalFileOutputDevice2016-03-01 21:24:26,173 - INFO - Loaded plugin CameraTool2016-03-01 21:24:26,183 - INFO - Loaded plugin MirrorTool2016-03-01 21:24:26,213 - INFO - Loaded plugin RotateTool2016-03-01 21:24:26,233 - INFO - Loaded plugin ScaleTool2016-03-01 21:24:26,253 - INFO - Loaded plugin SelectionTool2016-03-01 21:24:26,273 - INFO - Loaded plugin TranslateTool2016-03-01 21:24:26,333 - INFO - Checking for new version of cura2016-03-01 21:24:26,333 - INFO - Loaded plugin UpdateChecker2016-03-01 21:24:26,363 - INFO - Loaded plugin SimpleView2016-03-01 21:24:26,383 - INFO - Loaded plugin WireframeView2016-03-01 21:24:26,403 - INFO - Loaded plugin 3MFReader2016-03-01 21:24:26,423 - INFO - Loaded plugin AutoSave2016-03-01 21:24:26,443 - ERROR - Error loading plugin ChangeLogPlugin:2016-03-01 21:24:26,443 - ERROR - invalid literal for int() with base 10: '99-2'2016-03-01 21:24:26,443 - WARNING - Plugin CuraEngineBackend was already loaded2016-03-01 21:24:26,463 - INFO - Loaded plugin CuraProfileReader2016-03-01 21:24:26,483 - INFO - Loaded plugin CuraProfileWriter2016-03-01 21:24:26,513 - INFO - Loaded plugin GCodeProfileReader2016-03-01 21:24:26,533 - INFO - Loaded plugin GCodeWriter2016-03-01 21:24:26,563 - INFO - Loaded plugin ImageReader2016-03-01 21:24:26,583 - INFO - Loaded plugin LayerView2016-03-01 21:24:26,613 - INFO - Loaded plugin LegacyProfileReader2016-03-01 21:24:26,633 - INFO - Loaded plugin PerObjectSettingsTool2016-03-01 21:24:26,673 - INFO - Loaded plugin PostProcessingPlugin2016-03-01 21:24:26,703 - INFO - Loaded plugin RemovableDriveOutputDevice2016-03-01 21:24:26,733 - INFO - Loaded plugin SliceInfoPlugin2016-03-01 21:24:26,763 - INFO - Loaded plugin SolidView2016-03-01 21:24:26,813 - INFO - Loaded plugin USBPrinting2016-03-01 21:24:26,853 - INFO - Loaded plugin XRayView2016-03-01 21:24:26,933 - WARNING - Could not determine application version from string 2.0.99-2.1, not checking for updates2016-03-01 21:24:27,023 - DEBUG - Setting active view to SolidView2016-03-01 21:24:27,843 - DEBUG - Loaded theme G:\dev\cura-build\build\inst\share\cura\resources\themes\curaqml: TableViewSelection: index out of rangeqml: TableViewSelection: index out of rangefile:///G:/dev/cura-build/build/inst/lib/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of nullfile:///G:/dev/cura-build/build/inst/lib/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of nullfile:///G:/dev/cura-build/build/inst/lib/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of nullfile:///G:/dev/cura-build/build/inst/lib/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of nullfile:///G:/dev/cura-build/build/inst/lib/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null2016-03-01 21:24:28,606 - DEBUG - Initialized OpenGL subsystems.2016-03-01 21:24:28,607 - DEBUG - OpenGL Version:  4.5.13399 Compatibility Profile Context 15.200.1062.10042016-03-01 21:24:28,607 - DEBUG - OpenGL Vendor:   ATI Technologies Inc.2016-03-01 21:24:28,608 - DEBUG - OpenGL Renderer: AMD Mobility Radeon HD 5000file:///G:/dev/cura-build/build/inst/share/cura/resources/qml/SidebarSimple.qml:249:22: Unable to assign [undefined] to boolQQmlContext: Cannot set context object on invalid context.QQmlComponent: Cannot create a component in an invalid context2016-03-01 21:24:36,756 - INFO - Started engine process: G:\dev\cura-build\build\inst\bin\CuraEngine.exe2016-03-01 21:24:36,926 - DEBUG - Backend connected on port 49674Requires a valid current OpenGL context.Texture has not been created

 

The error should now be more debuggable, since we have a clear culprit here:

 

qml: TableViewSelection: index out of rangeqml: TableViewSelection: index out of rangefile:///G:/dev/cura-build/build/inst/lib/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of nullfile:///G:/dev/cura-build/build/inst/lib/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of nullfile:///G:/dev/cura-build/build/inst/lib/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of nullfile:///G:/dev/cura-build/build/inst/lib/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of nullfile:///G:/dev/cura-build/build/inst/lib/qml/QtQuick/Controls/Menu.qml:149: TypeError: Cannot read property '__contentItem' of null2016-03-01 21:24:28,606 - DEBUG - Initialized OpenGL subsystems.2016-03-01 21:24:28,607 - DEBUG - OpenGL Version:  4.5.13399 Compatibility Profile Context 15.200.1062.10042016-03-01 21:24:28,607 - DEBUG - OpenGL Vendor:   ATI Technologies Inc.2016-03-01 21:24:28,608 - DEBUG - OpenGL Renderer: AMD Mobility Radeon HD 5000file:///G:/dev/cura-build/build/inst/share/cura/resources/qml/SidebarSimple.qml:249:22: Unable to assign [undefined] to boolQQmlContext: Cannot set context object on invalid context.QQmlComponent: Cannot create a component in an invalid context2016-03-01 21:24:36,756 - INFO - Started engine process: G:\dev\cura-build\build\inst\bin\CuraEngine.exe2016-03-01 21:24:36,926 - DEBUG - Backend connected on port 49674Requires a valid current OpenGL context.Texture has not been created

 

I'm just not sure yet as how to procede with this debugging now, since I know nothing about qml nor Qt.

Edited by Guest
  • Link to post
    Share on other sites

    Posted · Building Cura (dev version) with MinGW-w64 works, but Cura fails on launch.

    I didn't have this much issues in getting it to work on Linux. Windows is always a fickle beast in getting software like this to work.

    But yeah, the issue tinkergnome posted should 'fix' the problem. What i can see from the rest of the logs is that most of the stuff you need did load correctly, so i'm moderately positive that you're almost there ;)

  • Link to post
    Share on other sites

    Posted (edited) · Building Cura (dev version) with MinGW-w64 works, but Cura fails on launch.

    Hi nallath,

     

    But yeah, the issue tinkergnome posted should 'fix' the problem.

     

    I found posts about the issue before and tried the --disable-textures. But that doesn't work in the development version of Cura. Since I don't know how to pass that launch argument, I followed the same procedure as described in another post, i.e. modified the Windows shortcut to the Cura executable and added the  --disable-textures switch there.

    Also note that I successfully built Cura using the Daid script, and that I don't have the crashes with that version. All the posts relating to this crash seem to be from people not using the development version of Cura, which I am referring to here.

     

    What i can see from the rest of the logs is that most of the stuff you need did load correctly, so i'm moderately positive that you're almost there ;)

     

    Well, I don't know. I spent my time setting up a development environment for PyQt (using Eclipse and its PyDev addin) in the hope of debugging the QML problem that apparently causes the crashes. Although I succeeded in running a simple example PyQt program, I still haven't figured out how to debug the Cura GUI in there... Maybe someone has a PyDev Eclipse project to do that already?

    Edited by Guest
  • Link to post
    Share on other sites

    Posted · Building Cura (dev version) with MinGW-w64 works, but Cura fails on launch.

    Hello umagi:

    cmake generate arcus.sln after (includes ALL_BUILD.vcxproj, Arcus.vcxproj, example.vcxproj, INSTALL, PACKAGE.vcxproj, python_module_Arcus.vcxproj, ZERO_CHECK.vcxproj).

    Just build Arcus.vcxproj?

    I tried several other will have a bunch of errors......

    by Cura beginners..

    Thank you!!!

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 26 replies
    ×
    ×
    • Create New...