OSL: Windows: OSL not working, external scripts always give error #87481

Closed
opened 2021-04-14 08:30:34 +02:00 by Ilja Razinkov · 12 comments

System Information
Operating system: Win10
Graphics card:

Blender Version
Broken: 2.93.0 Alpha, branch: master, commit date: 2021-04-14 02:19, hash: 6776b74d0a, build date: 2021-04-14, 03:45:42
Worked: 2.91,2.92

Recent 2.93 always gives cryptic errors when trying to compile any OSL script. Scripts are perfectly valid, even simple oneliner cant compile with recent alpha.

Read blend: C:\_WPLabs\Downloads\oslScriptFail.blend
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

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

There was similar reports regarding OSL in Windows - and they was closed as resolved for some cases. But unfortunately the problem still persist in my case //

oslScriptFail.blend
oslScriptFail.osl

2021-04-14_09-23-06.png

**System Information** Operating system: Win10 Graphics card: **Blender Version** Broken: 2.93.0 Alpha, branch: master, commit date: 2021-04-14 02:19, hash: 6776b74d0a67, build date: 2021-04-14, 03:45:42 Worked: 2.91,2.92 Recent 2.93 always gives cryptic errors when trying to compile any OSL script. Scripts are perfectly valid, even simple oneliner cant compile with recent alpha. ``` Read blend: C:\_WPLabs\Downloads\oslScriptFail.blend 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 ``` To reproduce: try to reload script in attached blend and look into console for this error. There was similar reports regarding OSL in Windows - and they was closed as resolved for some cases. But unfortunately the problem still persist in my case // [oslScriptFail.blend](https://archive.blender.org/developer/F9932995/oslScriptFail.blend) [oslScriptFail.osl](https://archive.blender.org/developer/F9932996/oslScriptFail.osl) ![2021-04-14_09-23-06.png](https://archive.blender.org/developer/F9932997/2021-04-14_09-23-06.png)
Author

Added subscriber: @IPv6

Added subscriber: @IPv6
Author

System info: system-info.txt

System info: [system-info.txt](https://archive.blender.org/developer/F9933003/system-info.txt)
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

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

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

This was the bug I think? #86928 (Error: OSL script compilation failed)

If you are building yourself, have you updated your cmake paths?
(moved from ${LIBDIR}/osl/shaders to ${LIBDIR}/osl/share/OSL/shaders)

Please also check if the builds from https://builder.blender.org/download/ work for you.

This was the bug I think? #86928 (Error: OSL script compilation failed) If you are building yourself, have you updated your cmake paths? (moved from ${LIBDIR}/osl/shaders to ${LIBDIR}/osl/share/OSL/shaders) Please also check if the builds from https://builder.blender.org/download/ work for you.
Author

In #87481#1147602, @lichtwerk wrote:
This was the bug I think? #86928 (Error: OSL script compilation failed)

Almost, mine was #87279 (External OSL scripts are not compiled anymore)

If you are building yourself, have you updated your cmake paths?
...
Please also check if the builds from https://builder.blender.org/download/ work for you.

No, i`m not building myself, i had this problem exactly with "builder.blender.org" build :(
I downloaded latest build at the time of reporting (so it was compiled 2021-04-14)

ill try latest betas again, but still... commit/fix mentioned in other tasks - it was already in codebase at the time of download, so i assume it didnt help somehow for me :(

> In #87481#1147602, @lichtwerk wrote: > This was the bug I think? #86928 (Error: OSL script compilation failed) Almost, mine was #87279 (External OSL scripts are not compiled anymore) > If you are building yourself, have you updated your cmake paths? > ... > Please also check if the builds from https://builder.blender.org/download/ work for you. No, i`m not building myself, i had this problem exactly with "builder.blender.org" build :( I downloaded latest build at the time of reporting (so it was compiled 2021-04-14) i`ll try latest betas again, but still... commit/fix mentioned in other tasks - it was already in codebase at the time of download, so i assume it didn`t help somehow for me :(
Author

In #87481#1147602, @lichtwerk wrote:
Please also check if the builds from https://builder.blender.org/download/ work for you.

I tryed both builds from https://builder.blender.org/download/ - and they both not working, same error. See screenshots

2.93.0 beta
2021-04-17_20-44-16.png

3.0.0 alpha
2021-04-17_20-45-17.png

> In #87481#1147602, @lichtwerk wrote: > Please also check if the builds from https://builder.blender.org/download/ work for you. I tryed both builds from https://builder.blender.org/download/ - and they both not working, same error. See screenshots 2.93.0 beta ![2021-04-17_20-44-16.png](https://archive.blender.org/developer/F9937707/2021-04-17_20-44-16.png) 3.0.0 alpha ![2021-04-17_20-45-17.png](https://archive.blender.org/developer/F9937709/2021-04-17_20-45-17.png)
Member

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

Changed status from 'Needs User Info' to: 'Needs Triage'
Ilja Razinkov changed title from OSL: External scripts are not compiled anymore to OSL: Windows: OSL not working, external scripts always give error 2021-04-25 19:32:58 +02:00
Author

Dowbloaded new build to test - still a problem with latest 2.93 beta (from experimenta build) // external OSLs not working

2021-04-29_10-41-46.png

Dowbloaded new build to test - still a problem with latest 2.93 beta (from experimenta build) // external OSLs not working ![2021-04-29_10-41-46.png](https://archive.blender.org/developer/F10045297/2021-04-29_10-41-46.png)
Author

With latest 2.93 OSL compilation is finally working!
So nothing to do, already fixed, thanks a lot :)

With latest 2.93 OSL compilation is finally working! So nothing to do, already fixed, thanks a lot :)
Member

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

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

Glad to hear! Closing then

Glad to hear! Closing then
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#87481
No description provided.