External OSL scripts are not compiled anymore #87279

Closed
opened 2021-04-07 22:40:54 +02:00 by Ilja Razinkov · 11 comments

System Information
Operating system: Windows 10

Blender Version
Broken: 2.93.0 Alpha, branch: master, commit date: 2021-04-06 21:02, hash: e0a1a2f49d
Worked: 2.91, 2.92

Recent 2.93 always gives cryptic errors when trying to compile any OSL script:

ERROR: error: C:\_WPLabs\Downloads\oslScriptFail.osl:1:10: warning: non-portable path to file '"c\\_WPLabssProgramsmblender29322.932scriptsraddonsacycles\shader\stdcycles.hd'; specified path differs in case from file name 
on disk
#include "c:\\_WPLabs\\Programs\\blender293\\2.93\\scripts\\addons\\cycles\\shader\\stdcycles.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         "c\\_WPLabssProgramsmblender29322.932scriptsraddonsacycles\shader\stdcycles.hd
Error: OSL script compilation failed, see console for errors

Scripts are perfectly valid, even simple oneliner cant compile with recent alpha.

To reproduce: try to reload script in attached blend and look into console for this error

oslScriptFail.blend
oslScriptFail.osl

2021-04-07_23-32-09.png

**System Information** Operating system: Windows 10 **Blender Version** Broken: 2.93.0 Alpha, branch: master, commit date: 2021-04-06 21:02, hash: e0a1a2f49dab Worked: 2.91, 2.92 Recent 2.93 always gives cryptic errors when trying to compile any OSL script: ``` ERROR: error: C:\_WPLabs\Downloads\oslScriptFail.osl:1:10: warning: non-portable path to file '"c\\_WPLabssProgramsmblender29322.932scriptsraddonsacycles\shader\stdcycles.hd'; specified path differs in case from file name on disk #include "c:\\_WPLabs\\Programs\\blender293\\2.93\\scripts\\addons\\cycles\\shader\\stdcycles.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "c\\_WPLabssProgramsmblender29322.932scriptsraddonsacycles\shader\stdcycles.hd Error: OSL script compilation failed, see console for errors ``` Scripts are perfectly valid, even simple oneliner cant compile with recent alpha. To reproduce: try to reload script in attached blend and look into console for this error [oslScriptFail.blend](https://archive.blender.org/developer/F9923255/oslScriptFail.blend) [oslScriptFail.osl](https://archive.blender.org/developer/F9923256/oslScriptFail.osl) ![2021-04-07_23-32-09.png](https://archive.blender.org/developer/F9923257/2021-04-07_23-32-09.png)
Author

Added subscriber: @IPv6

Added subscriber: @IPv6
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Can confirm, will check.

note I am getting a slightly different error:

ERROR: error: In file included from /08_Bugtracker_reports/T87279/oslScriptFail.osl:1:
/2.93/scripts/addons/cycles/shader/stdcycles.h:31:10: fatal error: 'stdosl.h' file not found
#include "stdosl.h"
         ^~~~~~~~~~
Can confirm, will check. note I am getting a slightly different error: ``` ERROR: error: In file included from /08_Bugtracker_reports/T87279/oslScriptFail.osl:1: /2.93/scripts/addons/cycles/shader/stdcycles.h:31:10: fatal error: 'stdosl.h' file not found #include "stdosl.h" ^~~~~~~~~~ ```
Member

Cant repro here in a local build, but can with the builds from buildbot.
I assume this has to do with the library upgrades in SVN r62577?

Actually, this has been reported before, see #86928 (Error: OSL script compilation failed), will merge these reports.

Cant repro here in a local build, but can with the builds from buildbot. I assume this has to do with the library upgrades in SVN r62577? Actually, this has been reported before, see #86928 (Error: OSL script compilation failed), will merge these reports.
Member

Closed as duplicate of #86928

Closed as duplicate of #86928
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

Hopefully a631a9eb1f solves this for you @IPv6.

What I am wondering about is how c:\\_WPLabs\\Programs\\blender293\\2.93\\scripts\\addons\\cycles\\shader\\stdcycles.h gets changed to c\\_WPLabssProgramsmblender29322.932scriptsraddonsacycles\shader\stdcycles.hd
: gets dropped and 7 \ are replaced with s m 2 2 r a d

Hopefully a631a9eb1f0b solves this for you @IPv6. What I am wondering about is how `c:\\_WPLabs\\Programs\\blender293\\2.93\\scripts\\addons\\cycles\\shader\\stdcycles.h` gets changed to `c\\_WPLabssProgramsmblender29322.932scriptsraddonsacycles\shader\stdcycles.hd` `:` gets dropped and 7 `\` are replaced with `s m 2 2 r a d`
Author

This comment was removed by @IPv6

*This comment was removed by @IPv6*
Author

Sorry, but latest build STILL gives compilation problems. I assume that build already contain commit?

version: 2.93.0 Alpha, branch: master, commit date: 2021-04-10 16:36, hash: ed5507de8a, type: Release

Moreover, Blender hangs when i tryed to compile script // Once. Most of times this gives error (with mistry chops), once it hanged completely

System-info: system-info.txt

2021-04-11_19-41-28.png

oslScriptFail.blend
oslScriptFail.osl

Sorry, but latest build STILL gives compilation problems. I assume that build already contain commit? version: 2.93.0 Alpha, branch: master, commit date: 2021-04-10 16:36, hash: ed5507de8a25, type: Release Moreover, Blender hangs when i tryed to compile script // Once. Most of times this gives error (with mistry chops), once it hanged completely System-info: [system-info.txt](https://archive.blender.org/developer/F9929543/system-info.txt) ![2021-04-11_19-41-28.png](https://archive.blender.org/developer/F9929540/2021-04-11_19-41-28.png) [oslScriptFail.blend](https://archive.blender.org/developer/F9929545/oslScriptFail.blend) [oslScriptFail.osl](https://archive.blender.org/developer/F9929547/oslScriptFail.osl)
Author

It is still not working (latest build from 14 apr)... really wish to switch for 2.93 because of Geometry Nodes, but this problem completely break workflow :(

Should i create another bug report instead of this one?
2021-04-14_09-23-06.png

It is still not working (latest build from 14 apr)... really wish to switch for 2.93 because of Geometry Nodes, but this problem completely break workflow :( Should i create another bug report instead of this one? ![2021-04-14_09-23-06.png](https://archive.blender.org/developer/F9932991/2021-04-14_09-23-06.png)
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
3 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#87279
No description provided.