Bug #1910

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

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

Target version:
Start date:
Due date:
% Done:



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(
at projections.analysis.Analysis.hasSummaryData(
at projections.gui.MainWindow$2.done(
at javax.swing.SwingWorker$
at javax.swing.SwingWorker$
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(
at javax.swing.Timer.fireActionPerformed(
at javax.swing.Timer$
at java.awt.event.InvocationEvent.dispatch(
at java.awt.EventQueue.dispatchEventImpl(
at java.awt.EventQueue.access$500(
at java.awt.EventQueue$
at java.awt.EventQueue$
at Method)
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForFilters(
at java.awt.EventDispatchThread.pumpEventsForFilter(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(


#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