| Author |
Message |
mdown
Joined: 03 Feb 2006
Location: Dallas, Texas
|
|
Posted: 09 October 2006, 21:46 PM Post subject: Reproduceable Bug that crashes IDE |
|
|
After a compile, while downloading, if you move you mouse cursor over the bar/seperator that divides the code from the debug/output tabs the IDE will crash hard causing :
| Quote: | | Unhandled exception at 0x0047b914 in ZBasicIDE.exe: 0xC0000005: Access violation writing location 0x74736977. |
| Code: |
0047B914 mov dword ptr [ecx+4],edi |
is the breakpoint
dissasm:
| Code: | 0047B8DF jne 0047B90C
0047B8E1 mov ecx,dword ptr [ebp+8]
0047B8E4 and dword ptr [ecx],edi
0047B8E6 jmp 0047B90C
0047B8E8 add ecx,0FFFFFFE0h
0047B8EB mov edi,80000000h
0047B8F0 shr edi,cl
0047B8F2 mov ecx,dword ptr [ebp+0Ch]
0047B8F5 lea ecx,[ecx+eax+4]
0047B8F9 not edi
0047B8FB and dword ptr [eax+esi*4+0C4h],edi
0047B902 dec byte ptr [ecx]
0047B904 jne 0047B90C
0047B906 mov ecx,dword ptr [ebp+8]
0047B909 and dword ptr [ecx+4],edi
0047B90C mov ecx,dword ptr [ebx+edx+8]
0047B910 mov edi,dword ptr [ebx+edx+4]
0047B914 mov dword ptr [ecx+4],edi
0047B917 mov ecx,dword ptr [ebx+edx+4]
0047B91B mov edi,dword ptr [ebx+edx+8]
0047B91F add ebx,dword ptr [ebp-8]
0047B922 mov dword ptr [ecx+8],edi
0047B925 mov dword ptr [ebp-0Ch],ebx
0047B928 mov edi,ebx
0047B92A sar edi,4
0047B92D dec edi
0047B92E cmp edi,3Fh
0047B931 jbe 0047B936
0047B933 push 3Fh
0047B935 pop edi
0047B936 mov ecx,dword ptr [ebp-4]
0047B939 and ecx,1
0047B93C mov dword ptr [ebp-14h],ecx
0047B93F jne 0047B9E5
0047B945 sub edx,dword ptr [ebp-4]
0047B948 mov ecx,dword ptr [ebp-4]
0047B94B sar ecx,4
0047B94E push 3Fh
0047B950 mov dword ptr [ebp-8],edx
0047B953 dec ecx
0047B954 pop edx
0047B955 cmp ecx,edx
0047B957 mov dword ptr [ebp+0Ch],ecx
0047B95A jbe 0047B961
0047B95C mov dword ptr [ebp+0Ch],edx
0047B95F mov ecx,edx |
I hope this helps you find the annoying compile, download crash problem.
-Mike
|
|
| Back to top |
|
 |
spamiam
Joined: 13 Nov 2005
|
|
Posted: 10 October 2006, 1:38 AM Post subject: |
|
|
I have always had an occasional, but frequent, crash that has defied explanation. It has been attributed to some oddity in my XP implemenentation.
I will see if it is related to mouse position. I have noticed that if I do not do ANYTHING for a little while between compiling and running, then the crash is less frequent.
-Tony
|
|
| Back to top |
|
 |
pjc30943
Joined: 02 Dec 2005
|
|
Posted: 10 October 2006, 4:17 AM Post subject: |
|
|
Yes, I've had the same issue as well...
Now my ritual is when downloading, take both hands off and DON'T touch anything until a second or so after downloading. Because inevitably it always crashes right as I accidentally move/bump the cursor over that bar;)
Luckily the IDE is extremely quick to load, in case of force quit. XP isn't the issue, since I use 98SE.
|
|
| Back to top |
|
 |
mikep
Joined: 24 Sep 2005
Location: Austin, TX
|
|
Posted: 10 October 2006, 4:50 AM Post subject: Re: Reproduceable Bug that crashes IDE |
|
|
| mdown wrote: | | After a compile, while downloading, if you move you mouse cursor over the bar/seperator that divides the code from the debug/output tabs the IDE will crash hard |
I have never had this problem myself. I'm running XP SP1. I'm about to upgrade to SP2 so I will see if that makes a difference.
|
|
| Back to top |
|
 |
JC
Joined: 20 Feb 2006
Location: Hudson,OH
|
|
Posted: 10 October 2006, 11:34 AM Post subject: |
|
|
Yup, I've experienced it also. Makes me save a lot more, and not touch the cursor ntil the verify is complete. XP, SP2.
JC
|
|
| Back to top |
|
 |
