Ticket #201 (new defect)

Opened 10 months ago

Last modified 9 months ago

Monitor fails on Windows Vista

Reported by: fcohen Owned by:
Priority: minor Milestone:
Version: 5.3 Keywords:
Cc:

Description (last modified by fcohen) (diff)

The Resource Monitor crashes with a JVM Divide-by-Zero error when TestMaker attempts to reset and start the monitor. This happens on Windows Vista (no service pack installed.)

C:\PROGRA~1\PUSHTO~1\PTTMON~1>java -cp PTTMonitor.jar

com.pushtotest.testnetwork.monitor.PTTMonitor

C:\Users\FRANKC~1\AppData?\Local\Temp\

PTTMonitor V2.1

A System Monitor by PushToTest

For more info check: http://www.pushtotest.com or send email to info@pushtotest .com


PTTMonitor Started

Input ::RESET

command:RESET!!!

Input ::START

command:START!!!

#

# An unexpected error has been detected by Java Runtime Environment:

Input ::STOP

#

# EXCEPTION_INT_DIVIDE_BY_ZERO (0xc0000094) at pc=0x10001102command:STOP!!! , pid=688, tid=4288

#

# Java VM: Java HotSpot?(TM) Client VM (1.6.0_02-b05 mixed mode)

# Problematic frame:

# C [PTTMonitor.dll+0x1102]

#

Input ::RESET# An error report file with more information is saved as hs_err_pid 688.log

command:RESET!!!

Input ::START

command:START!!!

#

# If you would like to submit a bug report, please visit:

# http://java.sun.com/webapps/bugreport/crash.jsp

#

Change History

Changed 10 months ago by fcohen

  • description modified (diff)

Changed 10 months ago by fcohen

  • description modified (diff)

Changed 9 months ago by fcohen

  • version changed from 5.2 to 5.1

Changed 9 months ago by fcohen

  • priority changed from critical to minor

We spent the better part of two days trying to solve this issue. We patched PTTMonitor so it will not crash on Vista. However, we did not find a way to read the CPU and Network settings in Vista. PushToTest TestMaker 5.1 will ship with the partial fox. The monitors will register 0 for CPU and Network utilization on Vista. We will wait for Vista to mature and for a solution to emerge from the Vista community.

Here is Max's write-up of the issue:

Frank, the problem is basically that the PDH services on windows are not returning values (returns 0) when ran in Vista. Searching in google for similar cases to the one that takes our attention right now, we found that another programmer had a resource monitor that worked in XP but didn’t on Vista unless the application is running with admin privileges (see this URL http://blogs.msdn.com/windowsvistasecurity/archive/2007/01/05/windows-vista-security-guide-1-2-released.aspx_). We asked for a PC running Vista and installed TestMaker in it. After studying how to run applications with admin privileges in Vista, we ran both TestMaker and PTTMonitor in privileged mode but have still the same problem of CPU giving no values. The application has several levels: It runs Java which makes JNI calls to a c DLL which in turn calls the Windows DLLs. So, it may be a little complex to make that run in priviliged way, so we are not sure we are taking all the necessary steps. We will keep looking for a way to be completely sure the problems are just security issues, and if not we will need to go back and look for another way to get that information from Vista machines. That means, a forth PTTmonitor flavor.

-Max

Changed 9 months ago by fcohen

  • version changed from 5.1 to 5.3
Note: See TracTickets for help on using tickets.