dlr-gtlab / python-module

GTlab Module for embadding Python into GTlab
0 stars 0 forks source link

findGtTask causes errors in debug builds #284

Closed rainman110 closed 4 months ago

rainman110 commented 5 months ago

Summary

Using findGtTask causes an assertion on debug builds.

Which software is probably the cause of the error?

Python Module

What is the current bug behavior?

It is caused by setting the python task as a parent of the newly created task copy, since both objects live in the GUI thread, but setParent is called from the thread pool.

What is the expected correct behavior?

No crash.

Steps to reproduce

  1. Use a debug build of the python module
  2. Create an empty task "test"
  3. Create a python task with the following contents
    task = findGtTask("test")
  4. Run the python task

Relevant logs and/or screenshots

image

GTlab environment

(Add details to your GTlab environment. If the bug relates to a module, please also add the module and its version.)

rainman110 commented 5 months ago

created branch 281-findgttask-causes-errors-in-debug-builds to address this issue

rainman110 commented 5 months ago

mentioned in commit a92e1ee7ee6df0ca099e76c931566d53f5109721