findGtTask causes errors in debug builds · Issue #284 · dlr-gtlab/python-module · GitHub
Skip to content

findGtTask causes errors in debug builds #284

Description

@rainman110

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.)

  • Operating System+version: Linux + Windows
  • GTlab version: 2.0.6
  • GTlab Python Module: 1.6.0

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions