Wings 3D Development Forum
[fixed] Problem with wxWindow? - 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] Problem with wxWindow? (/showthread.php?tid=3093)



[fixed] Problem with wxWindow? - markie - 03-22-2023

There is an issue when if you open "AutoUV" window, then right click, to open pop-up with different segmentation options, and then close "AutoUV" window, while pop-up is still open, it crashes.
I applied "wings_menu.beam" patch, and this problem still there, but happens on random occasions. Now, after applying patch, there is another problem with all pop-up menus, they go outside of the screen. So I have to click at the very top of the geometry window for the whole list to be in view.

Log of the crash when it happens, with "wings_menu.beam" patch:

Code:
wings-2.2.9
Reading preferences from: c:/Users/vnl/AppData/Roaming/Wings3D/Preferences.txt
Using OpenCL via gpu:Name AMD Accelerated Parallel Processing:VSN: OpenCL 2.1 AMD-APP (2841.19)
CRASH {{badarg,"This"},{wxWindow,setForegroundColour,2}} [{wxe_util,rec,1,
                                                           [{file,
                                                             "wxe_util.erl"},
                                                            {line,110}]},
                                                          {wings_menu,
                                                           '-setup_colors/3-lc$^1/1-1-',
                                                           2,
                                                           [{file,
                                                             "wings_menu.erl"},
                                                            {line,685}]},
                                                          {wings_menu,
                                                           setup_colors,3,
                                                           [{file,
                                                             "wings_menu.erl"},
                                                            {line,685}]},
                                                          {wings_menu,
                                                           setup_colors,3,
                                                           [{file,
                                                             "wings_menu.erl"},
                                                            {line,691}]},
                                                          {wings_menu,
                                                           popup_events,5,
                                                           [{file,
                                                             "wings_menu.erl"},
                                                            {line,403}]},
                                                          {wings_menu,
                                                           '-wx_popup_menu/6-fun-3-',
                                                           7,
                                                           [{file,
                                                             "wings_menu.erl"},
                                                            {line,194}]}]

Another log of the crash without any patches (this one is consistent):
1. create cube and select it
2. right click -> UV Mapping
3. right click, then close "AutoUV Segmenting" window, while pop-up still open.

Code:
wings-2.2.9
Reading preferences from: c:/Users/vnl/AppData/Roaming/Wings3D/Preferences.txt
Using OpenCL via gpu:Name AMD Accelerated Parallel Processing:VSN: OpenCL 2.1 AMD-APP (2841.19)
CRASH {{badarg,"This"},{wxWindow,setForegroundColour,2}} [{wxe_util,rec,1,
                                                           [{file,
                                                             "wxe_util.erl"},
                                                            {line,110}]},
                                                          {wings_menu,
                                                           '-setup_colors/3-lc$^1/1-1-',
                                                           2,
                                                           [{file,
                                                             "wings_menu.erl"},
                                                            {line,704}]},
                                                          {wings_menu,
                                                           setup_colors,3,
                                                           [{file,
                                                             "wings_menu.erl"},
                                                            {line,704}]},
                                                          {wings_menu,
                                                           setup_colors,3,
                                                           [{file,
                                                             "wings_menu.erl"},
                                                            {line,710}]},
                                                          {wings_menu,
                                                           popup_events,5,
                                                           [{file,
                                                             "wings_menu.erl"},
                                                            {line,405}]},
                                                          {wings_menu,
                                                           '-wx_popup_menu/6-fun-3-',
                                                           7,
                                                           [{file,
                                                             "wings_menu.erl"},
                                                            {line,194}]}]



RE: Problem with wxWindow? - micheus - 03-23-2023

Quote:There is an issue when if you open "AutoUV" window, then right click, to open pop-up with different segmentation options, and then close "AutoUV" window, while pop-up is still open, it crashes.
That is some of those case we may never face the bug. It's an unusual procedure. Smile

Thanks for report it.


RE: [fixed] Problem with wxWindow? - micheus - 05-02-2023

Fix in the next release.