Client Crashes when document is opened

I have created a database to log the differences between two releases of the same template. The module is working fine .but if the Log file which is a Notes document exceeds above 2Mb in size and you try to open the document the client crashes.

The Log file shows this:

############################################################

FATAL THREAD 1/27 [ nlnotes: 07fc: 00e4]

FP=0x0013d244, PC=0x616f5aa0, SP=0x0013d224

stkbase=00140000, total stksize=57344, used stksize=11740

EAX=0x0e11b008, EBX=0x000070da, ECX=0x0000e1b6, EDX=0x0000e1b5

ESI=0x0df9009b, EDI=0x0dec9488, CS=0x0000001b, SS=0x00000023

DS=0x00000023, ES=0x00000023, FS=0x0000003b, GS=0x00000000 Flags=0x00010216

Exception code: c0000005 (ACCESS_VIOLATION)

############################################################

@[ 1] 0x616f5aa0 nnotesws.CEdParagraphBoxData::GetVisibleWidth+208 (88011465,ffff,c9a57d8,13d264)

@[ 2] 0x616f3766 nnotesws.CEdCell::Justify+1542 (0,13d320,13d3c4,13d478)

@[ 3] 0x616f2e7f nnotesws.CEdTableBoxData::JustifyRow+543 (13d401,6e,13d40c,13d3dc)

@[ 4] 0x616f2598 nnotesws.CEdTableBoxData::Justify+1640 (13d474,0,c8fe014,1)

@[ 5] 0x6170ccec nnotesws.CEdDoc::JustifyBoxes+332 (13d498,0,1,c8fe014)

@[ 6] 0x616ef829 nnotesws.@DocJustify@4+169 (c8fe014,6170c90c,c8fe014,c8fe014)

@[ 7] 0x61709c8a nnotesws.@DocInvalidateIfModifiedNoFrame@4+26 (0,0,c8fe014,1)

@[ 8] 0x616eb463 nnotesws.@DocAsyncIONotify@4+1827 (13df02,13e0fe,c8fc64e,0)

@[ 9] 0x61df0a80 nnotesws.@DocCreate@124+6032 (10000,207ec,0,0)

@[10] 0x616e95b1 nnotesws._EditInstanceInit@40+1489 (0,0,0,207ec,a,13ce48,1003f,0,0,0)

@[11] 0x616e86ed nnotesws.CEditSubprogram::InstanceInit+77 (c8fc814,13e3f8,c8fc64e,c8fc814,b,13ce48,1003f,0,0,0)

@[12] 0x616c95ec nnotesws.CSubprogram::Create+1516 (13e3fc,19,c8fc814,0,c,13ce48,1003f,0,0,0)

@[13] 0x616e8406 nnotesws._EditNewSubprogram@44+262 (207e8,802,13e594,0,d,13ce48,1003f,0,0,0,0)

@[14] 0x617078be nnotesws.CEditSubprogram::FCFrameManagedStartup+206 (c8fc814,207e8,13e74e,13e654,e,13ce48,1003f,0,0,0,0)

@[15] 0x616b426b nnotesws.fsLoadFrame+1195 (b42b774,c8fc814,c903a14,4a7,f,13ce48,1003f,0,0,0,0)

@[16] 0x616b3d87 nnotesws.fsCreateFrameset+343 (0,13e654,13e664,0,10,13ce48,1003f,0,0,0,0)

@[17] 0x616c9cf5 nnotesws._FSCreateFrameset@32+117 (0,0,2,0,11,13ce48,1003f,0)

@[18] 0x61705504 nnotesws.CEditorMonitorSubprogram::InstanceInit+148 (c8fc014,13e8e8,13e9ac,0,12,13ce48,1003f,0)

@[19] 0x616c95ec nnotesws.CSubprogram::Create+1516 (13e8ec,e,0,c902616,13,13ce48,1003f,0)

@[20] 0x6170540b nnotesws._EmonNewSubprogram@48+539 (207dc,802,c902414,0,14,13ce48,1003f,0,0,0,0,0)

@[21] 0x61b82dd2 nnotesws.CDocumentSubprogram::DocumentEditCreate+674 (c902414,0,c902414,13efb0,15,13ce48,1003f,0,0,0,0,0)

