Page 1 of 1

[21.2] No errors when compiling failed OSL script

PostPosted: Mon Feb 03, 2020 1:22 am
by grimm
I was trying to get Vectron to work with the old versions of the scripts. I understand that they need to be updated, the issue I'm having is that when the compile fails it doesn't spit out any error messages. When I click on the "Script Node Update" button, I get the following error...

Code: Select all
OSL script compilation failed, see console for errors


So I go to the console (I always run both OctaneServer and Blender in a console) and all I see is this...

Code: Select all
Error:
Error: OSL script compilation failed, see console for errors


It looks like the error is not getting to the console for some reason. Also are we going to get some documentation on Vectron and Spectron at some point? Thanks,

Jason

Re: [21.2] No errors when compiling failed OSL script

PostPosted: Mon Feb 03, 2020 8:31 pm
by ChrisH
Sorry grimm, I have no solution just chiming in to say that I think this needs to be fixed (maybe not high priority, but it can be really annoying when you run into problems with OSL scripts)

The OSL-script handling is a bit lacking in BO, especially if you write your own scripts. Trying to debug in BO is nearly impossible (since it doesn't show any errors.

Sometimes I've had to copy the script to SA, try to compile it there to see the error messages, fix the problem, copy it back to BO and so on.

Re: [21.2] No errors when compiling failed OSL script

PostPosted: Wed Feb 05, 2020 5:04 am
by grimm
Thanks Chris, I didn't think of using SA, very nice. :)

Re: [21.2] No errors when compiling failed OSL script

PostPosted: Fri Feb 07, 2020 11:22 am
by linograndiotoy
Yes, right now debugging in Standalone is the best solution. We'll look into this issue.

Re: [21.2] No errors when compiling failed OSL script

PostPosted: Fri Feb 07, 2020 7:40 pm
by grimm
Thanks Lino. :)

Re: [21.2] No errors when compiling failed OSL script

PostPosted: Sat Feb 08, 2020 10:50 am
by davorin
Apparently this hasn't been fixed by now....

Still see this on the console:

Code: Select all
Error:
Error: OSL script compilation failed, see console for errors



nothing else is shown in the console...

This is with 2020.1.XB3 - 21.3 on Debian 10.2.

Re: [21.2] No errors when compiling failed OSL script

PostPosted: Sat Feb 08, 2020 4:30 pm
by ChrisH
davorin wrote:Apparently this hasn't been fixed by now....


Well.. I's been less than a week since the thread started, and Lino only responded yesterday.
I don't doubt that it will be fixed, maybe even soon, but give the devs some time to do it. :D

Re: [21.2] No errors when compiling failed OSL script

PostPosted: Sat Feb 08, 2020 4:39 pm
by davorin
Oops..missed the thread start date (o;

Well...in SA I can see the console when compiling....but even if it is successful it doesn't mean it won't crash Blender and OctaneServer together (o;

Re: [21.2] No errors when compiling failed OSL script

PostPosted: Tue Feb 11, 2020 10:41 am
by linograndiotoy
If the script works fine in Standalone, it should work in Blender as well.
Please report any script which works fine in Standalone and not in Blender.

Re: [21.2] No errors when compiling failed OSL script

PostPosted: Thu Mar 05, 2020 8:59 am
by DrawFun
Thanks for the reports. We will provide these messages in Blender console in the coming version.

Cheers,
DrawFun