spamiam
Joined: 13 Nov 2005
|
|
Posted: 10 October 2006, 13:23 PM Post subject: |
|
|
I have been having "my" crash in the IDE ever since the beta release of the ZX. Don gave me Visual C and some source code to try to trace down the problem, but I was never able to pin it down. I am not experienced enough with Visual C and debugging the project to be able to figure it all out.
Don was not able to reproduce the problem at all, and we decided that it was a vagary of my XP. I had been running Win98, and upgraded to XP home. In doing so, I may have introduced some problems that are not typical of a clean XP install, but it was guess work.
It seems as if I move the mouse while the compile is in progress that there is a hang. Usually, the compile seems to go find, but when I try to download and run, then it instantly crashes. It does it only once in a while.
After the crash, If I just re-load ZBasic IDE, and try to download and run, it will crash again. It will do this repetetively.
I have to open ZBAsic IDE, Close the IDE in a normal way, then re-open it, compile again, and then download and run. This way it will virtually always work fine.
I will experiment more with clicking "compile" then move NOTHING for a few seconds after it is done, then downaload and run.
While the crahs has been annoying, it is pretty quick to re-load and get running again. Just a few seconds.
Since I still have Visual C, I could try to do more debugging. But I do not have the new source code, so I can't really do much.
When I do try to debug, Visual C says it can't do it. I have not tried to get it to work. I just cancel-out.
-Tony
|
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Location: Portland, OR
|
|
Posted: 12 October 2006, 0:00 AM Post subject: |
|
|
I have been unable to reproduce this error. I used two different computers, both XP, one with SP2 and one without.
Tony, the reason that you couldn't debug the problem with Visual C is that the image doesn't contain any debug information. The final build for each release is done debug information suppressed.
If someone would like to investigate the problem, I can send or post the full source tree. You would need to have Visual C, preferably VC6. You could use a later version of Visual C but you'd have to convert the workspace/project file.
I sent the source tree to another person that was having a similar problem. After rebuilding the app at his site the problem disappeared. Unfortunately, he has not had time to investigate what was causing the original problem. This sounds suspiciously like a problem from "DLL hell".
|
|
| Back to top |
|
 |
spamiam
Joined: 13 Nov 2005
|
|
Posted: 12 October 2006, 0:07 AM Post subject: |
|
|
| Quote: | | If someone would like to investigate the problem, I can send or post the full source tree. You would need to have Visual C, preferably VC6. You could use a later version of Visual C but you'd have to convert the workspace/project file. |
Don, I would be happy to try to debug my crashes. I had tried this before without too much luck, but I will try again. At this moment I am sort of in the middle of a little bit of development on the ZX-24, so I am getting the crashes on a common, but irregular basis.
I can load whatever files are needed. I have the VC-6 that you sent me before, so I am ready to go on that account.
Feel free to email me whatever files are necessary. I may need to be lead by the nose in the setup process for debugging unless it is pretty automatic or self-explanatory.
I can program in C, but I have never really used Visual C for anything than the previous debugging efforts.
-Tony
|
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Location: Portland, OR
|
|
Posted: 14 October 2006, 20:29 PM Post subject: |
|
|
I'd like to collect some information about installed DLL versions from those of you that have been having the access violation problem discussed in this thread. That information may shed some light on what is causing the problem and suggest how it might be resolved.
It may also be helpful to get the same information from those of you that haven't had the problem occur.
To collect the needed information, perform the following steps.
1) Download the ListDLLs utility from SysInternals.
2) Extract the executable LISTDLLS.exe from the Zip file downloaded in step 1 to a convenient directory.
3) Launch the ZBasic IDE.
4) Execute the LISTDLLS.exe program from a DOS command box using the following command line:
| Code: | | LISTDLLS zbasicide > dllinfo.txt |
5) Send the dllinfo.txt file to dkinzer at zbasic.net. Also, include information about the sequence of events that produces the problem for you.
Here is the DLL information from a system here on which we cannot reproduce the problem:
| Code: | ListDLLs v2.25 - DLL lister for Win9x/NT
Copyright (C) 1997-2004 Mark Russinovich
Sysinternals - www.sysinternals.com
------------------------------------------------------------------------------
ZBasicIDE.exe pid: 2220
Command line: "C:\Program Files\ZBasic\IDE\ZBasicIDE.exe"
Base Size Version Path
0x00400000 0x106000 1.01.0002.0000 C:\Program Files\ZBasic\IDE\ZBasicIDE.exe
0x7c900000 0xb0000 5.01.2600.2180 C:\WINDOWS\system32\ntdll.dll
0x7c800000 0xf4000 5.01.2600.2180 C:\WINDOWS\system32\kernel32.dll
0x77d40000 0x90000 5.01.2600.2180 C:\WINDOWS\system32\USER32.dll
0x77f10000 0x46000 5.01.2600.2180 C:\WINDOWS\system32\GDI32.dll
0x763b0000 0x49000 6.00.2900.2180 C:\WINDOWS\system32\comdlg32.dll
0x77f60000 0x76000 6.00.2900.2180 C:\WINDOWS\system32\SHLWAPI.dll
0x77c10000 0x58000 7.00.2600.2180 C:\WINDOWS\system32\msvcrt.dll
0x77dd0000 0x9b000 5.01.2600.2180 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 0x91000 5.01.2600.2180 C:\WINDOWS\system32\RPCRT4.dll
0x5d090000 0x97000 5.82.2900.2180 C:\WINDOWS\system32\COMCTL32.dll
0x7c9c0000 0x814000 6.00.2900.2180 C:\WINDOWS\system32\SHELL32.dll
0x76390000 0x1d000 5.01.2600.2180 C:\WINDOWS\system32\IMM32.dll
0x774e0000 0x13c000 5.01.2600.2180 C:\WINDOWS\system32\ole32.dll
0x773d0000 0x102000 6.00.2900.2180 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
0x5ad70000 0x38000 6.00.2900.2180 C:\WINDOWS\system32\uxtheme.dll |
Last edited by dkinzer on 11 January 2008, 15:35 PM; edited 1 time in total |
|
| Back to top |
|
 |
