Amaranth add-on generates Python errors due to removal of branched path #92334

Closed
opened 2021-10-19 09:53:26 +02:00 by Johannes Jakob · 16 comments

System Information
Operating system: macOS 11.6 Big Sur
Graphics card: AMD Radeon Pro 560 4 GB

Blender Version
Broken: 3.0, d7b231baa87e, master, 2021-10-18

Short description of error
On macOS – which does not support GPU rendering on AMD graphics cards currently – the render device dropdown menu and the Open Shading Language toggle disappear when selecting “GPU Compute”. Blender has to be relaunched in order to get them back.

Blender_3.0_macOS-Render_Device_Dropdown.mov

**System Information** Operating system: macOS 11.6 Big Sur Graphics card: AMD Radeon Pro 560 4 GB **Blender Version** Broken: 3.0, d7b231baa87e, master, 2021-10-18 **Short description of error** On macOS – which does not support GPU rendering on AMD graphics cards currently – the render device dropdown menu and the Open Shading Language toggle disappear when selecting “GPU Compute”. Blender has to be relaunched in order to get them back. [Blender_3.0_macOS-Render_Device_Dropdown.mov](https://archive.blender.org/developer/F11277701/Blender_3.0_macOS-Render_Device_Dropdown.mov)
Author

Added subscriber: @johjakob-3

Added subscriber: @johjakob-3
Author

The render device dropdown and Open Shading Language toggle can be brought back by undoing the render device selection.

The render device dropdown and Open Shading Language toggle can be brought back by undoing the render device selection.

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

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

It seems to be a very specific problem. I can't replicate it on a Mac M1.

Can you open the blender via the terminal? https://docs.blender.org/manual/en/latest/advanced/command_line/launch/macos.html

The terminal will display some error information that might be useful in this case.

It seems to be a very specific problem. I can't replicate it on a Mac M1. Can you open the blender via the terminal? https://docs.blender.org/manual/en/latest/advanced/command_line/launch/macos.html The terminal will display some error information that might be useful in this case.
Member

Added subscriber: @ankitm

Added subscriber: @ankitm
Member

Can't redo on blender/blender@3e75f70acd, Big Sur, intel either. Try a recent build.
Also, could be some addon.
Try restarting Blender after renaming ~/Library/Application Support/Blender to something else, and if the issue goes away, narrow down the cause by elimination.

Can't redo on blender/blender@3e75f70acd, Big Sur, intel either. Try a recent build. Also, could be some addon. Try restarting Blender after renaming `~/Library/Application Support/Blender` to something else, and if the issue goes away, narrow down the cause by elimination.
Author

In #92334#1240514, @ankitm wrote:
Can't redo on blender/blender@3e75f70acd, Big Sur, intel either. Try a recent build.
Also, could be some addon.
Try restarting Blender after renaming ~/Library/Application Support/Blender to something else, and if the issue goes away, narrow down the cause by elimination.

Yes, you are right. It must be an add-on. I will try to narrow it down by disabling third-party add-ons.

> In #92334#1240514, @ankitm wrote: > Can't redo on blender/blender@3e75f70acd, Big Sur, intel either. Try a recent build. > Also, could be some addon. > Try restarting Blender after renaming `~/Library/Application Support/Blender` to something else, and if the issue goes away, narrow down the cause by elimination. Yes, you are right. It must be an add-on. I will try to narrow it down by disabling third-party add-ons.

Added subscriber: @brecht

Added subscriber: @brecht

Getting the terminal output as requested by @mano-wii would be most useful here.

Getting the terminal output as requested by @mano-wii would be most useful here.
Author

In #92334#1240422, @mano-wii wrote:
It seems to be a very specific problem. I can't replicate it on a Mac M1.

Can you open the blender via the terminal? https://docs.blender.org/manual/en/latest/advanced/command_line/launch/macos.html

The terminal will display some error information that might be useful in this case.

This was my Terminal output when the issue occured:

WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1352 pyrna_enum_to_py: current value '2' matches no enum in 'CyclesPreferences', '(null)', 'compute_device_type'
Traceback (most recent call last):
  File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/modules/bpy_types.py", line 825, in draw_ls
    func(self, context)
  File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/addons/cycles/ui.py", line 2037, in draw_device
    col.active = show_device_active(context)
  File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/addons/cycles/ui.py", line 127, in show_device_active
    return context.preferences.addons[__package__].preferences.has_active_device()
  File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/addons/cycles/properties.py", line 1363, in has_active_device
    return self.get_num_gpu_devices() > 0
  File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/addons/cycles/properties.py", line 1352, in get_num_gpu_devices
    device_list = _cycles.available_devices(self.compute_device_type)
ValueError: Device "" not known.
Traceback (most recent call last):
  File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/modules/bpy_types.py", line 825, in draw_ls
    func(self, context)
  File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/addons/amaranth/render/samples_scene.py", line 107, in render_cycles_scene_samples
    if utils.cycles_exists() and cscene.progressive == "BRANCHED_PATH":
AttributeError: 'CyclesRenderSettings' object has no attribute 'progressive'

I resolved it by disabling and re-enabling the Cycles Render Engine add-on in the preferences. It looks like it was an issue with old Cycles settings maybe (BRANCHED_PATH)?

> In #92334#1240422, @mano-wii wrote: > It seems to be a very specific problem. I can't replicate it on a Mac M1. > > Can you open the blender via the terminal? https://docs.blender.org/manual/en/latest/advanced/command_line/launch/macos.html > > The terminal will display some error information that might be useful in this case. This was my Terminal output when the issue occured: ``` WARN (bpy.rna): source/blender/python/intern/bpy_rna.c:1352 pyrna_enum_to_py: current value '2' matches no enum in 'CyclesPreferences', '(null)', 'compute_device_type' Traceback (most recent call last): File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/modules/bpy_types.py", line 825, in draw_ls func(self, context) File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/addons/cycles/ui.py", line 2037, in draw_device col.active = show_device_active(context) File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/addons/cycles/ui.py", line 127, in show_device_active return context.preferences.addons[__package__].preferences.has_active_device() File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/addons/cycles/properties.py", line 1363, in has_active_device return self.get_num_gpu_devices() > 0 File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/addons/cycles/properties.py", line 1352, in get_num_gpu_devices device_list = _cycles.available_devices(self.compute_device_type) ValueError: Device "" not known. Traceback (most recent call last): File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/modules/bpy_types.py", line 825, in draw_ls func(self, context) File "/Applications/Blender 3.0 Alpha/Blender.app/Contents/Resources/3.0/scripts/addons/amaranth/render/samples_scene.py", line 107, in render_cycles_scene_samples if utils.cycles_exists() and cscene.progressive == "BRANCHED_PATH": AttributeError: 'CyclesRenderSettings' object has no attribute 'progressive' ``` I resolved it by disabling and re-enabling the Cycles Render Engine add-on in the preferences. It looks like it was an issue with old Cycles settings maybe (`BRANCHED_PATH`)?
Brecht Van Lommel changed title from macOS: Render device dropdown disappears when selecting “GPU Compute” to Amaranth add-on generates Python errors due to removal of branched path 2021-10-25 14:16:58 +02:00

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

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

Added subscriber: @pablovazquez

Added subscriber: @pablovazquez

Marking as high priority to ensure it gets fixed for 3.0.

Marking as high priority to ensure it gets fixed for 3.0.

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Brecht Van Lommel self-assigned this 2021-10-28 22:19:52 +02:00

Fixed in bc8c44ea7a.

Fixed in bc8c44ea7a.
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 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#92334
No description provided.