Crashing on geometry generation

Issue #621 new
Shaheer Shah created an issue

I am unable to generate any geometry because the program crashes immediately on geometry generation without giving any output on terminal. I have used the same file last year in flatcam and it worked. cant figure out the problem anyway i tried. operating system is windows10

Comments (15)

  1. Marius Stanciu

    Hello Shaheer,

    What version of Flatcam are you using now, on what OS.
    What version of FlatCAM you used and it worked and on what OS.

    BR,
    Marius

  2. Marius Stanciu

    I can assume that the OS is Win10, say x64, in both cases but still, there is a need for the software version.

  3. Shaheer Shah reporter

    the OS is windows10 64bit. flatcam version is 8.994. I also tried to run it from source so that maybe i can catch some exception errors but I am unable to figure out the dependencies.

  4. Shaheer Shah reporter

    And I used the same version a year ago as well. Can it be the issue with python and other libraries that I might have in python?

  5. Marius Stanciu

    Try to first delete the Preferences files and then launch again the app.

    Steps:
    1. Close the app
    2. Delete the old preferences files. For Windows 10 they are:
    C:\Users\YourUserName\AppData\Roaming\FlatCAM

    3. Delete everything inside this folder
    4. Start again FlatCAM beta 8.994

  6. Shaheer Shah reporter

    I did that but same issue. Also how can i run it from source? i have been trying to do it for hours now. firstly the requirements file is outdated and then i cant find the package win32comext. pip cant find it google cant find the exact thing. please help me in this

  7. Marius Stanciu

    Nothing should be different, between last year and now except perhaps the Preferences files. The installer kit has all the Python files and Python modules and it does not use others.
    Perhaps you should run the program with a different user or run it as Administrator.

    Regarding of running the app from sources, I’ve made a video and posted it on the YouTube channel. The Gohlke’s site is no longer maintained but you should still find most of the packages there:
    https://www.lfd.uci.edu/~gohlke/pythonlibs/

  8. Shaheer Shah reporter

    I have figured it out. somehow the problem is multiple python installations because i tried running it on a vm and it opens up and generates geometry the only problem over there was that the pcb display was all black but it was generating geometry only not showing it. then i tried running it on a fresh installation of windows on another machine and it works fine

  9. Spencer Bentley

    Switch to the 2D legacy drawing option in preferences to get the VM to show the plots, I have the same issue as you. One interesting note is that Oracle Virtual Box has the black display but VMWare VM workstation free edition will display graphics and generate geometry. Interesting that you mention multiple versions of python being the issue, I’ll give that a try on my system.

  10. Shaheer Shah reporter

    Sorry to disappoint but it might not be that. I ended up removing python altogether from my system, but the issue is not resolved. i had python 3.10 and 3.8 because I am a mid level developer. But I have a lot of other installations in this system so something is bothering flatcam.

  11. Spencer Bentley

    Yes, can confirm, actually mine may be slightly different, I can generate geometry but not CNC output, but the failure mode is the same, quit to desktop with no console message, I’ll have a look at it with a Python debug environment and see if I can catch any exceptions that maybe getting redirected to null

  12. Shaheer Shah reporter

    switching to 2d lagacy worked for me in hyper-v. thanks for the input. But i would still like to fix the issue in my windows. I tried running from source by following the youtube video but gdal installation is giving me errors.

  13. Marius Stanciu

    gdal and rasterio are paired so use the ones that are currently (still) on the Gohlke’s site.

  14. Shaheer Shah reporter

    GDAL-3.3.2-cp39 is no longer available on that site so i got 3.3.3, similarly rasterio-1.2.9 no longer available so i got 1.2.10 instead.

  15. Marius Stanciu

    Use the latest, should be ok.

    Like I said, it is important for those two packages to work together and I think rasterio was built against this gdal version.

  16. Log in to comment