Bug 118 - crashes on start
Status:
RESOLVED FIXED
Component:
Core :: Win32
Version:
0.3.0
Hardware:
PC Windows 2000
Importance:
P3 critical
Target Milestone:
---
Assignee:
Raymond Penners
URL:
Depends on:
Blocks:
Reported:
Sep 30 2002 18:06:36 UTC
by:
Matt Kraai
Modified:
Oct 22 2002 01:56:53 UTC
| Id | Who | When | Size | Type |
|---|---|---|---|---|
| 9 | crash log | |||
| Matt Kraai | Sep 30 2002 18:08:41 UTC | 32416 | text/plain | |
| 10 | Here is the output of the debugging executable. It continues printing mouse_hook lines until I dismiss the dialog. | |||
| Matt Kraai | Oct 7 2002 14:21:52 UTC | 6427 | text/plain | |
| Who | When | What | Removed | Added |
|---|---|---|---|---|
| Raymond Penners | Oct 3 2002 08:23:00 UTC | version | unspecified | 0.2.0 |
| Matt Kraai | Oct 14 2002 16:25:53 UTC | version | 0.2.0 | 0.3.0 |
| Raymond Penners | Oct 17 2002 08:40:17 UTC | status | NEW | ASSIGNED |
| Raymond Penners | Oct 17 2002 11:14:28 UTC | status | ASSIGNED | RESOLVED |
| resolution | FIXED |
Description
Matt Kraai Sep 30 2002 18:06:36 UTC
When I start Workrave, it immediately crashes. The following dialog is displayed: Workrave.exe - Application Error The instruction at "0x0126c8d0" referenced memory at "0x00000000". The memory could not be "written". Click OK to terminate the program Click on CANCEL to debug the program I'll attach the log generated after I clicked on Cancel.
Comment 1
Matt Kraai Sep 30 2002 18:08:41 UTC
Created attachment 9 crash log
Comment 2
Raymond Penners Oct 3 2002 07:51:52 UTC
A couple of questions, as I cannot reproduce this (and haven't heard similar reports from others): - Are you running 0.1.0, or 0.2.0 ? - Are you running any other Workrave-like tool ? (tools monitoring user input may conflict with each other). - You noted that you are running W2000. Have you installed anything worth noting, such as a service pack installed? - Do you have any other programs installed that are built using Gtk, such as the Gimp for example?
Comment 3
Matt Kraai Oct 3 2002 08:01:42 UTC
> - Are you running 0.1.0, or 0.2.0 ? This report was based on 0.2.0, but a similar problem occurred with 0.1.0. The address of the violating instruction was different, and I wasn't able to find the log. > - Are you running any other Workrave-like tool ? (tools monitoring user input may conflict with each other). I'm running OosTime now, but I wasn't when this crash occurred. > - You noted that you are running W2000. Have you installed anything worth noting, such as a service pack installed? Microsoft Windows 2000 5.00.2195 Service Pack 2 > - Do you have any other programs installed that are built using Gtk, such as the Gimp for example? Yes, I have WinGimp 1.2.3 installed, and it works.
Comment 4
Raymond Penners Oct 3 2002 08:23:00 UTC
Could you please try deinstalling WinGimp (Gtk specifically) to see if that corrects the problem? Make sure that all Gtk DLLs are removed from the system. Perhaps Workrave is mistakenly linking to the Gtk DLLs provided by WinGimp instead of its own...
Comment 5
Matt Kraai Oct 3 2002 08:39:15 UTC
Uninstalled WinGimp, no change.
Comment 6
Raymond Penners Oct 7 2002 13:10:15 UTC
I've compiled a debug version that hopefully gives some more insight in what is happening. Could you please try the following?: 1) Download: http://workrave.sourceforge.net/files/workrave-win32-20021007-installer.exe 2) Download: http://workrave.sourceforge.net/files/workrave-win32-20021007-debug.exe 3) Install the installer version. 4) Replace \Program files\Workrave\Workrave.exe by the debug.exe. 5) Start the program The debug version generates some debugging output. Could you please send that to us? Thanks in advance.
Comment 7
Matt Kraai Oct 7 2002 14:21:52 UTC
Created attachment 10 Here is the output of the debugging executable. It continues printing mouse_hook lines until I dismiss the dialog.
Comment 8
Raymond Penners Oct 7 2002 21:01:37 UTC
Ah, now we are getting somewhere, it looks like a problem in harpoon.dll, our user input monitor. You mention it repeatedly prints the last line of your log?: >>> Win32InputMonitor::mouse_hook 512, (323, 513, 0) Are all these lines unique, or do the numbers printed vary? (323,513) is should equal your mouse coordinates. Do these numbers change when your mouse is moved?
Comment 9
Matt Kraai Oct 8 2002 08:36:15 UTC
It prints the last type of line when I move the mouse, and the numbers in parentheses do change. I'm not sure about the first, but the rest all appear *after* the dialog.
Comment 10
Raymond Penners Oct 8 2002 14:53:19 UTC
Hmm, if you see mouse_hooks while you are moving the mouse, that means that the input monitor is running just fine. The last non input monitor entry appears to be MainWindow::init, so that should be where the crash is then. I'm still a bit puzzled... I'll get back to you later.
Comment 11
Matt Kraai Oct 14 2002 16:25:53 UTC
This bug is still present in 0.3.0, though the address of the offending instruction is now 0x0128e0e8.
Comment 12
Joe Schwendt Oct 15 2002 06:45:00 UTC
I can confirm this on Win2K SP3 w/ie6 sp1. This was using a fresh install of Workrave v0.3. Please let me know if I can help in resolving this bug. Thanks, Joe.
Comment 13
Raymond Penners Oct 17 2002 08:04:02 UTC
I think we've got this nailed down now, with the help of Joe Schwendt. On his machine, there was a copy of zlib.dll in c:\winnt\system32. Workrave loads that copy, instead of its own (c:\program files\workrave\lib\zlib.dll), resulting in the crash. Matt, could you please check if your problem is the same? You probably need to uninstall the Gimp/Win32 again, and move c:\winnt\system32\zlib.dll out of the way if it exists. So, in order to solve this bug once and for all I need to figure out how to force Workrave to load DLLs from its own path first...
Comment 14
Matt Kraai Oct 17 2002 08:18:27 UTC
Yep, renaming c:\winnt\system32\zlib.dll to c:\winnt\system32\zlib.dll~ fixes Workrave. Thanks.
Comment 15
Raymond Penners Oct 17 2002 11:14:28 UTC
Fixed, it should now be safe to place your old/faulty zlib.dll in c:\winnt\system32 again...