Wings 3D Development Forum

Full Version: [Fixed] Vertex|Connect shortcut (C) in UV Window crashes Wings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The issue is easy to reproduce.
Create a Cube.
Select one face.
Call RMB|UV Mapping.
In UV Map window, select that face, RMB click, Continue|Unfolding.
Select a pair of edges, hit "3" to divide them in 3 parts.
At this point, user is in Vertex mode (observing the workarea), but in UV Map window Wings seems to remain in Edge mode. It should change to Vertex mode...

Then, click "C" (Vertex | Connect shortcut) and Wings will crash!!!

---------

Dump written 2016-11-24_17-36
Version: 2.1.3
Window: {autouv,1}
Reason: badarg

Short stack trace:
[]

Long stack trace:
[{array,get,2,[{file,"array.erl"},{line,650}]},
{wings_vertex,fold,5,
[{file,"c:/Users/familjen/src/wings/src/wings_vertex.erl"},
{line,49}]},
{wings_edge,from_vs,3,
[{file,"c:/Users/familjen/src/wings/src/wings_edge.erl"},
{line,47}]},
{wings_edge,from_vs,2,
[{file,"c:/Users/familjen/src/wings/src/wings_edge.erl"},
{line,44}]},
{wings_sel_conv,'-conv_sel/3-fun-0-',4,
[{file,"c:/Users/familjen/src/wings/src/wings_sel_conv.erl"},
{line,280}]},
{wings_sel,fold_1,4,
[{file,"c:/Users/familjen/src/wings/src/wings_sel.erl"},
{line,84}]},
{wings_sel_conv,conv_sel,3,
[{file,"c:/Users/familjen/src/wings/src/wings_sel_conv.erl"},
{line,278}]},
{wpc_autouv,update_selection,2,
[{file,"c:/Users/familjen/src/wings/plugins_src/autouv/wpc_autouv.erl"},
{line,1520}]},
{wpc_autouv,update_geom_state,2,
[{file,"c:/Users/familjen/src/wings/plugins_src/autouv/wpc_autouv.erl"},
{line,1416}]},
{wpc_autouv,new_geom_state,2,
[{file,"c:/Users/familjen/src/wings/plugins_src/autouv/wpc_autouv.erl"},
{line,1405}]},
{wings_wm,handle_event,3,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},{line,935}]},
{wings_wm,send_event,2,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},{line,902}]},
{wings_wm,do_dispatch,2,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},{line,808}]},
{wings_wm,dispatch_event,1,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},{line,709}]},
{lists,all,2,[{file,"lists.erl"},{line,1213}]},
{wings_wm,redraw_win,1,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},{line,840}]},
{lists,foreach,2,[{file,"lists.erl"},{line,1338}]},
{wx,foreach,2,[{file,"wx.erl"},{line,197}]},
{wings_wm,redraw_all,0,
[{file,"c:/Users/familjen/src/wings/src/wings_wm.erl"},{line,824}]},
{wings,init,1,
[{file,"c:/Users/familjen/src/wings/src/wings.erl"},{line,143}]}]


-----------------




Simplifying the description.

If, in this order, in UV Map window, user select two edges, divide them by hitting a number and then hit "C" (Connect), Wings crahses.

Just this.
Who can confirm this bug, please?
I can check only tomorrow.
(11-24-2016, 08:51 PM)Fonte Boa Wrote: [ -> ]Create a Cube.
Select one face.
Call RMB|UV Mapping.
In UV Map window, select that face, RMB click, Continue|Unfolding.
Select a pair of edges, hit "3" to divide them in 3 parts.
You did this cut in AutoUV Editor, right?

Quote:At this point, user is in Vertex mode (observing the workarea), but in UV Map window Wings seems to remain in Edge mode. It should change to Vertex mode...
so, that is not true if you use the older versions as 1.5.4. Which these shortcut cannot be used in AutoUV editor. The only ones available was Edit, View and Select menus shortcuts...

Quote:Then, click "C" (Vertex | Connect shortcut) and Wings will crash!!!
... and that is what is causing it crashes in AutoUV window.

Thanks for report the crash.
Exactly this, Micheus.
Any chance to fix this?
I'm looking on the code to see what I can do. Smile