mdown
Joined: 03 Feb 2006
Location: Dallas, Texas
|
|
Posted: 14 October 2006, 20:44 PM Post subject: Dll List |
|
|
Here is my dll list.
-Mike
| Code: |
ListDLLs v2.25 - DLL lister for Win9x/NT
Copyright (C) 1997-2004 Mark Russinovich
Sysinternals - www.sysinternals.com
------------------------------------------------------------------------------
ZBasicIDE.exe pid: 1744
Command line: "C:\Program Files\ZBasic\IDE\ZBasicIDE.exe"
Base Size Version Path
0x00400000 0xd3000 1.01.0001.0000 C:\Program Files\ZBasic\IDE\ZBasicIDE.exe
0x7c900000 0xb0000 5.01.2600.2180 C:\WINDOWS\system32\ntdll.dll
0x7c800000 0xf4000 5.01.2600.2945 C:\WINDOWS\system32\kernel32.dll
0x77d40000 0x90000 5.01.2600.2622 C:\WINDOWS\system32\USER32.dll
0x77f10000 0x47000 5.01.2600.2818 C:\WINDOWS\system32\GDI32.dll
0x763b0000 0x49000 6.00.2900.2180 C:\WINDOWS\system32\comdlg32.dll
0x77f60000 0x76000 6.00.2900.2937 C:\WINDOWS\system32\SHLWAPI.dll
0x77dd0000 0x9b000 5.01.2600.2180 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 0x91000 5.01.2600.2180 C:\WINDOWS\system32\RPCRT4.dll
0x77c10000 0x58000 7.00.2600.2180 C:\WINDOWS\system32\msvcrt.dll
0x5d090000 0x9a000 5.82.2900.2982 C:\WINDOWS\system32\COMCTL32.dll
0x7c9c0000 0x815000 6.00.2900.2951 C:\WINDOWS\system32\SHELL32.dll
0x76390000 0x1d000 5.01.2600.2180 C:\WINDOWS\system32\IMM32.dll
0x774e0000 0x13d000 5.01.2600.2726 C:\WINDOWS\system32\ole32.dll
0x773d0000 0x103000 6.00.2900.2982 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
0x5ad70000 0x38000 6.00.2900.2180 C:\WINDOWS\system32\uxtheme.dll
0x16000000 0x28000 3.01.0000.0121 C:\Program Files\Trillian\events.dll
0x76b40000 0x2d000 5.01.2600.2180 C:\WINDOWS\system32\WINMM.dll
0x7c340000 0x56000 7.10.3052.0004 C:\Program Files\Trillian\MSVCR71.dll
0x10000000 0x7000 2.03.0000.0000 C:\Program Files\Fujitsu\Fujitsu Hotkey Utility\VFuj02b1.dll
0x20000000 0x2c5000 5.01.2600.2180 C:\WINDOWS\system32\xpsp2res.dll |
the
|
|
| Back to top |
|
 |
