Wings 3D Development Forum
(UTF8 Str in Material Name)Wings3 crashed when material name contain UTF8 string - 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: (UTF8 Str in Material Name)Wings3 crashed when material name contain UTF8 string (/showthread.php?tid=2319)



(UTF8 Str in Material Name)Wings3 crashed when material name contain UTF8 string - tkbd - 12-31-2016

I have been continue validating and testing for case that include the UTF8 string in Wings3D data names.
Error occurs in three situations in relation to UTF 8 string.
  • When set a UTF8 name for new Material.
  • When Material rename to a UTF8 name.
  • When AutoUV automatically generate material name from Object name that contain UTF8 code.


When Rename a Material
Code:
Internal Error
Version: 2.1.5
Window: geom
Reason: badarg

Stack trace:
[{erlang,list_to_atom,[[12397,12371]],[]},
{wings_material,rename_1,3,[{file,"wings_material.erl"},{line,141}]},
{wings_dialog,return_result,3,[{file,"wings_dialog.erl"},{line,742}]},
{wings_develop,time_command,2,[{file,"wings_develop.erl"},{line,73}]},
{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,"wings_wm.erl"},{line,646}]},
{wings,init,1,[{file,"wings.erl"},{line,147}]}]

When set an UTF8 name with make a new Material.
Code:
nternal Error
Version: 2.1.5
Window: geom
Reason: badarg

Stack trace:
[{erlang,list_to_atom,[[12354]],[]},
{wings_material,new_material,3,[{file,"wings_material.erl"},{line,97}]},
{wings_develop,time_command,2,[{file,"wings_develop.erl"},{line,73}]},
{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,"wings_wm.erl"},{line,646}]},
{wings,init,1,[{file,"wings.erl"},{line,147}]}]

When generate material(contain UTF8 name) name from UTF8 named Object UV.
The codes 95,97,117 and 118 mean "_auv" part of material name.
Code:
Using GPU shaders.
Internal Error
Version: 2.1.5
Window: {autouv,{segment,3}}
Reason: badarg

Stack trace:
[{erlang,list_to_atom,[[12362,12362,95,97,117,118]],[]},
{wpc_autouv,init_show_maps,4,[{file,"wpc_autouv.erl"},{line,177}]},
{auv_seg_ui,seg_map_charts_1,7,[{file,"auv_seg_ui.erl"},{line,394}]},
{wings_wm,handle_event,3,[{file,"wings_wm.erl"},{line,951}]},
{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,"wings_wm.erl"},{line,646}]},
{wings,init,1,[{file,"wings.erl"},{line,147}]}]



List of the tests which contains utf8 string, so far.
  • File ImportImage, OK
  • Shape RMB menu > Image... , OK
  • Texture Rename, OK
  • ------------
  • Light Rename , OK
  • Object Rename, OK
  • Make a new Folder, OK
  • Folder Rename,OK
  • ------------
  • make External Image,OK
  • make Internal Image,OK
  • export Image, OK
  • File Merge OK
  • ------------
  • SelectionGroup, OK
  • SavedView, OK
  • ------------
  • Save, OK (Includes file path)
  • Load, OK (Includes file path)
  • ------------
  • Make a new Material, NG
  • Material Rename , NG
  • Generate a new Material by AutoUV"xxx_uv",NG
  • SnapImage apply Image,NG