Project

General

Profile

Bug #1910

java.lang.NullPointerException in projections.analysis.Analysis.hasSumFiles

Added by Thomas Quinn about 1 year ago. Updated about 1 year ago.

Status:
Merged
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
05/14/2018
Due date:
% Done:

0%


Description

I'm trying to analyze some projections traces from ChaNGa (linked with -tracemode projections), and trying to open an sts file gives:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at projections.analysis.Analysis.hasSumFiles(Analysis.java:945)
at projections.analysis.Analysis.hasSummaryData(Analysis.java:592)
at projections.gui.MainWindow$2.done(MainWindow.java:279)
at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

History

#1 Updated by Thomas Quinn about 1 year ago

I think I found the problem: the sts file has a line:
CHARE 50 CkCacheManager<CmiUInt8 > -1
which projections can't parse because of the space.

I'm guessing this has to do with changes to the charm++ compiler.

#2 Updated by Sam White about 1 year ago

  • Assignee set to Ronak Buch

#3 Updated by Ronak Buch about 1 year ago

The sts file is correct, but it should have failed earlier, in fact. What version is reported in the sts file (it should be on the second line of the sts file)?

I recently modified the version in Charm and Projections to version 9.0 to better support IDs for chare arrays of dimension greater than 3. Support for the new files was added in Projections commit 84a995a5e9bac9ac6549590bcc57ae12f1378f2e. If you're using a version older than that, it should complain about a version mismatch and exit rather than causing a NullPointerException.

#4 Updated by Ronak Buch about 1 year ago

  • Status changed from New to In Progress

Oh, wait, sorry, I didn't see the space between "CmiUInt8" and ">". That does indeed seem erroneous and likely due to some change in Charm. I'll take a look.

#5 Updated by Thomas Quinn about 1 year ago

The sts file is version 9. I deleted the space by hand, and projections works.

#7 Updated by Ronak Buch about 1 year ago

  • Status changed from Implemented to Merged

Also available in: Atom PDF