spamiam
Joined: 13 Nov 2005
|
|
Posted: 15 October 2006, 1:54 AM Post subject: |
|
|
I have emailed this to DON, but I also post it here for interest of other list members.
My Kernel32 is the same as Mikes, and I get a crash as it attempts to "Go" after a compile, occasionally. Using Sin XP Home which was upgraded over Win98SE
-Tony
ZBasicIDE.exe pid: 960
Command line: "F:\Program Files\ZBasic\IDE\ZBasicIDE.exe"
Base Size Version Path
0x00400000 0x106000 1.01.0002.0000 F:\Program Files\ZBasic\IDE\ZBasicIDE.exe
0x7c900000 0xb0000 5.01.2600.2180 C:\WINDOWS\system32\ntdll.dll
*** Loaded C:\WINDOWS\system32\kernel32.dll differs from file image:
*** File timestamp: Wed Jul 05 06:55:00 2006
*** Loaded image timestamp: Wed Jul 05 06:55:01 2006
*** 0x7c800000 0xf4000 5.01.2600.2945 C:\WINDOWS\system32\kernel32.dll
0x77d40000 0x90000 5.01.2600.2622 C:\WINDOWS\system32\USER32.dll
0x77f10000 0x47000 5.01.2600.2818 C:\WINDOWS\system32\GDI32.dll
0x763b0000 0x49000 6.00.2900.2180 C:\WINDOWS\system32\comdlg32.dll
0x77f60000 0x76000 6.00.2900.2937 C:\WINDOWS\system32\SHLWAPI.dll
0x77dd0000 0x9b000 5.01.2600.2180 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 0x91000 5.01.2600.2180 C:\WINDOWS\system32\RPCRT4.dll
0x77c10000 0x58000 7.00.2600.2180 C:\WINDOWS\system32\msvcrt.dll
0x5d090000 0x9a000 5.82.2900.2982 C:\WINDOWS\system32\COMCTL32.dll
0x7c9c0000 0x815000 6.00.2900.2951 C:\WINDOWS\system32\SHELL32.dll
0x76390000 0x1d000 5.01.2600.2180 C:\WINDOWS\system32\IMM32.dll
0x774e0000 0x13d000 5.01.2600.2726 C:\WINDOWS\system32\ole32.dll
0x773d0000 0x103000 6.00.2900.2982 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
0x5ad70000 0x38000 6.00.2900.2180 C:\WINDOWS\system32\uxtheme.dll
0x10000000 0x7000 9.79.0025.0001 C:\Program Files\Logitech\MouseWare\System\LgWndHk.dll
0x00ba0000 0x1e000 1.01.0000.0000 C:\Program Files\Common Files\Logitech\Scrolling\LgMsgHk.dll
|
|
| Back to top |
|
 |
mdown
Joined: 03 Feb 2006
Location: Dallas, Texas
|
|
Posted: 29 March 2007, 15:50 PM Post subject: |
|
|
Along the same lines as before I have more data they may help Don. Just after downloading, the same bug occurs. Now that I am running Visual Studio i get more detailed info as to where and why. see attached pics.
I get the first error then i click ingore and then get the second.
-MikeD
| Description: |
| 2nd Error after pressing ignore |
|
| Filesize: |
20.75 KB |
| Viewed: |
3666 Time(s) |

|
| Description: |
|
| Filesize: |
21.07 KB |
| Viewed: |
3666 Time(s) |

|
|
|
| Back to top |
|
 |
pjc30943
Joined: 02 Dec 2005
|
|
Posted: 07 December 2007, 22:48 PM Post subject: |
|
|
Exact same output as mdown; this crash occurs about a dozen times a day and is quite frustrating.
In general it occurs when downloading, and in particular, during verification of the download.
|
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Location: Portland, OR
|
|
Posted: 08 December 2007, 23:30 PM Post subject: |
|
|
| mdown wrote: | | Along the same lines as before I have more data they may help Don. | Unfortunately, just knowing that an invalid pointer was passed to the deallocation routine doesn't help much. We've been aware of that fact all along. The more important information is exactly where the app was executing at the time and what caused it to attempt to free the invalid pointer. If we were able to reproduce the problem here (so far, we cannot) we could fairly easily track down the cause of the problem and probably fix it.
So far, our hypothesis is that the cause of the problem is either an unknown incompatibility with earlier or later versions of the system DLLs and/or a difference in the order or timing of user interface events caused by differences in the actual human-computer interaction.
We would be elated to be able to find the cause of the problem and correct it. If someone could take the time to describe in excruciating detail the exact keyboard, mouse and display interaction that leads to the problem we might be able to reproduce the problem using that data.
|
|
| Back to top |
|
 |
GTBecker
Joined: 18 Jan 2006
Location: Cape Coral
|
|
Posted: 08 December 2007, 23:54 PM Post subject: Reproduceable Bug that crashes IDE |
|
|
> ... describe in excruciating detail the exact keyboard, mouse and
display interaction that leads to the problem ...
Sounds like a great legitimate application for a keystroke recorder,
normally reserved for spying. There are many free ones, it appears,
although I can't vouch for any of them. Also, doesn't Microsoft Media
Encoder take a screen as input? Perhaps one can record a "video" of the
necessary path to failure.
Tom
|
|
| Back to top |
|
 |
|