Community
Arnold for Maya Forum
Rendering with Arnold in Maya using the MtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ERROR - Unable to connect osl() error

23 REPLIES 23
SOLVED
Reply
Message 1 of 24
CiroCardoso3v
1206 Views, 23 Replies

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.

6436-image1.png

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

6437-image2.png

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.

6438-image3.png

Any ideas?

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Tags (2)
Labels (2)
23 REPLIES 23
Message 2 of 24

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



// Stephen Blair
// Arnold Renderer Support
Message 3 of 24

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.

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 4 of 24

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/ )



// Stephen Blair
// Arnold Renderer Support
Message 5 of 24

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.




// Stephen Blair
// Arnold Renderer Support
Message 6 of 24

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.

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 7 of 24

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

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






// Stephen Blair
// Arnold Renderer Support
Message 8 of 24

@

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)


// Stephen Blair
// Arnold Renderer Support
Message 9 of 24

@ 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

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

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

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 10 of 24

@ 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



// Stephen Blair
// Arnold Renderer Support
Message 11 of 24

@ 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.

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 12 of 24

It's not Arnold because I can export an ass file and kick it

Maybe MAXtoA or 3dsmax, I can't tell right now



// Stephen Blair
// Arnold Renderer Support
Message 13 of 24

@ we have another user with a first name starting with N and he is fine.

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 14 of 24

@ What's the Windows user name?

The [osl] log message you posted earlier certainly looks like a line break was inserted.




// Stephen Blair
// Arnold Renderer Support
Message 15 of 24

Nick and the other one is Nathan. Both start with N, but Nick can use OSL shaders with no issue. I checked the Arnold log and no error at all. We also tried to repair 3ds Max. It also happens with Max 2019 and he is using 2020-

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 16 of 24
thiago.ize
in reply to: CiroCardoso3v

Are they both uppercase N user names? \n will be interpreted as a newline, but \N should go through unchanged.

Message 17 of 24
Stephen.Blair
in reply to: thiago.ize

We think it is https://github.com/imageworks/OpenShadingLanguage/issues/866

Fix is either for Arnold to upgrade OSL or workaround the problem



// Stephen Blair
// Arnold Renderer Support
Message 18 of 24
CiroCardoso3v
in reply to: thiago.ize

@ Both are lower case \nathan and \nick

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 19 of 24

There must be a workaround because you can use the same OSL with Corona or Vray. Not sure what they do.

Lead Enviroment Artist @Axis Studios

Arnold Discord Server


Ciro Cardoso

EESignature

Message 20 of 24

They use a newer OSL or they use forward slashes to avoid the bug



// Stephen Blair
// Arnold Renderer Support

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report