AnsweredAssumed Answered

FM Pro and FM Pro Advanced 12.0v2 memory leak when using Save Records as PDF script step.

Question asked by farokh on Aug 21, 2012
Latest reply on Sep 18, 2012 by farokh

Summary

FM Pro and FM Pro Advanced 12.0v2 memory leak when using Save Records as PDF script step.

Product

FileMaker Pro

Version

12.0v2 and Advanced 12.0v2

Operating system version

OS X 10.7.4

Description of the issue

When attempting to run a script that takes a long time, FM Pro is crashing. I have both FM Pro and Advanced 12.0v2. The script in question potentially could run for many hours. It's exporting about 427,000 PDF images that are stored in a FM Pro database that I am trying to convert over to using references instead of the actual images.

Here's the Problem Report:

Process:         FileMaker Pro [54293]
Path:            /Applications/FileMaker Pro 12 Advanced/FileMaker Pro Advanced.app/Contents/MacOS/FileMaker Pro
Identifier:      com.filemaker.client.advanced12
Version:         12.0.2 (12.0.2)
Code Type:       X86 (Native)
Parent Process:  launchd [167]

Date/Time:       2012-08-21 20:03:42.658 -0400
OS Version:      Mac OS X 10.7.4 (11E53)
Report Version:  9

Interval Since Last Report:          421276 sec
Crashes Since Last Report:           2
Per-App Interval Since Last Report:  7520 sec
Per-App Crashes Since Last Report:   2
Anonymous UUID:                      70098317-FB17-4BC7-9CEA-5417CBC9E81B

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

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000

VM Regions Near 0:
--> __PAGEZERO             0000000000000000-0000000000001000 [    4K] ---/--- SM=NUL  /Applications/FileMaker Pro 12 Advanced/FileMaker Pro Advanced.app/Contents/MacOS/FileMaker Pro
    __TEXT                 0000000000001000-0000000000b06000 [ 11.0M] r-x/rwx SM=COW  /Applications/FileMaker Pro 12 Advanced/FileMaker Pro Advanced.app/Contents/MacOS/FileMaker Pro

