when running from enmapbox/__main__.py, spectral profile import/export dialogs not working

Issue #738 resolved
Andreas Janz created an issue

Comments (14)

  1. Andreas Janz reporter

    at least on my system, running enmapbox/__main__.py is crashing now:

    Process finished with exit code -1073740940 (0xC0000374)
    

  2. Andreas Janz reporter

    Looks like the crash we observed earlier in the shared screen session, where we tried to use initAll():

    from enmapbox import EnMAPBox, initAll
    from enmapbox.testing import start_app
    
    qgsApp = start_app()
    initAll()
    enmapBox = EnMAPBox(None)
    #enmapBox.openExampleData()
    qgsApp.exec_()
    

    When skipping the initAll(), the Box is starting, but the import/export dialogs aren’t working.

  3. Benjamin Jakimow

    Can you start it from terminal?
    Cam you start it from a clean environment (EnMAP Box Repo only, source folders as described in repo docs)? Please list your environment / sys.path

  4. Andreas Janz reporter

    Ok, I think I can reproduce it, and it is not random as I thought:

    At this point:

    func.name() is “'format_py“, and when evaluating QgsExpression.isFunctionName(func.name()) it chrashes:

  5. Benjamin Jakimow

    Indeed a very good hint. I restructured the registration of QgsExpressionFunctions, for which Python instances have to be stored (of course) and, in this case, got overwritten.

  6. Log in to comment