dlr-gtlab / gtlab-core

GTlab Core Framework
https://www.gtlab.de
Other
7 stars 2 forks source link

🐛 [BUG] - GTlabConsole errors with empty task #1233

Closed rainman110 closed 2 months ago

rainman110 commented 3 months ago

Summary

With the new changes from PR #1132, even empty tasks fails to run. An exit code of -1 is returned.

Python calculators keep hanging at the GIL.

A analysis with @real-ct-ac revealed, that the GUI process executor is now used since these changes, which makes problems without a event loop, as several signals are not processed anymore.

Expected Behaviour

No error, an exit code of 0.

Reproduction steps

1. Use current master
2. Create an empty task "Task" 
3. Run console command: GTlabConsole run MyProject Task
4. The command returns an error of -1 or 255 on linux. Also an error message appears, that the calculator could not be executed (even though it is executed).

Screenshots

--

Logs

******************************************
    _____________________      ______
    __  ____/__  __/__  /_____ ___  /_
    _  / __ __  /  __  /_  __ `/_  __ \
    / /_/ / _  /   _  / / /_/ /_  /_/ /
    \____/  /_/    /_/  \__,_/ /_.___/
                                 2.0.6
******************************************

ERROR [17:14:04] [Core] Cannot load library C:\local\GTlab-DevTools_GitLab_MASTER\stable\2_0\bin\modules\TestDatamodelInterface.dll: Die angegebene Prozedur wurde nicht gefunden.
ERROR [17:14:04] [Core] Cannot load library C:\local\GTlab-DevTools_GitLab_MASTER\stable\2_0\bin\modules\GTlabGeometry.dll: Die angegebene Prozedur wurde nicht gefunden.
ERROR [17:14:04] [Core] Failed to extract plugin meta data from 'C:/local/GTlab-DevTools_GitLab_MASTER/stable/2_0/bin/modules/GtmvMeshView.dll'
DEBUG [17:14:04] [module data upgrader] Upgrade available for 'PreDesign (2.0.4)' to version 3.0.0
DEBUG [17:14:04] [module data upgrader] Upgrade available for 'PreDesign (2.0.4)' to version 3.2.0
DEBUG [17:14:04] [module data upgrader] Upgrade available for '_core (1.7.2-0)' to version 2.0.0-alpha.1
TRACE [17:14:04] [IntelliGraph] Initializing nodes...
TRACE [17:14:04] [IntelliGraph] ### Registering Data 'intelli::BoolData'...
TRACE [17:14:04] [IntelliGraph] ### Registering Data 'intelli::ByteArrayData'...
TRACE [17:14:04] [IntelliGraph] ### Registering Data 'intelli::DoubleData'...
TRACE [17:14:04] [IntelliGraph] ### Registering Data 'intelli::IntData'...
TRACE [17:14:04] [IntelliGraph] ### Registering Data 'intelli::IntegerData'...
TRACE [17:14:04] [IntelliGraph] ### Registering Data 'intelli::ObjectData'...
TRACE [17:14:04] [IntelliGraph] ### Registering Data 'intelli::StringData'...
TRACE [17:14:04] [IntelliGraph] ### Registering Data 'intelli::StringListData'...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::Graph' (Category: Other)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::GroupInputProvider' (Category: )...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::GroupOutputProvider' (Category: )...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::NumberDisplayNode' (Category: Number)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::NumberMathNode' (Category: Number)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::NumberSourceNode' (Category: Number)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::SleepyNode' (Category: Number)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::LogicDisplayNode' (Category: Logic)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::LogicNode' (Category: Logic)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::LogicSourceNode' (Category: Logic)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::ObjectMementoNode' (Category: Object)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::ObjectSourceNode' (Category: Object)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::FindDirectChildNode' (Category: Object)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::StringListInputNode' (Category: Input)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::ExistingDirectorySourceNode' (Category: Input)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::BoolInputNode' (Category: Input)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::DoubleInputNode' (Category: Input)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::StringInputNode' (Category: Input)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::ObjectInputNode' (Category: Input)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::IntInputNode' (Category: Input)...
TRACE [17:14:04] [IntelliGraph] ### Registering Node 'intelli::IntInputNode' (Category: Input)...
WARNING :  class already exists!  ( "intelli::IntInputNode)"
DEBUG [17:14:04] [Batch] process run...
DEBUG [17:14:04] [Core] Loading project 'Testing'...
DEBUG [17:14:04] No HDF5 file to backup!
INFO  [17:14:04] [Core] Testing loaded!
DEBUG [17:14:04] [Batch] project opened!
DEBUG [17:14:04] [Exec] Appending Task 'Test' to queue
INFO  [17:14:04] [Exec] ----> Running Task 'Test' (source: Testing) <----
ERROR [17:14:04] [Batch] Calculator run failed!

--- calculator execution ---
starting iteration...
iteration step ( 1 / 1 )
running calculators...
evaluating...
--- calculator execution finished ---

QEventDispatcherWin32::wakeUp: Failed to post a message (Ungültiges Fensterhandle)

C:\local\GTlab-DevTools_GitLab_MASTER\stable\2_0\bin>

GTlab environment

GTlab Version: rev de1ca188544ff0559d57a16cf06b4bd7613ea92f

OS

Windows, Linux