question

Ciro Cardoso avatar image
Ciro Cardoso asked ·

ERROR - Unable to connect osl() error

Hi,

One of my collegues is having this weird issue. He can connect a bitmap, an image node to the Physical and Standard Shader. He can render and see the preview.

However, when he connects any OSL node to the base colour nothing happens.

No preview and it doesn't render. Computer was restarted, Arnold was updated. We tried on a new scene and nothing. I can open his file on my PC and is fine.

So, we picked the the Simple Tiles OSL node, copy the code, opened an OSL Map. Pasted the code, compile it and still nothing.

We switched to Corona just to double check and it works

So then checked the log and this stands out

[osl] C:\Program Files\Autodesk\<buffer>:1: error: error: could not find include file: C:\Users
athand\AppData\Local\Temp/bc2f-15da-ea72-f926
00:00:00  1463MB WARNING | unable to connect osl() to standard_surface(ba
se_color) - types are not compatible ((null) to RGB)

I also noticed that the Arnold Preview seems to have a watermark. We checked and he is using his autodesk account to use 3ds Max, which is fine.

Any ideas?

errorosl
image1.png (266.6 KiB)
image2.png (223.4 KiB)
image3.png (28.9 KiB)
3 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Arnold Preview with a watermark is unrelated. That won't cause OSL errors

0 Likes 0 · ·
Ciro Cardoso avatar image Ciro Cardoso Stephen Blair ♦♦ ·

For me the thing that is weird, is how an OSL map that was compiled inside 3ds Max, doesn't work at all.


Also that folder bc2f-15da-ea72-f926 doesn't exist.

0 Likes 0 · ·

Do you get that could not find include file for the OSL Bitmap Lookup?


I see that even Zap didn't have an idea (from last year: https://www.facebook.com/groups/stackthis/permalink/839556403057524/ )

0 Likes 0 · ·
Stephen Blair avatar image
Stephen Blair answered ·

@

Can you get a Process Monitor log ? That might show us something.

  • Download Process Monitor and extract it to a folder
    https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx
  • Start Process Monitor
  • Start capturing events (CTRL+E or the magnifying glass icon)
  • Try to render
  • After you get the error, go back to Process Monitor and stop capturing events
  • Filter the log (see this short video (use that general technique for 3dsmax.exe)
    https://www.screencast.com/t/6QeyXiZGsJt)
  • Save the Process Monitor log to a .PML file
  • Zip up the log and send it (or upload to a file sharing site like Dropbox or Google Drive)
16 comments Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

@ I asked him to follow your steps and here is the log

https://we.tl/t-dbnqj0v7h5

Also, just as a side note. His name is Nathan, but Arnold or 3ds Max is trying to create a folder on this

  1.                      
    • C:\Users
    • athand\AppData\Local\Temp/bc2f-15da-ea72-f926

    It should be C:\Users\Nathand and not C:\Usersathand.

0 Likes 0 · ·

@ Looks like some code is evaluating the \N as a line break
3dsmax.exe does write out the file, but then tries to read in the wrong file

kicking an ass file doesn't do that

0 Likes 0 · ·
Ciro Cardoso avatar image Ciro Cardoso Stephen Blair ♦♦ ·

@ Ok, so is there a solution for that? It seems like a bug to me, like the \n needs to be "\n". Or otherwise no user that has a name starting with a N can use OSL shaders. Is this Arnold side or 3ds Max side? The weird bit is how he can still use OSL shaders with Vray or Corona.

0 Likes 0 · ·
Show more comments
Ciro Cardoso avatar image
Ciro Cardoso answered ·

Just tested running 3ds Max as admin and it works. Although it makes no sense how a local user can't write on a local folder.

1 comment Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

@ Especially if the local user account can create files directly.
For example:

dir > %TEMP%\bc2f-15da-ea72-f926 




0 Likes 0 · ·
Stephen Blair avatar image
Stephen Blair answered ·

When you render with an OSL node in 3ds Max, 3dsmax.exe will write a file with a name like

C:\Users\Stephen Blair\AppData\Local\Temp\60cd-a92e-61e8-59c6

The file is deleted automatically.

I would run Process Monitor to see if there's a problem creating that file.


Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.