Page MenuHome

Cycles problem when running from multi-byte path
Closed, ResolvedPublic

Description

System Information
Dell n5050 laptop
Win7 Ultimate
2GB RAM
dual core intel celeron 1.6
graphic intel hd 3000

Blender Version
Broken: 2.77
Past versioins worked well

i cannot enable cycles when i try see attached picture of problem.

Event Timeline

Nemanja (cvex) raised the priority of this task from to 90.
Nemanja (cvex) updated the task description. (Show Details)
Nemanja (cvex) added a project: BF Blender.
Nemanja (cvex) edited a custom field.
Nemanja (cvex) added a subscriber: Nemanja (cvex).
Thomas Dinges (dingto) lowered the priority of this task from 90 to 30.Mar 20 2016, 7:16 PM

Cycles is enabled per default. Please try File -> Load Factory Settings and enable Cycles via the Info Header.

It was enabled but it isn't in info header. And when i import project with cycles settings it just go on blender render there is no cycles.

Is it because mbcs is used not UTF8?
Is it a cause that file path is not encoded?

Oh if you asking me i'm really not sure what you asking i don't really know much of programming so i really cant undrestand...

Sergey Sharybin (sergey) raised the priority of this task from 30 to 50.Mar 22 2016, 7:06 PM

Deveoper note:

While it looks like a regression, masqueraded issue was present in previous releases. It is caused by use of PyUnicode_EncodeFSDefault() to deal with file paths. While it worked fine for single-byte characters it fails for multi-byte ones. So old behavior was simply silent failure and unable of use of CUDA/OSL, new behavior is that Cycles fails to register at all (this seems to be related on internal check that built-in functions does not fail when running python bindings).

Not sure yet what would be the real solution here, but simple fix for upcoming 'a' release wuould be to call PyErr_Clear() if PyUnicode_EncodeFSDefault() fails.

Sergey Sharybin (sergey) renamed this task from Cycles problem to Cycles problem when running from multi-byte path.Mar 22 2016, 7:06 PM