@[22] 0x61b840ae nnotesws.CDocumentSubprogram::InstanceInit+654 (c902414,13efb0,c902414,13f290,16,13ce48,1003f,0,0,0,0,0)

@[23] 0x616c95ec nnotesws.CSubprogram::Create+1516 (13efb4,1,13f290,13f0f6,17,13ce48,1003f,0,0,0,0,0)

@[24] 0x61b828d3 nnotesws.CreateDocSubprogram+339 (c902414,0,0,0,18,13ce48,1003f,0,0,0,0,0)

@[25] 0x61b83d37 nnotesws._DocumentOpen@48+359 (c8e1214,15ae,13f20c,13f2c8,19,13ce48,1003f,0,0,0,0,0)

@[26] 0x61d4d167 nnotesws.CLineView::ShowNote+967 (40,0,0,0,1a,13ce48,1003f,0,0,0,0,0)

@[27] 0x61d47cb4 nnotesws.CLineView::ProcessDblClick+436 (c8e1014,1,1300a3,0,1b,13ce48,1003f,0,0,0,0,0)

@[28] 0x618388e1 nnotesws.CNEMListHandler::HandleDblClickProcessing+145 (431014,13f41c,203,203,1c,13ce48,1003f,0,0,0,0,0)

@[29] 0x61781e7f nnotesws.CNEMGestureHandler::ProcessMouse+623 (c8e1014,13f41c,0,0,1d,13ce48,1003f,0,0,0,0,0)

@[30] 0x6179954d nnotesws.CLineView::ProcessViewWndMessage+1597 (c8e1014,207c2,203,1,1e,13ce48,1003f,0,0,0,0,0)

@[31] 0x61798b50 nnotesws._ViewWndProc@16+240 (207c2,203,1,a90043)

[32] 0x7e418734 USER32 (61798a60,207c2,203,1)

[33] 0x7e418816 USER32 (0,61798a60,207c2,203)

[34] 0x7e42a013 USER32 (ffff08db,207c2,203,1)

[35] 0x7e42a039 USER32 (ffff08db,207c2,203,1)

[36] 0x5d095e5e comctl32 (207c2,203,1,a90043)

[37] 0x5d09602f comctl32 (1c6278,207c2,203,1)

[38] 0x5d095fe4 comctl32 (207c2,203,1,a90043)

[39] 0x5d0d04bf comctl32 (207c2,203,1,a90043)

[40] 0x5d09602f comctl32 (1c6278,207c2,203,1)

[41] 0x5d0960be comctl32 (207c2,203,1,a90043)

[42] 0x7e418734 USER32 (5d09607d,207c2,203,1)

[43] 0x7e418816 USER32 (0,5d09607d,207c2,203)

[44] 0x7e4189cd USER32 (13f7b8,0,13f7d8,61719cd8)

[45] 0x7e418a10 USER32 (13f7b8,1,12067a,61680000)

@[46] 0x61719cd8 nnotesws._NEMMainLoop@4+696 (4013d0)

@[47] 0x0040195e NLNOTES._WinMain@16+1422 (617582b0,0,15236c,1)

@[48] 0x00401e19 NLNOTES._WinMainCRTStartup+389 (12f0c0,7c90e900,7ffdf000,8054b6ed)

[49] 0x7c817067 kernel32 (401c94,0,78746341,20)

Invalid stack frame detected: Invalid frame pointer (BP): 0

############################################################

PASS 2 : FATAL THREAD with STACK FRAMES 1/27 [ nlnotes: 07fc: 00e4]

FP=0013d244, PC=616f5aa0, SP=0013d224

stkbase=00140000, total stksize=57344, used stksize=11740

Exception code: c0000005 (ACCESS_VIOLATION)

############################################################

