Hi,
I'm currently developing a GUI application in python 2.4.3 using the tkinter interface.
The application is supposed to connect to a userset remote server and present the server parameters and
also enable the user to control the server from a remote location.
The problem is the application crashes with a Windows Access Violation error when it tries to update
the view. This occurs when the server sends it's parameters to the connected client (this application)
or when the user tries to change some parameter (for example the scrollbar or the text of a label).
As far as I can tell this happens at random times and at most every second time some of above happens.
I used Windbg 6.8 to get the following description:
(d6c.658): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=00000012 ebx=00c0e930 ecx=00000012 edx=00b41ffc esi=ffffffff edi=00000001
eip=1002ee67 esp=0243e5d0 ebp=0243e714 iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010206
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Python24\DLLs\tcl84.dll
-
tcl84!TclExprFloatError+0x
2827:
1002ee67 8b0f mov ecx,dword ptr [edi] ds:0023:00000001=????????
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Python24\DLLs\tk84.dll -
*** WARNING: Unable to verify checksum for C:\WINDOWS\system32\python
24.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\system32\python
24.dll -
and this call list:
00 tcl84!TclExprFloatError+0x
2827
01 tcl84!Tcl_ExprObj+0x39b
02 0xb398b8
03 0xb92a08
04 0xb398b8
05 0xb398b8
06 0x243f110
07 0xb398b8
08 ntdll!RtlpNtMakeTemporaryK
ey+0x767a
09 tcl84!Tcl_Eval+0x15
0a tcl84!Tcl_GlobalEval+0x1b
0b tk84!Tk_BindEvent+0x93d
0c tk84!Tk_EventObjCmd+0x260
0d tcl84!TclSetCmdNameObj+0x1
5a
0e tcl84!TclEvalObjvInternal+
0x22a
0f python24!PyEval_CallObject
+0x326
10 python24!PyEval_EvalFrame+
0x2220
At first it seemed to be some problem with tkinter and floats so I tried to remove all use of floats in
that part of the my code that called tkinter (for instance "FloatVar()" was changed to "IntVar()")
that I could find which seemed to help some, the problem still exists however (some use of floats and tcl might
still be in the code, I do however want to use floats so I hope there is another way) but only
happens about every 10 or 15 time now when some of the above events is triggered.
If anybody knows anything that might be wrong or know a solution don't hesitate to write it down, I'm quite open for
suggestions and solutions.
Thanks!
Start Free Trial