carver Tool: Invoking brush profile results in crash #96206

Open
opened 2022-03-06 21:33:53 +01:00 by osama khaled · 14 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: Quadro K4000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.98

Blender Version
Broken: version: 3.0.1, branch: master, commit date: 2022-01-25 17:19, hash: blender/blender@dc2d180181
Worked: (newest version of Blender that worked as expected)

Short description of error
when i use carver Tool the tool crushed when i click on shortcut (B) to use carver Tool brush

Exact steps for others to reproduce the error

  • open blender
  • set a cube
  • use carver Tool : {key Ctrl Shift X}
  • click on shortcut (B) to use carver Tool brush

Boolean Tool crush.blend

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: Quadro K4000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.98 **Blender Version** Broken: version: 3.0.1, branch: master, commit date: 2022-01-25 17:19, hash: `blender/blender@dc2d180181` Worked: (newest version of Blender that worked as expected) **Short description of error** when i use carver Tool the tool crushed when i click on shortcut (B) to use carver Tool brush **Exact steps for others to reproduce the error** - open blender - set a cube - use carver Tool : {key Ctrl Shift X} - click on shortcut (B) to use carver Tool brush [ Boolean Tool crush.blend](https://archive.blender.org/developer/F12899828/_Boolean_Tool_crush.blend)
Author

Added subscriber: @osama_khaled

Added subscriber: @osama_khaled

#100643 was marked as duplicate of this issue

#100643 was marked as duplicate of this issue
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

This is about the Carver add-on, correct? Does a crash happen or just a failure in the tool as shown in the screenshot? Can you open the console and attach the error that was printed there? Window -> Toggle System Console.
I can't replicate a crash or an error when activating the brush tool.

This is about the Carver add-on, correct? Does a crash happen or just a failure in the tool as shown in the screenshot? Can you open the console and attach the error that was printed there? Window -> Toggle System Console. I can't replicate a crash or an error when activating the brush tool.
osama khaled changed title from Boolean Tool brush crush to carver Tool brush crush 2022-03-07 10:38:50 +01:00
Author

yes carver tool sorry, this i what you ask for

Read prefs: C:\Users\Usama\AppData\Roaming\Blender Foundation\Blender\3.0\config\userpref.blend
Registered Power Sequencer with 74 modules
DEBUG:BlenderGIS-master.core.checkdeps:GDAL Python binding unavailable
DEBUG:BlenderGIS-master.core.checkdeps:PyProj unavailable
DEBUG:BlenderGIS-master.core.checkdeps:Pillow unavailable
DEBUG:BlenderGIS-master.core.checkdeps:ImageIO Freeimage plugin available

POV centric workspace available if you set render option
and save it in default file with CTRL+U

[Carver MT ERROR]

Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\object_carver\carver_operator.py", line 397, in modal
  context.object.modifiers["Solidify"].name = "CT_SOLIDIFY"

KeyError: 'bpy_prop_collection[key]: key "Solidify" not found'
:ي║«ي╗│ي║شي║جي║ù: Operation finished. Failure during Carving (Check the console for more info)

yes carver tool sorry, this i what you ask for Read prefs: C:\Users\Usama\AppData\Roaming\Blender Foundation\Blender\3.0\config\userpref.blend Registered Power Sequencer with 74 modules DEBUG:BlenderGIS-master.core.checkdeps:GDAL Python binding unavailable DEBUG:BlenderGIS-master.core.checkdeps:PyProj unavailable DEBUG:BlenderGIS-master.core.checkdeps:Pillow unavailable DEBUG:BlenderGIS-master.core.checkdeps:ImageIO Freeimage plugin available POV centric workspace available if you set render option and save it in default file with CTRL+U [Carver MT ERROR] Traceback (most recent call last): ``` File "C:\Program Files\Blender Foundation\Blender 3.0\3.0\scripts\addons\object_carver\carver_operator.py", line 397, in modal context.object.modifiers["Solidify"].name = "CT_SOLIDIFY" ``` KeyError: 'bpy_prop_collection[key]: key "Solidify" not found' :ي║«ي╗│ي║شي║جي║ù: Operation finished. Failure during Carving (Check the console for more info)
Member

I still can't replicate the issue. Can you try a more recent Blender build 3.1 or 3.2 and check the issue still exist? https://builder.blender.org/download/daily/
Can you also reset to factory settings and only enable the carver add-on and check if the issue still exists? File > Defaults > Load Factory Settings

I still can't replicate the issue. Can you try a more recent Blender build 3.1 or 3.2 and check the issue still exist? https://builder.blender.org/download/daily/ Can you also reset to factory settings and only enable the carver add-on and check if the issue still exists? File > Defaults > Load Factory Settings
Author

thank you sir, i Load Factory Settings and carver tool brush work

thank you sir, i Load Factory Settings and carver tool brush work
Member

Then my guess is that another add-on or a key binding is interfering with the add-on. Can you find out which add-on might be causing this? Try disabling half of the add-ons, check if the errors happens, if not, enable half of the ones you just disabled and check again, do this until you find the culprit.

Then my guess is that another add-on or a key binding is interfering with the add-on. Can you find out which add-on might be causing this? Try disabling half of the add-ons, check if the errors happens, if not, enable half of the ones you just disabled and check again, do this until you find the culprit.

Added subscriber: @rjg

Added subscriber: @rjg

The carver add-on creates the modifier through bpy.ops.object.modifier_add(type='SOLIDIFY') followed by an attempt to rename it with context.object.modifiers["Solidify"].name = "CT_SOLIDIFY". I'm not sure under which circumstances this would fail as shown in the error message, since either there is no previous solidify modifier on the object, then one is created and should by default have the expected name "Solidify" or if there would already be a modifier with that name, then the newly created one would be called "Solidify.001" and context.object.modifiers["Solidify"] would pick the previously created one.

However, the operator call can be removed entirely by using context.object.modifiers.new("CT_SOLIDIFY", "SOLIDIFY") instead.

The carver add-on creates the modifier through `bpy.ops.object.modifier_add(type='SOLIDIFY')` followed by an attempt to rename it with `context.object.modifiers["Solidify"].name = "CT_SOLIDIFY"`. I'm not sure under which circumstances this would fail as shown in the error message, since either there is no previous solidify modifier on the object, then one is created and should by default have the expected name `"Solidify"` or if there would already be a modifier with that name, then the newly created one would be called "`Solidify.001`" and `context.object.modifiers["Solidify"]` would pick the previously created one. However, the operator call can be removed entirely by using `context.object.modifiers.new("CT_SOLIDIFY", "SOLIDIFY")` instead.
Member

Changed status from 'Needs User Info' to: 'Confirmed'

Changed status from 'Needs User Info' to: 'Confirmed'
Member

I can't replicate the issue still, but I am confirming this because the code can be written in a more robust was as describe by Robert.

I can't replicate the issue still, but I am confirming this because the code can be written in a more robust was as describe by Robert.
Member

Added subscriber: @JamesK2021

Added subscriber: @JamesK2021
Pratik Borhade changed title from carver Tool brush crush to carver Tool: Invoking brush profile results in crash 2022-08-27 08:13:19 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#96206
No description provided.