Disassembly of c. 10 instructions before and after faulting address 616f5aa0:



    616f5a73 0fb7173bf28bce   repne   mov cx,cmpsi

    616f5a7a 8945fc           mov     [ebp+0xfc],eax            ss:01aea802=00008dc4

    616f5a7d 7c66         jl ?GetVisibleWidth@CEdParagraphBoxData@@UAIGXZ (616f5ae5)

    616f5a7f 8d04f500000000   lea     eax,[00000000+esi*8]      ds:0df9009b=00000000

    616f5a86 2bc6             sub     eax,esi

    616f5a88 8b75f8           mov     esi,[ebp+0xf8]            ss:01aea802=00008dc4

    616f5a8b 8bb6b8000000     mov     esi,[esi+0xb8]            ds:0df90153=0c000000

    616f5a91 8d448608         lea     eax,[esi+eax*4+0x8]       ds:0fac85c7=????????

    616f5a95 668b75fc         jnz     cld

    616f5a99 8da42400000000   lea     esp,[esp]                 ss:0013d224=0c9a636c

FAULT ->616f5aa0 662b7006 jo push es

    616f5aa4 668338006689     cmp     add [esi+0x89],ah                  0f93d65c=??

616f5aaa 75fc jnz ?CopyArraysToParagraph@@YGGPAVCEdBox@@@Z (616f5ba8)

    616f5aac 750a        jnz ?GetVisibleWidth@CEdParagraphBoxData@@UAIGXZ (616f5ab8)

    616f5aae 83e901           sub     ecx,0x1

    616f5ab1 83e81c           sub     eax,0x1c

    616f5ab4 3bca             cmp     ecx,edx

    616f5ab6 7de8            jge ?CopyArraysToParagraph@@YGGPAVCEdBox@@@Z (616f5ba0)

    616f5ab8 8b45fc           mov     eax,[ebp+0xfc]            ss:01aea802=00008dc4

    616f5abb 663b75f4         jnz     hlt

    616f5abf 7603        jbe ?GetVisibleWidth@CEdParagraphBoxData@@UAIGXZ (616f5ac4)

    616f5ac1 8945f4           mov     [ebp+0xf4],eax            ss:01aea802=00008dc4

---------- Dump of stack from SP to FP ----------

        0013d224 6C639A0C 14E08F0C 5C649A0C 5C649A0C | lc.. .... \d.. \d.. |

        0013d234 14E08F0C 38020000 A4659A0C 9B000000 | .... 8... .e.. .... |

@[ 1] 0x616f5aa0 nnotesws.CEdParagraphBoxData::GetVisibleWidth+208 (88011465,ffff,c9a57d8,13d264)

        0013d244 D8D21300 66376F61 65140188 FFFF0000 | .... f7oa e... .... |

        0013d254 D8579A0C 64D21300 1C549A0C D8579A0C | .W.. d... .T.. .W.. |

        0013d264 00000000 00000000 00000001 0000000A | .... .... .... .... |

        0013d274 00000000 00000000 00000000 00000000 | .... .... .... .... |

        0013d284 00000000 00000000 00000000 00000000 | .... .... .... .... |

        0013d294 65140188 3802000A 01000000 28040000 | e... 8... .... (... |

        0013d2a4 00000000 01000000 01000000 00000000 | .... .... .... .... |

        0013d2b4 00000000 00000000 00000000 00000000 | .... .... .... .... |

        0013d2c4 01D21300 01000000 65140188 6F000000 | .... .... e... o... |

        0013d2d4 01000000                            | ....                |

@[ 2] 0x616f3766 nnotesws.CEdCell::Justify+1542 (0,13d320,13d3c4,13d478)

        0013d2d8 38D31300 7F2E6F61 00000000 20D31300 | 8... ..oa ....  ... |

        0013d2e8 C4D31300 78D41300 74D41300 1C549A0C | .... x... t... .T.. |

        0013d2f8 D8579A0C 01000000 65140188 00000000 | .W.. .... e... .... |

        0013d308 00000000 00000000 00000000 00000000 | .... .... .... .... |

        0013d318 01000000 00000000 00000000 00000000 | .... .... .... .... |

        0013d328 FFFF0000 FFFF0000 00000000 6C639A0C | .... .... .... lc.. |

@[ 3] 0x616f2e7f nnotesws.CEdTableBoxData::JustifyRow+543 (13d401,6e,13d40c,13d3dc)

any idea why it acts that way?

I am able to open a file generated which is of size 1.74Mb without any trouble .

Subject: client Crashes when document is opened

Hi,

i am also facing such kind of problems …please help me

thanks

shubham