Wings 3D Development Forum
[Fixed] Wings3D 2.0.2 crashed when Ambient Occlusion - 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] Wings3D 2.0.2 crashed when Ambient Occlusion (/showthread.php?tid=1532)



[Fixed] Wings3D 2.0.2 crashed when Ambient Occlusion - tkbd - 01-17-2016

The bug which has confirmed the reproducibility.

For example.
  1. Make a Grid object (and an ambient light).
  2. Select the Grid and the ambient light by geometrygraph parette.
  3. Apply Ambient occulsion command.
  4. Then,Wings3D crashed and opened Apple's error report dialog (I couldn't got wings_crash.dump )
Code:
Process:               beam.smp [608]
Path:                  /Applications/Wings3D 2.0.2.app/Contents/Resources/bin/beam.smp
Identifier:            com.wings3d.wings3d
Version:               1.5 (0.1)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           beam.smp [608]
User ID:               501

Date/Time:             2016-01-18 06:35:16.784 +0900
OS Version:            Mac OS X 10.11.2 (15C50)
Report Version:        11

Time Awake Since Boot: 2400 seconds
System Integrity Protection: enabled
Crashed Thread:        0  Dispatch queue: com.apple.main-thread
Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY
VM Regions Near 0:
-->
    __TEXT                 0000000012d8f000-0000000012fa7000 [ 2144K] r-x/rwx SM=COW  /Applications/Wings3D 2.0.2.app/Contents/Resources/bin/beam.smp

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   GLEngine                          0x00007fff97dca45c gleRunVertexSubmitImmediate + 8300
1   GLEngine                          0x00007fff97d403b4 glDrawArrays_ACC_Exec + 812
2   erl_gl.so                         0x000000001ca49fcc egl_dispatch + 10748
3   wxe_driver.so                     0x000000001510a3b7 gl_dispatch(int, char*, unsigned long, wxe_bin_ref*) + 295
4   wxe_driver.so                     0x000000001510350a WxeApp::dispatch(wxeFifo*) + 250
5   wxe_driver.so                     0x0000000015103070 WxeApp::dispatch_cmds() + 48
6   wxe_driver.so                     0x00000000155f3639 wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 185
7   wxe_driver.so                     0x00000000155f33ab wxEvtHandler::ProcessEventLocally(wxEvent&) + 59
8   wxe_driver.so                     0x00000000155f32be wxEvtHandler::ProcessEvent(wxEvent&) + 190
9   wxe_driver.so                     0x000000001551463d wxAppConsoleBase::ProcessIdle() + 77
10  wxe_driver.so                     0x00000000153c1496 wxAppBase::ProcessIdle() + 22
11  wxe_driver.so                     0x000000001534e2aa wxApp::ProcessIdle() + 26
12  wxe_driver.so                     0x000000001554791c wxEventLoopBase::ProcessIdle() + 28
13  wxe_driver.so                     0x00000000155d1a37 wxCFEventLoop::OSXCommonModeObserverCallBack(__CFRunLoopObserver*, int, void*) + 87
14  com.apple.CoreFoundation          0x00007fff923dde37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
15  com.apple.CoreFoundation          0x00007fff923ddda7 __CFRunLoopDoObservers + 391
16  com.apple.CoreFoundation          0x00007fff923cfa3a __CFRunLoopRun + 1178
17  com.apple.CoreFoundation          0x00007fff923cf338 CFRunLoopRunSpecific + 296
18  com.apple.HIToolbox               0x00007fff9b8a0935 RunCurrentEventLoopInMode + 235
19  com.apple.HIToolbox               0x00007fff9b8a076f ReceiveNextEventCommon + 432
20  com.apple.HIToolbox               0x00007fff9b8a05af _BlockUntilNextEventMatchingListInModeWithFilter + 71
21  com.apple.AppKit                  0x00007fff932290ee _DPSNextEvent + 1067
22  com.apple.AppKit                  0x00007fff935f5943 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
23  com.apple.AppKit                  0x00007fff9321efc8 -[NSApplication run] + 682
24  wxe_driver.so                     0x000000001539cd7e wxGUIEventLoop::OSXDoRun() + 110
25  wxe_driver.so                     0x00000000155d2354 wxCFEventLoop::DoRun() + 52
26  wxe_driver.so                     0x00000000155477e5 wxEventLoopBase::Run() + 165
27  wxe_driver.so                     0x00000000155143c1 wxAppConsoleBase::MainLoop() + 209
28  wxe_driver.so                     0x000000001534e2fa wxApp::OnRun() + 26
29  wxe_driver.so                     0x000000001557a497 wxEntry(int&, wchar_t**) + 71
30  wxe_driver.so                     0x0000000015101912 wxe_main_loop(void*) + 82
31  beam.smp                          0x0000000012ee34c4 erts_sys_main_thread + 276
32  beam.smp                          0x0000000012dddd58 erl_start + 7352

It happened by the procedure as similar.
This occurred when it was making a more complex object.
Unfortunately, this could not be reproduced...

Code:
Process:               beam.smp [499]
Path:                  /Applications/Wings3D 2.0.2.app/Contents/Resources/bin/beam.smp
Identifier:            com.wings3d.wings3d
Version:               1.5 (0.1)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           beam.smp [499]
User ID:               501

Date/Time:             2016-01-18 06:18:08.928 +0900
OS Version:            Mac OS X 10.11.2 (15C50)
Report Version:        11

