Freestyle parameter_editor.process crashes Blender if trying to render without any Line Style defined #89774

Open
opened 2021-07-10 13:17:32 +02:00 by Serhiy · 14 comments

Blender Version
2.93.1
(2.93.2 doesn't have any relevant changes in that file though so I don't expect it to be fixed there either)

Short description of error
Freestyle parameter_editor.process crashes Blender if trying to render without any Line Style defined.

Exact steps for others to reproduce the error

  • Open .blend file
  • Enable Properties ‣ Render ‣ Freestyle.

Try rendering an image.

# Blender 2.93.1, Commit date: 2021-06-22 05:57, Hash 1b8d33b18c2f
Python: Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/snap/blender/206/2.93/scripts/freestyle/modules/parameter_editor.py", line 1329, in process
    if linestyle.use_chaining:
AttributeError: 'NoneType' object has no attribute 'use_chaining'

Suggested workaround

A simple solution could be something along the lines of

if linestyle is None:
    return

but I'm not sure if just return is enough there to cleanly stop early. Adding some warning could also be beneficial.

lib_32px.blend
lib_32px.crash.txt

**Blender Version** 2.93.1 (2.93.2 doesn't have any relevant changes in that file though so I don't expect it to be fixed there either) **Short description of error** Freestyle parameter_editor.process crashes Blender if trying to render without any Line Style defined. **Exact steps for others to reproduce the error** - Open .blend file - Enable `Properties ‣ Render ‣ Freestyle`. # Try rendering an image. ``` # Blender 2.93.1, Commit date: 2021-06-22 05:57, Hash 1b8d33b18c2f Python: Traceback (most recent call last): File "<string>", line 1, in <module> File "/snap/blender/206/2.93/scripts/freestyle/modules/parameter_editor.py", line 1329, in process if linestyle.use_chaining: AttributeError: 'NoneType' object has no attribute 'use_chaining' ``` **Suggested workaround** A simple solution could be something along the lines of ``` if linestyle is None: return ``` but I'm not sure if just `return` is enough there to cleanly stop early. Adding some warning could also be beneficial. [lib_32px.blend](https://archive.blender.org/developer/F10236042/lib_32px.blend) [lib_32px.crash.txt](https://archive.blender.org/developer/F10236031/lib_32px.crash.txt)
Author

Added subscriber: @int-ua

Added subscriber: @int-ua
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Can not reproduce here on windows. (2.93.2 9e64fd461a)

Make sure Freestyle Line Style is not defined in Properties ‣ View Layer ‣ Freestyle Line Style

Does that mean to remove line set (from View layer properties tab)?

Can not reproduce here on windows. (2.93.2 `9e64fd461a`) >Make sure Freestyle Line Style is not defined in Properties ‣ View Layer ‣ Freestyle Line Style Does that mean to remove line set (from View layer properties tab)?
Author

In #89774#1190265, @PratikPB2123 wrote:
Does that mean to remove line set (from View layer properties tab)?

Yes, delete it.

> In #89774#1190265, @PratikPB2123 wrote: > Does that mean to remove line set (from View layer properties tab)? Yes, delete it.
Member

Thanks!
I am not able to recreate though with the current master build.


System Information

Graphics card : AMD Radeon(TM) 535 ATI Technologies .```
Thanks! I am not able to recreate though with the current master build. --- **System Information** ```Operating system : Windows-10-10.0.18362-SP0 64 Bits Graphics card : AMD Radeon(TM) 535 ATI Technologies .```
Author

Yes, I cannot reproduce it too. parameter_editor.py didn't change but there were some other changes because it is now impossible to delete just the line style.

Yes, I cannot reproduce it too. `parameter_editor.py` didn't change but there were some other changes because it is now impossible to delete just the line style.
Member

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

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

Yes, I cannot reproduce it too.

Do you mean the issue is fixed? if not then please add a short video to describe the steps

Please confirm if followed steps are correct in the video (not sure why rendered window it is not captured in screen recording)
Blender 2021-07-15 10-15-54.mp4

>Yes, I cannot reproduce it too. Do you mean the issue is fixed? if not then please add a short video to describe the steps Please confirm if followed steps are correct in the video (not sure why rendered window it is not captured in screen recording) [Blender 2021-07-15 10-15-54.mp4](https://archive.blender.org/developer/F10224642/Blender_2021-07-15_10-15-54.mp4)
Author

Yes, it is fixed in master and the steps are correct (because the OP steps are impossible on master), thank you.

Yes, it is fixed in master and the steps are correct (because the OP steps are impossible on master), thank you.
Member

Yes, it is fixed in master and the steps are correct

Thanks for clarifying. Does this still happen with 2.93 recent build (https://builder.blender.org/download/daily)?

>Yes, it is fixed in master and the steps are correct Thanks for clarifying. Does this still happen with 2.93 recent build (https://builder.blender.org/download/daily)?
Member

Does this still happen with 2.93 recent build (https://builder.blender.org/download/daily)?

please check if 2.93 LTS also fixes the issue. Else it needs to be backported.

>Does this still happen with 2.93 recent build (https://builder.blender.org/download/daily)? please check if 2.93 LTS also fixes the issue. Else it needs to be backported.
Author

It's not just the lack of Line Style. I've tried to reproduce it on the default cube file and I can't even on 2.93.1.

I use these files as templates and they have the problem:

https://github.com/int-ua/blender-pixelart/blob/master/lib_32px.blend
https://github.com/int-ua/blender-pixelart/blob/master/template_item_32px.blend

Just enable the Freestyle and try rendering. It crashes both on latest daily build and 2.93.1. I wasn't testing daily with these files previously under false assumption that only removing the line style is enough.

It's not just the lack of Line Style. I've tried to reproduce it on the default cube file and I can't even on 2.93.1. I use these files as templates and they have the problem: https://github.com/int-ua/blender-pixelart/blob/master/lib_32px.blend https://github.com/int-ua/blender-pixelart/blob/master/template_item_32px.blend Just enable the Freestyle and try rendering. It crashes both on latest daily build and 2.93.1. I wasn't testing daily with these files previously under false assumption that only removing the line style is enough.
Member

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

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

Thanks for the file. I can reproduce the crash in 3.0.0 (118803893e) and 2.93.2 (9e64fd461a)
lib_32px.crash.txt

Thanks for the file. I can reproduce the crash in 3.0.0 (`118803893e`) and 2.93.2 (`9e64fd461a`) [lib_32px.crash.txt](https://archive.blender.org/developer/F10236031/lib_32px.crash.txt)
Philipp Oeser added the
Interest
VFX & Video
label 2023-02-10 11:36:37 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 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#89774
No description provided.