This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 119101 - Divide by zero on heap analysis
Summary: Divide by zero on heap analysis
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-16 17:54 UTC by _ gsporar
Modified: 2007-10-17 14:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gsporar 2007-10-16 17:54:45 UTC
Running the daily build from 2007-10-14 on JDK6u2 on Ubuntu 7.04.

I open a binary heap dump file and use the experimental Analysis feature to run the "Collapse (Weak)HashMaps" rule.  I
get this error:

java.lang.ArithmeticException: / by zero
	at org.netbeans.modules.profiler.heapwalk.memorylint.rules.CollapsedHashMap.scanHashmap(CollapsedHashMap.java:96)
	at org.netbeans.modules.profiler.heapwalk.memorylint.rules.CollapsedHashMap.perform(CollapsedHashMap.java:74)
	at org.netbeans.modules.profiler.heapwalk.memorylint.IteratingRule.perform(IteratingRule.java:94)
	at org.netbeans.modules.profiler.heapwalk.memorylint.MemoryLint.process(MemoryLint.java:85)
	at org.netbeans.modules.profiler.heapwalk.AnalysisController$1.run(AnalysisController.java:66)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)


The heap dump I used is a rather large one that I got from thurka and jis.
Comment 1 Petr Nejedly 2007-10-17 14:37:53 UTC
profiler/modules/main/src/org/netbeans/modules/profiler/heapwalk/memorylint/rules/CollapsedHashMap.java,v1.2