Crash on double-click to toggle edit mode on some objects

FORUMS FORUMS Creators Hub Blender Sensei Blender Sensei Addons Power Select Power Select Help Crash on double-click to toggle edit mode on some objects

Viewing 6 reply threads
    • #34220

      jamesparker
      Participant
      Up
      0
      ::

      Hello, I’m getting a crash that is repeatable, but I don’t yet fully understand that factors.

      Using power select, I double-click on an object to toggle edit mode. This works correctly on most objects, but sometimes it will throw an error and crash blender. It is only on certain objects, and happens every time to try it on those objects. This has occurred on multiple projects.

      I do not know what the connection is between the objects that cause this is, but it seems to have something to do with power select accessing their name attribute. Here is the error thrown in the crash log:

      bpy.ops.power_select.select_move(key_modifier=””, key_value=”DOUBLE_CLICK”, drag_max=1, use_pressure=False, mx=1712, my=568) # Operator
      Python: Traceback (most recent call last):
      File “C:\Users\james\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\power_select\code\ops.py”, line 721, in invoke
      self.toggle_instance_edit(context)
      File “C:\Users\james\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\power_select\code\ops.py”, line 296, in toggle_instance_edit
      if not obs_instance.name in layer_coll.children:
      AttributeError: ‘NoneType’ object has no attribute ‘name’ # Error
      bpy.ops.power_select.select_move(key_modifier=””, key_value=”DOUBLE_CLICK”, drag_max=1, use_pressure=False, mx=1712, my=568) # Operator

      # backtrace
      Exception Record:

      ExceptionCode : EXCEPTION_ACCESS_VIOLATION
      Exception Address : 0x00007FF95D6376A3
      Exception Module : tbbmalloc.dll
      Exception Flags : 0x00000000
      Exception Parameters : 0x2
      Parameters[0] : 0x0000000000000001
      Parameters[1] : 0x0000000000000010

      I’ve attached a .blend file where this occurs. To repeat, use power select double-click to toggle edit mode on the mesh named “Plane_of_Symetry” at the feet of the figure.

      Let me know if you can’t repeat it with that file, that would give me some insight too.

      Thanks,
      -James

    • #34221

      Blender Sensei
      Keymaster
      Up
      0
      ::

      Hi. The blend file didn’t show up. Could you try posting it again? You may need to wait a minute after pressing “Post Reply” for the file to finish uploading. What is the name of the blend file (I want to see if it uploaded it to the site but had trouble fetching the file or something)? Is the object you’re double-clicking to edit a collection instance such as a collection dropped as an instance from the asset browser?

    • #34223

      Blender Sensei
      Keymaster
      Up
      0
      ::

      Also, are you using the latest version of Power Select? It’s 3.5 You can always see what the latest version of any Sensei addon in the blendersensei.com docs section https://blendersensei.com/docs/power-select This version number indicates the available addon file on all other market places as well.

    • #34226

      jamesparker
      Participant
      Up
      0
      ::

      Apologies, I tried editing the first post to re-upload, and waited a while. I don’t think it worked. I’ll try attaching it to this post as well but if that fails here is a drive link to the file: Robot.blend

      You did lead me to find something though. Looking in the object properties, the instancing mode of the object was set to “Faces”. When it is set to “None” the crash no longer occurs. So yes, it’s possible that the object was displaying an instance of itself which shows as type “None” and causes the crash.

      I am using the latest (3.5) version of power-select, as well as Blender (3.4, also tried 3.3). The crash still occurs on a fresh install of 3.4 with no other addons active.

      Edit: It is repeatable if you create any new mesh, set the instancing mode to “Vertices” or “Faces” and toggle edit mode through power select double-click.

    • #34235

      Blender Sensei
      Keymaster
      Up
      0
      ::

      Great! Was able to repeat the bug. Should have the fix out soon (hopefully before the end of the day).

    • #34236

      Blender Sensei
      Keymaster
      Up
      0
      ::

      Hi. Just letting you know the fixed 3.6 version is out now.

    • #34237

      jamesparker
      Participant
      Up
      0
      ::

      Awesome! Thanks so much, that fixed it!
      I appreciate you working on that so quickly!
      …I feel special for getting a whole update just for my bug XD

      I’m fairly early in my programming journey, so I’m curious to know what the fix ended up being.
      If it’s not too complicated to explain could you tell me what you did to fix it?

Viewing 6 reply threads