Wings 3D Development Forum
[fixed] YafaRay exporting error - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://www.wings3d.com/forum/forumdisplay.php?fid=12)
+--- Thread: [fixed] YafaRay exporting error (/showthread.php?tid=3015)



[fixed] YafaRay exporting error - tkbd - 05-13-2021

Hi!
I tried some test of Yafaray Plugin in v2.2.7.
And I got Wings3D crash log.
Yafaray XML file was stoped in the middle of exporting..

My test Environment: MacOS 11 , Wings3D v2.2.7
Here is Crash log
Code:
wings-2.2.7
Reading preferences from: /Users/user/Library/Application Support/Wings3D/Preferences.txt
Using OpenCL via gpu:Name Apple:VSN: OpenCL 1.2 (Dec 21 2020 17:26:36)
Exporting  to: /Users/user/Desktop/wpc_yafaray-1540-3V81TQ.xml
for render to: //Users/user/Desktop/untitled.png
Mesh w_text: 春夏秋冬1: triangulating...done
Mesh w_text: 春夏秋冬1: exporting...ERROR: Failed to export:
{'EXIT',{badarg,[{io_lib,format,
                         ["~s    <f a=\"~s\" b=\"~s\" c=\"~s\"~s~s",
                          [[32,32,32,32,60,115,101,116,95,109,97,116,101,114,
                            105,97,108,32,115,118,97,108,61,34,119,95,116,101,
                            120,116,58,32,26149,22799,31179,20908,49,95,97,
                            117,118,34,47,62],
                           "24","29","30",
                           [32,117,118,95,97,61,34,"431",34,32,117,118,95,98,
                            61,34,"477",34,32,117,118,95,99,61,34,"446",34,47,
                            62],
                           []]],
                         [{file,"io_lib.erl"},{line,187}]},
                 {wpc_yafaray,uniprintln,3,
                              [{file,"wpc_yafaray.erl"},{line,5908}]},
                 {wpc_yafaray,export_faces,5,
                              [{file,"wpc_yafaray.erl"},{line,4694}]},
                 {wpc_yafaray,export_object_1,6,
                              [{file,"wpc_yafaray.erl"},{line,4574}]},
                 {wpc_yafaray,'-export/3-fun-2-',4,
                              [{file,"wpc_yafaray.erl"},{line,3190}]},
                 {wpc_yafaray,export,3,[{file,"wpc_yafaray.erl"},{line,3189}]},
                 {wpc_yafaray,'-do_export/4-fun-0-',3,
                              [{file,"wpc_yafaray.erl"},{line,698}]},
                 {wings_export,export,4,[{file,"wings_export.erl"},{line,40}]},
                 {wings_file,'-export_filename_1/2-fun-0-',3,
                             [{file,"wings_file.erl"},{line,97}]},
                 {wings_develop,time_command,2,
                                [{file,"wings_develop.erl"},{line,87}]},
                 {wings_plugin,command,3,
                               [{file,"wings_plugin.erl"},{line,147}]},
                 {wings,raw_command_1,3,[{file,"wings.erl"},{line,646}]},
                 {wings,raw_command,4,[{file,"wings.erl"},{line,643}]},
                 {wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,1032}]},
                 {wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,998}]},
                 {wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,890}]},
                 {wings_wm,dispatch_event,1,
                           [{file,"wings_wm.erl"},{line,799}]},
                 {wings_wm,get_and_dispatch,0,
                           [{file,"wings_wm.erl"},{line,685}]},
                 {wings,init_part2,3,[{file,"wings.erl"},{line,108}]},
                 {proc_lib,init_p_do_apply,3,
                           [{file,"proc_lib.erl"},{line,226}]}]}}
-----------
tkbd


YafaRay exporting error - oort - 05-16-2021

tkbd,
Everything works in Windows. I assume it is a Mac specific bug??? Maybe a Japanese fonts issue???

oort


RE: YafaRay exporting error - micheus - 05-17-2021

Sorry tkbd.
Sometimes the right string formatting to prevent that is missed. Blush

I think now you should not have any other problem with non-latin characters in the exporter. Please apply the patch I made available.


RE: [fixed] YafaRay exporting error - tkbd - 05-18-2021

oort Wrote:Everything works in Windows. I assume it is a Mac specific bug??? Maybe a Japanese fonts issue???
It caused when CJK text it used for a material name.

micheus,Thanks for fix it.
I did applied your patch to Wings,now it works fine! Smile


RE: [fixed] YafaRay exporting error - micheus - 05-18-2021

Thanks for the feedback!