OSL: Blender crashes when activating object with OSL material (still) #92645
Labels
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#92645
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: 'macOS-11.6-x86_64-i386-64bit'
Graphics card: 'AMD Radeon Pro 570X OpenGL Engine'
Blender Version
Broken: Blender 3.0.0, Commit date: 2021-10-29 18:17, Hash
fcf1ba18f0
Worked: 2.93
I have an object with some materials with osl scripts.
With latest beta blender constantly crashes when simply activating it (from crash.txt: osl_get_attribute), scrolling in materials pane for a bit and moving viewport
Look at video, corresponding blend and crash log at this report: https://developer.blender.org/T92503
#92503 closed as resolved, but error still present with latest beta (and alpha 310), to the point where blender is unusable with OSL objects (for me at least).
There was always occasional crashes when opening material pane, but now this is instakill for blender somehow //
Added subscriber: @IPv6
Checked latest Alpha and Beta - problem still exist. So something else seems to be going on here //
Last working (for me) - "version: 3.0.0 Alpha, branch: master, commit date: 2021-10-18 21:38, hash:
d7b231baa8
, type: release"according to https://builder.blender.org/download/daily/archive/
Added subscribers: @brecht, @lichtwerk
Changed status from 'Needs Triage' to: 'Confirmed'
Can confirm.
CC @brecht
Added subscriber: @dfelinto
Can confirm crash with file from #92503.
Changed status from 'Confirmed' to: 'Resolved'
Resolved by
f24ad274cb
.@brecht Sorry, but it still crashing for me // In latest beta and 3.1.0 alpha, according to dates commit already incorporated
Just switch to object (mesh, not armature), open material pane and scroll materials list + viewport.
Should i create new bug report?
@brecht i can try to compile Blender and find the points that cause crashes, post result here, will it help?
I understand that may be i overuse OSL (but with good reasons - that probably hard to explain), so majority of other users may never hit that problem... but at least it would be cool to know what features should be avoided for productive use of OSL
@brecht Sorry to bother futher... but i compiled Blender for MacOs and seems to find the problem that cause a crash - "leftovers" in shared struct.
I may create patch if my finding are ok - i understand its a complex thing and side-effects for "simple solutions" possible.
But i rendered some of my scenes with this fix and didn`t see any differences
Or i may create another bug report with proposed solution/fix
Details:
Does it makes sense?
Checked latest Windows Alpha - no crash. so OSL problem with the fix above - is the MacOs-only thing.
On MacOs latest alpha (without fix) - still crashes, with osl_path_state/osl_shadow_path_state fix from the post above - everything ok
Changed status from 'Resolved' to: 'Confirmed'
Thanks for investigating.
This issue was referenced by blender/cycles@fdb63f7223
This issue was referenced by
5f44298280
That fix makes sense, I'll commit it.
Changed status from 'Confirmed' to: 'Resolved'