pgprof x64 windows problem

Hi,

I’m using the PGI Fortran v11.9, with Visual studio 2008 on a windows 7 x64 platform, and I have a problem running the pgprof aplication. After it starts, I get the following Java related errors :

java.util.concurrent.ExecutionException: java.lang.NumberFormatException: For in
put string: “0”
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at javax.swing.SwingWorker.get(Unknown Source)
at PGInitTask.done(PGInitTask.java:58)
at javax.swing.SwingWorker$5.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Sour
ce)
at sun.swing.AccumulativeRunnable.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(
Unknown Source)
at javax.swing.Timer.fireActionPerformed(Unknown Source)
at javax.swing.Timer$DoPostEvent.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NumberFormatException: For input string: “0”
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at Profile.parseFile(Profile.java:608)
at Profile.(Profile.java:768)
at Profile.(Profile.java:737)
at Jpgprof.initProfiles(Jpgprof.java:1903)
at Jpgprof.fileInit(Jpgprof.java:387)
at PGInitTask.doInBackground(PGInitTask.java:44)
at PGInitTask.doInBackground(PGInitTask.java:21)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I check and set the environmental variables PGI_JAVA to c:\Program Files\PGI\win64\11.9\bin\java, but the problem remains. Can anyone help me with this.
Thanks,
Ljuba.

Hi Ljuba,

I think you’re encountering a known issue due to an improperly formatted pgprof.out. The issue was fixed in our 12.0 release.

The two options here are for you to upgrade to the latest PGI version or you can manually edit the pgprof.out file to fix to the formatting issue.

  • Mat

Hi Mat,

Thank you for your quick answer. It was very helpful, since I was spending a quit a lot of time trying to solve this problem. Since I don’t plan to upgrade in 12.0 release is some time in the close future (money problem), just for my information, how complicated is to manually fix formatting issue, and is there any guide (document) in which is explained how to do this procedure.
Once again, thank you for your help.

Ljuba

Ljuba,

This isn’t a standard procedure that we have documentation for. When it has been encountered in the past it was resolved via the upgrade.

Since that isn’t an option for you, can you either post the offending line from your pgprof.out file or send the pgprof.out file to trs@pgroup.com with instructions to forward to donb? We will be able to get something to work for you.

–Don