sq

FM 14 & FM 15 adv constant crashing mac desktop

Discussion created by sq on Feb 3, 2017
Latest reply on Feb 8, 2017 by TSGal

My files are using layout triggers, layout triggers pulls variables from the layout.  All scripts are passed parameters.

I follow Matt's filemakerstandards.org methods.  I use the same scripts and custom functions in 20 different solutions.

Navigation is using a popover button with a portal with a list of buttons.  Clicking a button to go to another layout will sometimes crash.

Sometimes crashing it will be 20% of the time clicking the button, sometimes 100% it will crash clicking the button.

 

Something in the layout trigger script that does many things went entering a layout.  I have spent a lot of time trying to disable certain functions in the script to test which might cause the issue.

 

Not an OS issue because FM crashed on 10.9.x, 10.10.x, 10.11.x

 

Here are some of the crash logs.

 

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

 

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)

Exception Codes:       EXC_I386_GPFLT

Exception Note:        EXC_CORPSE_NOTIFY

 

1   com.filemaker.client.advanced12 0x0000000104ebf4a3 -[FMBaseTopLevelView onChangeInHostFrameOrBackingSize:] + 174

2   com.filemaker.client.advanced12 0x0000000104dedae4 -[FMTopLevelView ourFrameDidChange:] + 177

 

12  com.filemaker.client.advanced12 0x0000000104deda1b -[FMTopLevelView setFrame:] + 74

13  com.filemaker.client.advanced12 0x0000000104ca3edd DocWinControllerMac::ReconfigureWindowViews() + 1053

14  com.filemaker.client.advanced12 0x0000000104ca1bba DocWindowController::WindowViewChangeNotification(bool) + 22

15  com.filemaker.client.advanced12 0x0000000104b0eaae FMDocWindow::ResizeControlsToWindow() + 36

16  com.filemaker.client.advanced12 0x0000000104ca36f2 DocWinControllerMac::OnContentViewFrameDidChange() const + 22

 

29  com.filemaker.client.advanced12 0x0000000104ca9d2d WinControllerMac::SetWindowBounds(Draco::XRect const&, bool) + 733

30  com.filemaker.client.advanced12 0x0000000104b1180d FMDocWindow::MoveResizeWindow(Draco::XRect const&) + 31

31  com.filemaker.client.advanced12 0x0000000104be6e9c ScriptRuntime::DoMoveResizeWindow() + 548

32  com.filemaker.client.advanced12 0x0000000104be3e86 ScriptRuntime::DispatchStep(bool&) + 3604

33  com.filemaker.fmengine.framework 0x00000001075da25b Draco::ScriptRuntimeBase::Execute() + 733

34  com.filemaker.fmengine.framework 0x00000001075d9ee9 Draco::ScriptRuntimeBase::DoNextStep() + 313

35  com.filemaker.fmengine.framework 0x00000001075d9d49 Draco::ScriptRuntimeBase::DoRunLoop() + 203

36  com.filemaker.client.advanced12 0x0000000104be0d20 ScriptRuntime::OnIdle() + 72

37  com.filemaker.fmengine.framework 0x00000001075c7437 Draco::FMSession::OnIdle(bool) + 69

38  com.filemaker.client.advanced12 0x0000000104a8d9e9 CFMProApp::Idle(bool) + 95

39  com.filemaker.client.advanced12 0x0000000104a8ec58 CFMProApp::DispatchNullEvent() + 180

 

So that seemed to point to this step:

Move/Resize Window [ Current Window ; Height: $H ; Width: $W ; Top: $T ; Left: $L ]

 

Disabling Move/Resize Window seemed to fix the issue.  Why is Move/Resize Window in a layout trigger under certain circumstances crashing?

 

Why is filemaker even crashing on a Script Step?  Can you make better crash logs so there is less guessing what caused a crash?

Filemaker can you code better so files don't crash like back in FM 12 and before?

I need to be able to use Move/Resize Window without FM crashing.  Filemaker can you please finally fix this issue?

Outcomes