Page MenuHome

Blender crashes when certain functions are called during an application-level timer
Closed, DuplicatePublic

Description

System Information
Operating system: Darwin-18.7.0-x86_64-i386-64bit 64 Bits
Graphics card: Intel HD Graphics 5000 OpenGL Engine Intel Inc. 4.1 INTEL-12.10.12

Blender Version
Broken: version: 2.82 (sub 1), branch: master (modified), commit date: 2019-10-31 23:45, hash: rBc11d3c1b9208
Worked: (optional)

Short description of error
Blender crashes when certain functions are called during an application-level timer.

Exact steps for others to reproduce the error

  1. Switch to the Scripting workspace.
  2. Open the attached script: .
  3. Click on "Run Script".

Blender will crash. Calling the tick() function directly produces the expected behavior, which is to open a popup menu.

Details

Type
Bug

Event Timeline

Philipp Oeser (lichtwerk) lowered the priority of this task from Needs Triage by Developer to Confirmed, Medium.Tue, Nov 5, 10:18 AM

Confirmed, checking...

This has actually been reported before, see T62074: 2.8: Python API: crash due to missing window context in Application timer, will merge these reports...
(note: there is a workaround [calling an operator with custom context] mentioned in that task...)