Wings 3D Development Forum

Full Version: [Fixed] (UTF8 DATA Export)Crashed when export with an data name that contain UTF8
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It seems that saving 3D data fails.
Also,In any case the image file containing utf8 in its name will be saved correctly.


Wavefront(.obj).
3ds max(.3ds).
Collada(.dae).

Wavefront(.obj) case.
This happen when obj file generate.
I could not catch the error here, but perhaps the part of the material name (for .mtl file) needs to be fix as well.

The utf8 chrcode "12394,12395,12363,46,112,110,103" means "なにか.png" (= means something.png in english)
The name for a image item in Outliner.
Code:
wings_wm:821: Dropped Event autosaver: redraw
Using GPU shaders.
Exporter crashed: badarg

[{io,format,
     [<0.100.0>,"~s ~s\r\n",["map_Kd",[12394,12395,12363,46,112,110,103]]],
     []},
{e3d_obj,export_maps,3,[{file,"e3d_obj.erl"},{line,586}]},
{e3d_obj,material,3,[{file,"e3d_obj.erl"},{line,578}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1338}]},
{e3d_obj,materials,3,[{file,"e3d_obj.erl"},{line,561}]},
{e3d_obj,export,3,[{file,"e3d_obj.erl"},{line,447}]},
{wpc_obj,export_1,3,[{file,"wpc_obj.erl"},{line,101}]},
{wings_export,export,4,[{file,"wings_export.erl"},{line,35}]},
{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,73}]},
{wings_plugin,command,3,[{file,"wings_plugin.erl"},{line,139}]},
{wings,raw_command_1,3,[{file,[...]},{line,...}]},
{wings,raw_command,4,[{file,...},{...}]},
{wings_wm,handle_event,3,[{...}|...]},
{wings_wm,send_event,2,[...]},
{wings_wm,do_dispatch,2,...},
{wings_wm,dispatch_event,...},
{wings_wm,...},
{...}]


3ds max(.3ds) case.
The utf8 chrcode "12365,12421,12540,12406" means "きゅーぶ"( = Cube),
The name for a cube primitive in GeometryGraph.
Code:
Exporter crashed: badarg

[{erlang,list_to_binary,
         [[[12365,12421,12540,12406],
           0,
           [<<0,65,106,1,0,0>>,<<96,65,54,0,0,0,0,0,128,...>>]]],
         []},
{e3d_tds,make_chunk,2,[{file,"e3d_tds.erl"},{line,708}]},
{e3d_tds,make_objects,2,[{file,"e3d_tds.erl"},{line,533}]},
{e3d_tds,make_objects,2,[{file,"e3d_tds.erl"},{line,534}]},
{e3d_tds,make_editor,2,[{file,"e3d_tds.erl"},{line,524}]},
{e3d_tds,export,2,[{file,"e3d_tds.erl"},{line,512}]},
{wpc_3ds,export_1,3,[{file,"wpc_3ds.erl"},{line,110}]},
{wings_export,export,4,[{file,"wings_export.erl"},{line,35}]},
{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,73}]},
{wings_plugin,command,3,[{file,"wings_plugin.erl"},{line,139}]},
{wings,raw_command_1,3,[{file,[...]},{line,...}]},
{wings,raw_command,4,[{file,...},{...}]},
{wings_wm,handle_event,3,[{...}|...]},
{wings_wm,send_event,2,[...]},
{wings_wm,do_dispatch,2,...},
{wings_wm,dispatch_event,...},
{wings_wm,...},
{...}]

Collada(.dae) case.
Code:
Exporter crashed: {badmatch,{error,badarg}}
[{wpc_collada,export_1,3,[{file,"wpc_collada.erl"},{line,132}]},
{wings_export,export,4,[{file,"wings_export.erl"},{line,35}]},
{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,73}]},
{wings_plugin,command,3,[{file,"wings_plugin.erl"},{line,139}]},
{wings,raw_command_1,3,[{file,"wings.erl"},{line,624}]},
{wings,raw_command,4,[{file,"wings.erl"},{line,621}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,952}]},
{wings_wm,send_event,2,[{file,"wings_wm.erl"},{line,918}]},
{wings_wm,do_dispatch,2,[{file,"wings_wm.erl"},{line,824}]},
{wings_wm,dispatch_event,1,[{file,"wings_wm.erl"},{line,725}]},
{wings_wm,get_and_dispatch,0,[{file,[...]},{line,...}]},
{wings,init,1,[{file,...},{...}]}]