Time Awake Since Boot: 1400 seconds
Crashed Thread:        0  Dispatch queue: com.apple.main-thread
Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000000000003b970
Exception Note:        EXC_CORPSE_NOTIFY
VM Regions Near 0x3b970:
-->
    __TEXT                 000000001209f000-00000000122b7000 [ 2144K] r-x/rwx SM=COW  /Applications/Wings3D 2.0.2.app/Contents/Resources/bin/beam.smp

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   GLEngine                          0x00007fff97dca45c gleRunVertexSubmitImmediate + 8300
1   GLEngine                          0x00007fff97d403b4 glDrawArrays_ACC_Exec + 812
2   erl_gl.so                         0x000000001bdbbfcc egl_dispatch + 10748
3   wxe_driver.so                     0x000000001448a3b7 gl_dispatch(int, char*, unsigned long, wxe_bin_ref*) + 295
4   wxe_driver.so                     0x000000001448350a WxeApp::dispatch(wxeFifo*) + 250
5   wxe_driver.so                     0x0000000014483070 WxeApp::dispatch_cmds() + 48
6   wxe_driver.so                     0x000000001453c8b2 sendevent(wxEvent*, unsigned long) + 6946
7   wxe_driver.so                     0x0000000014973639 wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 185
8   wxe_driver.so                     0x00000000149733ab wxEvtHandler::ProcessEventLocally(wxEvent&) + 59
9   wxe_driver.so                     0x00000000149732be wxEvtHandler::ProcessEvent(wxEvent&) + 190
10  wxe_driver.so                     0x00000000149736df wxEvtHandler::SafelyProcessEvent(wxEvent&) + 15
11  wxe_driver.so                     0x000000001473b660 wxWidgetCocoaImpl::DoHandleMouseEvent(NSEvent*) + 80
12  wxe_driver.so                     0x0000000014737909 wxWidgetCocoaImpl::mouseEvent(NSEvent*, NSView*, void*) + 169
13  com.apple.AppKit                  0x00007fff933820c9 -[NSTrackingArea mouseMoved:] + 152
14  com.apple.AppKit                  0x00007fff93996525 -[NSWindow _handleMouseMovedEvent:] + 266
15  com.apple.AppKit                  0x00007fff93997715 -[NSWindow _reallySendEvent:isDelayedEvent:] + 2108
16  com.apple.AppKit                  0x00007fff932ef735 -[NSWindow sendEvent:] + 517
17  wxe_driver.so                     0x00000000147266e3 -[wxNSWindow sendEvent:] + 131
18  com.apple.AppKit                  0x00007fff932eb8ec -[NSApplication sendEvent:] + 1167
19  wxe_driver.so                     0x000000001468aa48 -[wxNSApplication sendEvent:] + 136
20  com.apple.AppKit                  0x00007fff9321f03a -[NSApplication run] + 796
21  wxe_driver.so                     0x000000001471cd7e wxGUIEventLoop::OSXDoRun() + 110
22  wxe_driver.so                     0x0000000014952354 wxCFEventLoop::DoRun() + 52
23  wxe_driver.so                     0x00000000148c77e5 wxEventLoopBase::Run() + 165
24  wxe_driver.so                     0x00000000148943c1 wxAppConsoleBase::MainLoop() + 209
25  wxe_driver.so                     0x00000000146ce2fa wxApp::OnRun() + 26
26  wxe_driver.so                     0x00000000148fa497 wxEntry(int&, wchar_t**) + 71
27  wxe_driver.so                     0x0000000014481912 wxe_main_loop(void*) + 82
28  beam.smp                          0x00000000121f34c4 erts_sys_main_thread + 276
29  beam.smp                          0x00000000120edd58 erl_start + 7352

VM Region Summary:
ReadOnly portion of Libraries: Total=318.0M resident=0K(0%) swapped_out_or_unallocated=318.0M(100%)
Writable regions: Total=305.6M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=305.6M(100%)

Code:
VIRTUAL   REGION
REGION TYPE                        SIZE    COUNT (non-coalesced)
===========                     =======  =======
Accelerate.framework               256K        3
Activity Tracing                  2048K        2
CG backing stores                 8888K        9
CG image                          1156K       49
CG shared images                   432K       14
CoreAnimation                      448K       91
CoreUI image data                 2604K       35
CoreUI image file                  544K       10
Dispatch continuations            8192K        2
Foundation                          32K        3
Image IO                             4K        2
Kernel Alloc Once                    8K        3
MALLOC                           145.8M       99
MALLOC guard page                   32K        7
MALLOC_LARGE (reserved)            528K        5         reserved VM address space (unallocated)
Memory Tag 242                      12K        2
OpenCL                              68K       10
OpenGL GLSL                        256K        4
Process Corpse Info               2048K        2
STACK GUARD                       56.1M       26
Stack                             23.3M       32
VM_ALLOCATE                       94.4M       68
__DATA                            31.2M      295
__GLSLBUILTINS                    2588K        2
__IMAGE                            528K        2
__LINKEDIT                        97.4M       19
__TEXT                           220.7M      302
__UNICODE                          552K        2
mapped file                      124.5M       58
shared memory                     16.4M       12
===========                     =======  =======
TOTAL                            840.3M     1140
TOTAL, minus reserved VM space   839.8M     1140

Model: Macmini7,1, 2 processors, Intel Core i5, 2.8 GHz, 8 GB,
Graphics: Intel Iris, Intel Iris, Built-In
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz

--------------
tkbd


RE: OSX,Wings3D 2.0.2 crashed when Ambient occulsion apply to an object and ambient light - dgud - 06-10-2016

Should be fixed and be available in the next release.


RE: [Fixed] Wings3D 2.0.2 crashed when Ambient Occlusion - tkbd - 06-11-2016

dgud,Thank you examination for various bugfix.
I can't wait to the next version.