Maniphest T75521

Blender GUI freezes when using activate_init = True
Confirmed, NormalBUG

Assigned To
None
Authored By
Miro Horváth (dreamak)
Apr 8 2020, 10:53 AM
Tags
  • BF Blender
  • User Interface
  • Python API
Subscribers
Germano Cavalcante (mano-wii)
Michael Otto (mayqel)
Miro Horváth (dreamak)

Description

System Information
Operating system: W10 64bit
Graphics card: nVidia GTX 970

Blender Version
Broken: blender-2.83-71b1ee940bb0-windows64

Short description of error
Once this bug https://developer.blender.org/T71112 was fixed I tried to "use activate_init = True" in my addon, but I'm still getting Blender GUI to freeze.

Exact steps for others to reproduce the error

  • Open up and run the script in Text Editor
  • Search for "Name Location" operator and run it
  • Type a text and hit OK. An Empty object is placed into the scene, named by what you typed in, but whole GUI becomes unresponsive.

Revisions and Commits

Event Timeline

Miro Horváth (dreamak) created this task.Apr 8 2020, 10:53 AM
Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.Apr 9 2020, 3:22 PM
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".
Germano Cavalcante (mano-wii) added projects: Add-ons (BF-Blender), User Interface.
Germano Cavalcante (mano-wii) added a subscriber: Germano Cavalcante (mano-wii).

Here it crashed because CTX_wm_region(C) returns:

0x00000290980b3268 {next=0xdddddddddddddddd {next=??? prev=??? v2d={tot={xmin=??? xmax=??? ymin=??? ...} ...} ...} ...}

backtrace:

>	blender.exe!ui_region_find_active_but(ARegion * region) Line 549	C
 	blender.exe!ui_handler_region_menu(bContext * C, const wmEvent * event, void * UNUSED_userdata) Line 10675	C
 	blender.exe!wm_handler_ui_call(bContext * C, wmEventHandler_UI * handler, const wmEvent * event, int always_pass) Line 617	C
 	blender.exe!wm_handlers_do_intern(bContext * C, wmEvent * event, ListBase * handlers) Line 2724	C
 	blender.exe!wm_handlers_do(bContext * C, wmEvent * event, ListBase * handlers) Line 2835	C
 	blender.exe!wm_event_do_handlers(bContext * C) Line 3230	C
 	blender.exe!WM_main(bContext * C) Line 453	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 526	C
 	[External Code]

I think it deserves an investigation.

Campbell Barton (campbellbarton) moved this task from Backlog to Bugs on the Add-ons (BF-Blender) board.Jun 19 2020, 9:22 AM
Campbell Barton (campbellbarton) edited projects, added Python API; removed Add-ons (BF-Blender).
Campbell Barton (campbellbarton) moved this task from Backlog to Bugs (API) on the Python API board.Jun 19 2020, 9:57 AM
Campbell Barton (campbellbarton) moved this task from Bugs (API) to Bugs (UI) on the Python API board.Jun 19 2020, 2:03 PM
Michael Otto (mayqel) added a subscriber: Michael Otto (mayqel).Jun 25 2020, 12:29 PM
Julian Eisel (Severin) moved this task from Backlog to Bugs on the User Interface board.Jun 26 2020, 2:51 PM