Beta versions crashing on startup on Windows10

Issue #349 new
Robert created an issue

Hi,

I installed latest betas on my Windows10 machine and on startup, they all crash. This holds for the x64 AND the x86 version provided, and occurs also when started from source. I tried beta 3.98, beta 3.99 and the latest version in the beta branch.
Nevertheless, on another machine, also Win10, everything works fine. Also on OS X the same source is working.

See the screenshot attached, it shows Flatcam crashing when starting from source. Python version is 3.7.5, the popup states, that the python stopped working.

What can I do?

Comments (24)

  1. Marius Stanciu

    Also try to edit the line:

    "global_graphic_engine": "3D",
    to:
    "global_graphic_engine": "2D",

    in the current_defaults.FlatConfig file that for Windows can be found in the folder:
    C:\Users\___YOUR_USERNAME____\AppData\Roaming\FlatCAM

    Save the file and relaunch the app.

  2. Robert reporter

    Good morning,

    I tried both, delete the default files → app crashes, change to 2D → app starts flawlessly. So there might be something wrong with my OpenGL?

    Thanks

  3. Marius Stanciu

    Hi Robert,

    Can you please tell what kind of graphic card (integrated or not) you have on the PC’s that are not launching FlatCAM in OpenGL mode? Also, can you uninstall the graphic drivers and install them again?

  4. Robert reporter

    Hi,

    I have an integrated card: Intel HD 530, with driver version 25.20.100.6323. I cannot uninstall nor can I upgrade because I do not have the rights to do it here on my workplace. Also, at the moment I am on Windows build 1607 (Windows 10 LTSB) and this is the latest driver for this build.

    Thanks

  5. Marius Stanciu

    That’s weird since at work I am running it on a Intel HD520 + Radeon R7 M360 combo. I just looked and GPU0 ( therefore HD520) is the one who is running beta 8.99.
    Can you try to run an older version (from sources)? Like 8.93 … it uses an older version of VisPy.

  6. Marius Stanciu

    You need to delete the defaults value first as the newer one can’t be processed by the older FlatCAM.

  7. Marius Stanciu

    In that case something on your PC (either HW or SW) is not compatible with the VisPy module (or with the way it is configured in FlatCAM) for which there is nothing I can do. I am sorry!

  8. Marius Stanciu

    Robert,

    Try to uninstall the PyQt5 package and install an older PyQt5 package: 5.12.0. It might solve the issue:

    pip install pyqt==5.12.0
    

  9. Marius Stanciu

    Hi Robert,
    Can you help me by running the latest commit from Beta on a computer on which FlatCAM beta is not working in OpenGL mode? I introduced some messages to help the user understand what it is the reason and hoping to not see the crash. Can you confirm that the application will start and a message in the Shell window will warn you about the issue?
    Thanks!
    Marius

  10. Robert reporter

    Hi, I ran the latest commit and see the same behaviour as before. Here are the messages flatcam emits:

  11. Marius Stanciu

    Hi,
    Can you try the latest commit? I’ve added some prints so I can know where it crash in the initialization and to see if there is anything I can do. Please post a screenshot like the one above. Thanks!

  12. Marius Stanciu

    It’s hard to do debugging like this but try the latest commit on Beta branch. I am trying to narrow down exactly where the code breaks in your setup.
    If it was possible that you can run a debugger that would have made the job much easier, but any way, if possible run the latest commit and post the screenshot here.
    Thanks!

  13. Robert reporter
    PS C:\Users\roh14dqe\Desktop\flatcam> python .\FlatCAM.py
    Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
    [INFO][MainThread] FlatCAM Starting...
    [DEBUG][MainThread] Win64!
    [DEBUG][MainThread] Application path is C:\Users\roh14dqe\Desktop\flatcam
    [DEBUG][MainThread] Started in C:\Users\roh14dqe\Desktop\flatcam
    [DEBUG][MainThread] FlatCAM defaults loaded from: current_defaults
    [DEBUG][MainThread] FlatCAMGUI.__init__() --> UI state restored.
    [DEBUG][MainThread] FlatCAMGUI.__init__() --> UI layout restored from QSettings.
    [DEBUG][MainThread] App.__init__() --> Applied English language.
    [DEBUG][MainThread] Finished Preferences GUI form initialization.
    [DEBUG][MainThread] Finished creating Object Collection.
    [DEBUG][MainThread] Setting up canvas: 3D
    vp_1
    

    😕

  14. Marius Stanciu

    Well, I can say for sure now that it is not the implementation in FlatCAM that creates the crash but rather some software conflict that makes the VisPy package to crash.

    I’m 100% sure that Intel HD530 should work since HD520 is working on one of my PC’s therefore is should be something regarding the drivers.
    I would love to make the crash happen on a PC I own because this way I can implement a failsafe solution like falling to the low-performance Legacy graphic mode. I will search to see if I can find an old computer around.

  15. Roberto Lopez Santoro

    Dear Mr
    I have the Flatcam Beta installed from FlatCAM_beta_8.993_x64_installer, on a PC with W10 and a GeForce 7025 / nForce 630a video card, with an Nvidia 309.08 driver. The program starts and displays a blank screen like the screenshot I attached. Can you help me ?. Thanks

  16. Marius Stanciu

    Hi Roberto,

    It’s hard to debug something like this. Which drivers/graphic cards work, which do not.
    For you it seems the only option is to run the program in 2D (legacy mode).

    After launching the program, when the Splash screen appear, press CTRL key and keep it pressed until the app starts.

    Best regards,
    Marius

    PS: I would also try to install it in a Windows 10 virtual machine (Vmware). If it works please let me know.

    LE: very important: make sure the app is using the dedicated graphic card and not the integrated controller. In WIndows you can right click the FlatCAM shortcut and you should see a menu entry with something like Run with Graphic processor. Select your dedicated graphic card. Try this first.

  17. Roberto Lopez Santoro

    Thank you Marius. Yes. With the Ctrl key pressed the program work in 2D. But i did try https://nvidia.custhelp.com/app/answers/detail/a_id/5035/~/run-with-graphics-processor-missing-from-context-menu%3A-change-in-process-of#:~:text=There%20is%20no%20longer%20a,was%20in%20previous%20OS%20versions.

    And set the Graphics Preference in High Performance for my GPU and it work. Thank you so much. Roberto

    El jue., 16 jul. 2020 a las 11:15, Marius Stanciu (<

  18. Log in to comment