Application Specific Information:
objc[54293]: garbage collection is OFF

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   DLI_PDFL91                         0x02ecf3e2 emit_byte + 14
1   DLI_PDFL91                         0x02ecf42d emit_marker + 27
2   DLI_PDFL91                         0x02ecfb1a write_file_header + 26
3   DLI_PDFL91                         0x02ec9027 jpeg_write_coefficients + 409
4   DLI_PDFL91                         0x02e92072 CacheJPEG + 1344
5   DLI_PDFL91                         0x02e939aa dtl_StoreGraphics + 4323
6   DLI_PDFL91                         0x02e94868 dtl_verify_graphic_ex + 683
7   DLI_PDFL91                         0x02e948da dtl_verify_graphic + 40
8   DLI_PDFL91                         0x02e6d8c7 dlpdfimagecreatefromfile + 137
9   com.filemaker.client.advanced12     0x0066fab9 APDFLImageVS::CreatePDFImageFromFile(FMPDF::Doc, _t_ASFixedRect*, bool&, char const*) + 41
10  com.filemaker.client.advanced12     0x006700cf APDFLImageVS::PlaceEncodedBytesInContentCommon(FMPDF::Content, _t_ASFixedPoint, int, int, int, _t_ASFixedRect*) + 831
11  com.filemaker.client.advanced12     0x00670a7b APDFLImageVS::PlaceInContentCommon(FMPDF::Content, _t_ASFixedPoint, int, int, int, _t_ASFixedRect*) + 251
12  com.filemaker.client.advanced12     0x00678602 APDFLGraphicsEnv::DrawImage(Draco::CoordRect const&, APDFLImageVS*) + 754
13  com.filemaker.client.advanced12     0x006789c7 APDFLGraphics::DrawImage(Draco::CoordRect const&, IImage*) + 487
14  com.filemaker.client.advanced12     0x006975ab ProWebViewerView::DrawView(IGraphics*, Draco::CoordRect const&) + 1947
15  libViewSystem.dylib                0x0514266d BaseView::RenderToIGraphicsUsingTransform(IGraphics*, Draco::Coord3x3Matrix const&, Draco::CoordRect const&, Draco::Coord3x3Matrix const*) const + 175
16  libViewSystem.dylib                0x05141ad7 BaseView::RenderToAncestor(IView*, IGraphics*, Draco::CoordRect const&, Draco::Coord3x3Matrix const*) + 73
17  libViewSystem.dylib                0x05146020 BaseView::UpdateRectListToAncestor_secondary(IView*, IGraphics*, Draco::CoordRect const&, Draco::Coord3x3Matrix const*, unsigned int, bool, bool) + 488
18  libViewSystem.dylib                0x051460fc BaseView::UpdateRectListToAncestor_secondary(IView*, IGraphics*, Draco::CoordRect const&, Draco::Coord3x3Matrix const*, unsigned int, bool, bool) + 708
19  libViewSystem.dylib                0x051460fc BaseView::UpdateRectListToAncestor_secondary(IView*, IGraphics*, Draco::CoordRect const&, Draco::Coord3x3Matrix const*, unsigned int, bool, bool) + 708
20  libViewSystem.dylib                0x051460fc BaseView::UpdateRectListToAncestor_secondary(IView*, IGraphics*, Draco::CoordRect const&, Draco::Coord3x3Matrix const*, unsigned int, bool, bool) + 708
21  libViewSystem.dylib                0x051460fc BaseView::UpdateRectListToAncestor_secondary(IView*, IGraphics*, Draco::CoordRect const&, Draco::Coord3x3Matrix const*, unsigned int, bool, bool) + 708
22  libViewSystem.dylib                0x051460fc BaseView::UpdateRectListToAncestor_secondary(IView*, IGraphics*, Draco::CoordRect const&, Draco::Coord3x3Matrix const*, unsigned int, bool, bool) + 708
23  libViewSystem.dylib                0x051460fc BaseView::UpdateRectListToAncestor_secondary(IView*, IGraphics*, Draco::CoordRect const&, Draco::Coord3x3Matrix const*, unsigned int, bool, bool) + 708
24  libViewSystem.dylib                0x051460fc BaseView::UpdateRectListToAncestor_secondary(IView*, IGraphics*, Draco::CoordRect const&, Draco::Coord3x3Matrix const*, unsigned int, bool, bool) + 708
25  libViewSystem.dylib                0x051460fc BaseView::UpdateRectListToAncestor_secondary(IView*, IGraphics*, Draco::CoordRect const&, Draco::Coord3x3Matrix const*, unsigned int, bool, bool) + 708
26  libViewSystem.dylib                0x051464c1 BaseView::UpdateRectListToAncestor(IView*, IGraphics*, Draco::CoordRectQuickList const&, Draco::Coord3x3Matrix const*, unsigned int, bool) + 769
27  libViewSystem.dylib                0x05141b1d BaseView::UpdateRectListToAncestor(IView*, IGraphics*, Draco::CoordRectQuickList const&, Draco::Coord3x3Matrix const*) + 61
28  libViewSystem.dylib                0x0514464a BaseView::PrintViewRelativeToAncestor(IGraphics*, IView*, Draco::CoordRect const&) + 64
29  libViewSystem.dylib                0x05143576 BaseView::PrintView(IGraphics*) + 216
30  com.filemaker.client.advanced12     0x00817cf4 DSDocPrintable::PrintPageInRect(IViewPrintOperation*, IGraphics*, unsigned long, Draco::CoordRect const&, Draco::Coord3x3Matrix const&) + 3046
31  com.filemaker.client.advanced12     0x0067e6c7 XViewPrintOperationPDF::RunOperation() + 1175
32  com.filemaker.client.advanced12     0x008167ec DSDocPrintJob::ExecutePrintJob() + 92
33  com.filemaker.client.advanced12     0x0068ffcf FMPDF::Feature::ExecuteFeature(FMDocWindow&, PrintSettings const&, unsigned short) + 95
34  com.filemaker.client.advanced12     0x006902a7 DoPDFFeatureOperation(FMDocWindow&, Draco::PDFSettings const&, PrintSettings const&, unsigned short, Draco::UniversalPath const&) + 87
35  com.filemaker.client.advanced12     0x004b5275 DoSaveAsPDF(FMDocWindow&) + 1509
36  com.filemaker.client.advanced12     0x001a23bc _ZL14DoImportExportP11FMDocWindowj + 572
37  com.filemaker.client.advanced12     0x001a7234 AppHandleCommand(FMDocWindow*, unsigned int, bool) + 4468
38  com.filemaker.client.advanced12     0x001aa0ec AppExecuteCommand(FMDocWindow*, unsigned int, bool, bool) + 220
39  com.filemaker.client.advanced12     0x00328dfa ScriptRuntime::DispatchStep(bool&) + 362
40  com.filemaker.fmengine.framework     0x0419467a Draco::ScriptRuntimeBase::Execute() + 522
41  com.filemaker.fmengine.framework     0x04195133 Draco::ScriptRuntimeBase::DoNextStep() + 371
42  com.filemaker.fmengine.framework     0x0419525d Draco::ScriptRuntimeBase::DoRunLoop() + 109
43  com.filemaker.client.advanced12     0x0032215f ScriptRuntime::OnIdle() + 127
44  com.filemaker.fmengine.framework     0x0416f010 Draco::FMSession::OnIdle(bool) + 272
45  com.filemaker.client.advanced12     0x0017b802 FMAppSession::OnIdle(bool) + 66
46  com.filemaker.client.advanced12     0x0016abf5 CFMProApp::Idle(bool) + 69
47  com.filemaker.client.advanced12     0x0016ad1d CFMProApp::DispatchNullEvent() + 109
48  com.filemaker.client.advanced12     0x004b37a9 -[MFAppDelegate HandleIdleNotification] + 25
49  com.apple.Foundation               0x920c0df1 __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 49
50  com.apple.CoreFoundation           0x99909903 ___CFXNotificationPost_block_invoke_1 + 275
51  com.apple.CoreFoundation           0x998d4688 _CFXNotificationPost + 2776
52  com.apple.Foundation               0x920c0db7 -[NSNotificationCenter postNotification:] + 115
53  com.apple.Foundation               0x92128803 postQueueNotifications + 948
54  com.apple.CoreFoundation           0x998ed0ce __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
55  com.apple.CoreFoundation           0x998ed00d __CFRunLoopDoObservers + 413
56  com.apple.CoreFoundation           0x998bfa5d __CFRunLoopRun + 1261
57  com.apple.CoreFoundation           0x998bf1dc CFRunLoopRunSpecific + 332
58  com.apple.CoreFoundation           0x998bf088 CFRunLoopRunInMode + 120
59  com.apple.HIToolbox                0x9a59e723 RunCurrentEventLoopInMode + 318
60  com.apple.HIToolbox                0x9a5a5a8b ReceiveNextEventCommon + 381
61  com.apple.HIToolbox                0x9a5a58fa BlockUntilNextEventMatchingListInMode + 88
62  com.apple.AppKit                   0x982530d8 _DPSNextEvent + 678
63  com.apple.AppKit                   0x98252942 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 113
64  com.apple.AppKit                   0x9824ecb1 -[NSApplication run] + 911
65  com.filemaker.client.advanced12     0x0006e7c0 CMacApp_Main + 576
66  com.filemaker.client.advanced12     0x001700e3 main + 67
67  com.filemaker.client.advanced12     0x00050ce1 start + 53

Steps to reproduce the problem

I run a script, eventually FM Pro crashes. RAM usage keeps increasing until the crash. I have run into this in both FM Pro and FM Pro Advanced.

Expected result

Successful completion of the script.

Actual result

FM Pro crashes.

Exact text of any error message(s) that appear

No error message.

Configuration information

This is on an early 2008 Mac Pro with 4 GB RAM, 1TB hard drive and a single 2.8 Ghz quad core CPU.

Workaround

None.

Outcomes