I run a large loop in FEMM, doing many simulations appox. 900, using a Lua script. After the script runs for a little while it crashes on me (performs illegal operations and completely shuts down). Occasionally however the script manages to run all the way through though! I created a little wait() function to cause the program to wait at certain points, sort of an a whim, however it has not really helped. Anyway ideas or tricks to make things run more smoothly? I have attached the dr.waston error log and my lua script (etch_hold.lua is the main, intergal.lua is the post process) It seems to crash around line 132 in lua script (in second loop) thanks, willem part of my output log (ran through twice and crashed just in the third loop (each loop has a sub loop that performs 100 simulations)) : .... 99 38599408 48.505444270896 44.9277175694216 44.9277175694216 100 39387151 49.495351271187 45.83093116687636 45.83093116687636 This is a new layout Size of Air block is: 0.3 meters H_field B_field total_Bn avg_Bn 1 1 56637e-006 -0.02837856245110936 -0.02837856245110936
Application exception occurred: App: (pid=10676) When: 11/29/2001 @ 13:37:10.708 Exception number: c0000005 (access violation) *----> System Information <----* Computer Name: CHAINLINK User Name: Willem-Jan Ouborg Number of Processors: 1 Processor Type: x86 Family 6 Model 5 Stepping 2 Windows 2000 Version: 5.0 Current Build: 2195 Service Pack: 2 Current Type: Uniprocessor Free *----> Task List <----* 0 Idle.exe 8 System.exe 132 smss.exe 160 csrss.exe 156 winlogon.exe 208 services.exe 220 lsass.exe 380 svchost.exe 428 spoolsv.exe 480 Avsynmgr.exe 496 svchost.exe 520 matlabserver.ex.exe 592 regsvc.exe 616 Remotsvc.exe 632 retroclient.exe 536 MSTask.exe 820 VsStat.exe 872 Vshwin32.exe 620 Mcshield.exe 468 Avconsol.exe 1040 Explorer.exe 808 atiptaxx.exe 884 EditPad.exe 552 OUTLOOK.exe 728 IEXPLORE.exe 10676 femme.exe 5880 drwtsn32.exe 0 _Total.exe (00400000 - 00485000) (77F80000 - 77FFB000) (6C6E0000 - 6C7C7000) (78080000 - 78095000) (78000000 - 78046000) (77E80000 - 77F35000) (780A0000 - 780B2000) (77F40000 - 77F7C000) (77E10000 - 77E74000) (782F0000 - 78532000) (77DB0000 - 77E0B000) (77D40000 - 77DB0000) (77C70000 - 77CBA000) (77B50000 - 77BD9000) (76B30000 - 76B6E000) (77A50000 - 77B46000) (779B0000 - 77A4B000) (775A0000 - 77625000) (77840000 - 7787C000) (770C0000 - 770E3000) (76FA0000 - 76FAF000) (773E0000 - 773F2000) (75170000 - 751BF000) (77BE0000 - 77BEF000) (751C0000 - 751C6000) (75150000 - 75160000) (75030000 - 75043000) (75020000 - 75028000) (77950000 - 77979000) (77980000 - 779A4000) (75050000 - 75058000) State Dump for Thread Id 0x29e8 eax=0000296c ebx=002f0000 ecx=7ffde000 edx=002f0608 esi=0089dd10 edi=0089dd10 eip=77fcb84d esp=0012f578 ebp=0012f584 iopl=0 nv up ei pl zr na po nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000246 function: RtlFreeHeap 77fcb82f c1e003 shl eax,0x3 77fcb832 2bf8 sub edi,eax 77fcb834 3bfe cmp edi,esi 77fcb836 740a jz 77fdae42 77fcb838 f6470501 test byte ptr [edi+0x5],0x1 ds:0131b2e2=?? 77fcb83c 0f8440010000 je RtlSizeHeap+0x49 (77fcb982) 77fcb842 f6460510 test byte ptr [esi+0x5],0x10 ds:0131b2e2=?? 77fcb846 750f jnz 77fd4357 77fcb848 8b4510 mov eax,[ebp+0x10] ss:00bacb56=???????? 77fcb84b 8b00 mov eax,[eax] ds:0000296c=???????? FAULT ->77fcb84d f644c60501 test byte ptr [esi+eax*8+0x5],0x1 ds:00a7ff3f=?? 77fcb852 8d3cc6 lea edi,[esi+eax*8] ds:0000296c=???????? 77fcb855 7409 jz 77fd4360 77fcb857 8bc6 mov eax,esi 77fcb859 5f pop edi 77fcb85a 5e pop esi 77fcb85b 5b pop ebx 77fcb85c 5d pop ebp 77fcb85d c21000 ret 0x10 77fcb860 0fb70f movzx ecx,word ptr [edi] ds:0089dd10=296c 77fcb863 03c8 add ecx,eax 77fcb865 81f900fe0000 cmp ecx,0xfe00 *----> Stack Back Trace <----* FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name 0012F584 77FCB733 002F0000 0089DD10 0012F5FC 00000000 ntdll!RtlFreeHeap 0012F62C 78001D92 002F0000 00000000 0089DD18 00000111 ntdll!RtlFreeHeap 0012F674 00454456 0089DD18 00000111 00000001 3EB51536 !free 0012F68C 00454926 002F3E18 0089DD18 00000000 00000111 !<nosymbols> 0012F6C4 004544EF 002F3E18 00000111 00000001 3EB51536 !<nosymbols> 0012F6DC 00454A3C 002F3E18 00000000 00000111 00000001 !<nosymbols> 0012F6F8 00454A0B 002F3E18 00000111 00000001 3EB51536 !<nosymbols> 0012F710 0044C67B 002F3E18 00000111 00000001 3EB51536 !<nosymbols> 0012F74C 00455DF1 002F3E18 002F41B0 00000000 00000111 !<nosymbols> 0012F820 0044C563 002F3E18 002F3CE0 002F4150 00000111 !<nosymbols> 0012F864 0044C801 002F3E18 002F4140 FFFFFFFF 00000111 !<nosymbols> 0012F888 0044CD3B 002F3E18 0012F920 00000111 00000001 !<nosymbols> 0012F8F8 0044C7B7 002F3E18 0044C7DC 0012F920 00000111 !<nosymbols> 0012F928 0044C83C 002F3E18 00000000 FFFFFFFF 00000111 !<nosymbols> 0012F94C 004443CF 002F3E18 0089370C 00000111 00000001 !<nosymbols> 0012FB8C 6C6E26C4 00000111 002FBE38 0012FBCC 6C6E2604 !<nosymbols> 0012FB9C 6C6E2604 002FBE38 00008045 00000000 00444326 mfc40_opt!Ordinal4946 0012FBCC 6C6E2C4C 00008045 00000000 00000000 00000000 mfc40_opt!Ordinal3906 0012FBE8 6C6E2CCC 00008045 00000000 00000000 00000000 mfc40_opt!Ordinal3908 0012FC0C 6C6E2813 00008045 00000000 00000000 00000000 mfc40_opt!Ordinal3913 0012FC28 6C6E395D 00008045 00000000 00000000 00000000 mfc40_opt!Ordinal3909 0012FC78 6C6E39C9 00008045 00000000 00463358 002FB7D0 mfc40_opt!Ordinal3922 0012FC94 6C6E161A 00008045 00000000 00463358 002FB7D0 mfc40_opt!Ordinal3917 0012FD28 6C6E137E 00000111 00008045 00000000 0012FD48 mfc40_opt!Ordinal4608 0012FD4C 6C6E1161 00000111 00008045 00000000 004728B4 mfc40_opt!Ordinal5647 0012FDB8 6C6E1051 002FB7D0 000B02B2 00000111 00008045 mfc40_opt!Ordinal984 0012FDD4 6C6E13D4 000B02B2 00000111 00008045 00000000 mfc40_opt!Ordinal1370 0012FE00 77E12E98 000B02B2 00000111 00008045 00000000 mfc40_opt!Ordinal1371 0012FE20 77E130E0 6C6E13A1 000B02B2 00000111 00008045 user32!ScrollDC 0012FEAC 77E15824 004728B4 00000001 6C6E1D0F 004728B4 user32!ScrollDC 00000000 00000000 00000000 00000000 00000000 00000000 user32!DispatchMessageA *----> Raw Stack Dump <----* 0012f578 00 00 2f 00 10 dd 89 00 - 00 00 00 00 2c f6 12 00 ../.........,... 0012f588 33 b7 fc 77 00 00 2f 00 - 10 dd 89 00 fc f5 12 00 3..w../......... 0012f598 00 00 00 00 11 01 00 00 - 18 dd 89 00 36 15 b5 3e ............6..> 0012f5a8 00 00 2f 00 01 04 00 00 - 01 db 00 78 50 32 03 78 ../........xP2.x 0012f5b8 70 41 8a 00 01 f6 12 00 - c3 13 00 78 4c f5 12 00 pA.........xL... 0012f5c8 00 08 00 00 14 f6 12 00 - a7 9d fb 77 90 26 f8 77 ...........w.&.w 0012f5d8 ff ff ff ff 24 f6 12 00 - a0 01 2f 00 68 af 89 00 ....$...../.h... 0012f5e8 01 00 00 00 01 00 00 00 - a0 01 2f 00 01 00 00 00 ........../..... 0012f5f8 00 00 2f 00 6c 29 00 00 - 01 44 45 00 00 00 00 00 ../.l)...DE..... 0012f608 b0 bc 89 00 01 00 00 00 - 80 fb 12 00 9c f5 12 00 ................ 0012f618 c4 f1 12 00 64 f6 12 00 - a7 9d fb 77 90 26 f8 77 ....d......w.&.w 0012f628 01 00 00 00 74 f6 12 00 - 92 1d 00 78 00 00 2f 00 ....t......x../. 0012f638 00 00 00 00 18 dd 89 00 - 11 01 00 00 01 00 00 00 ................ 0012f648 36 15 b5 3e 00 00 00 00 - 11 01 00 00 01 00 00 00 6..>............ 0012f658 36 15 b5 3e 11 01 00 00 - c4 f1 12 00 80 fb 12 00 6..>............ 0012f668 11 db 00 78 a0 32 03 78 - ff ff ff ff 8c f6 12 00 ...x.2.x........ 0012f678 56 44 45 00 18 dd 89 00 - 11 01 00 00 01 00 00 00 VDE............. 0012f688 36 15 b5 3e c4 f6 12 00 - 26 49 45 00 18 3e 2f 00 6..>....&IE..>/. 0012f698 18 dd 89 00 00 00 00 00 - 11 01 00 00 01 00 00 00 ................ 0012f6a8 36 15 b5 3e 18 dd 89 00 - 07 00 00 00 00 00 00 00 6..>............ State Dump for Thread Id 0x29bc eax=77d50c62 ebx=bbd5bc70 ecx=00143f24 edx=00000000 esi=00143f70 edi=00143fb0 eip=77f82a84 esp=00f0fe28 ebp=00f0ff74 iopl=0 nv up ei pl nz na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000202 function: ZwReplyWaitReceivePortEx 77f82a79 b8ac000000 mov eax,0xac 77f82a7e 8d542404 lea edx,[esp+0x4] ss:0198d3fb=???????? 77f82a82 cd2e int 2e 77f82a84 c21400 ret 0x14 *----> Stack Back Trace <----* FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name 00F0FF74 77D50781 77D50D7F 00143F70 00000000 40143A64 ntdll!ZwReplyWaitReceivePortEx 00F0FFA8 77D50C7A 00142DD0 00F0FFEC 77E8758A 001440A0 rpcrt4!RpcBindingSetOption 00F0FFB4 77E8758A 001440A0 00000000 40143A64 001440A0 rpcrt4!RpcBindingSetOption 00F0FFEC 00000000 00000000 00000000 00000000 00000000 kernel32!SetFilePointer State Dump for Thread Id 0x1b8 eax=7ffdc000 ebx=00000002 ecx=0102ff18 edx=00000000 esi=77f8281e edi=00000002 eip=77f82829 esp=0102fe5c ebp=0102fea8 iopl=0 nv up ei pl zr na po nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000246 function: NtWaitForMultipleObjects 77f8281e b8e9000000 mov eax,0xe9 77f82823 8d542404 lea edx,[esp+0x4] ss:01aad42f=???????? 77f82827 cd2e int 2e 77f82829 c21400 ret 0x14 *----> Stack Back Trace <----* FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name 0102FEA8 77E1375E 0102FE80 00000001 00000000 0102FEA0 ntdll!NtWaitForMultipleObjects 0102FF04 77E1382B 0102FED0 77CB4158 0000EA60 00000041 user32!MsgWaitForMultipleObjectsEx 0102FF20 77C71A5C 00000001 77CB4158 00000000 0000EA60 user32!MsgWaitForMultipleObjects 0102FF74 77C78020 0102FFA0 0102FFA4 0102FFA8 0102FF9C shlwapi!Ordinal240 0102FFAC 77C77FA8 00000000 77E8758A 00000000 00000000 shlwapi!SHGetValueA 0102FFEC 00000000 77C77F7F 00000000 00000000 000000C8 shlwapi!SHGetValueA *----> Raw Stack Dump <----* 0102fe5c da 6d e8 77 02 00 00 00 - 80 fe 02 01 01 00 00 00 .m.w............ 0102fe6c 00 00 00 00 a0 fe 02 01 - 00 00 00 00 00 00 00 00 ................ 0102fe7c 02 00 00 00 18 01 00 00 - 1c 01 00 00 d8 57 14 00 .............W.. 0102fe8c 10 02 13 00 01 3a f8 77 - 00 00 13 00 13 00 00 00 .....:.w........ 0102fe9c 01 ff 02 01 00 ba 3c dc - ff ff ff ff 04 ff 02 01 ......<......... 0102feac 5e 37 e1 77 80 fe 02 01 - 01 00 00 00 00 00 00 00 ^7.w............ 0102febc a0 fe 02 01 00 00 00 00 - 60 ea 00 00 38 41 cb 77 ........`...8A.w 0102fecc 00 00 00 00 18 01 00 00 - 1c 01 00 00 a5 45 f8 77 .............E.w 0102fedc 00 00 00 00 38 41 cb 77 - 00 00 e1 76 70 57 a5 77 ....8A.w...vpW.w 0102feec 00 c0 fd 7f 85 3e a5 77 - 00 00 00 00 cc c6 fd 7f .....>.w........ 0102fefc 00 00 00 00 1c 01 00 00 - 20 ff 02 01 2b 38 e1 77 ........ ...+8.w 0102ff0c d0 fe 02 01 58 41 cb 77 - 60 ea 00 00 41 00 00 00 ....XA.w`...A... 0102ff1c 00 00 00 00 74 ff 02 01 - 5c 1a c7 77 01 00 00 00 ....t...\..w.... 0102ff2c 58 41 cb 77 00 00 00 00 - 60 ea 00 00 41 00 00 00 XA.w....`...A... 0102ff3c 00 00 00 00 38 41 cb 77 - 07 22 f8 77 14 56 14 00 ....8A.w.".w.V.. 0102ff4c 14 58 14 00 d8 57 14 00 - c1 67 c8 76 00 f0 fd 7f .X...W...g.v.... 0102ff5c dc fe 02 01 01 00 00 00 - b2 31 6f 00 38 41 cb 77 .........1o.8A.w 0102ff6c 60 ea 00 00 01 00 00 00 - ac ff 02 01 20 80 c7 77 `........... ..w 0102ff7c a0 ff 02 01 a4 ff 02 01 - a8 ff 02 01 9c ff 02 01 ................ 0102ff8c 60 ea 00 00 00 00 00 00 - 00 00 c7 77 00 00 00 00 `..........w....
Attachment:
bin00041.bin
Description: Binary data
Attachment:
bin00042.bin
Description: Binary data