Hang (99% CPU) when creating Bracers of Defense
issueid=906 04-02-2012 10:36 AM
Junior Member
Number of reported issues by Khym Chanur: 33
Hang (99% CPU) when creating Bracers of Defense

When first entering level 4 of "the unspeakable catacombs of despair", the game froze while consuming 99% of the CPU. Dumping the thread stack from the console always gets me this:

Code:
"Thread-16" prio=10 tid=0x0d004c00 nid=0x2154 runnable [0x7e166000]
   java.lang.Thread.State: RUNNABLE
	at java.util.Random.nextInt(Random.java:253)
	at de.adom.jade.kernel.game.Game.random(SourceFile:466)
	at de.adom.jade.kernel.SC.random(SourceFile:60)
	at de.adom.jade.kernel.SC.OED(SourceFile:242)
	at de.adom.jade.kernel.SC.OED(SourceFile:262)
	at de.adom.jade.items.list.bracers.BracersOfDefense.<init>(SourceFile:57)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at de.adom.jade.kernel.RarityBasedFactory.create(SourceFile:549)
	at de.adom.jade.items.ItemFactory.create(SourceFile:218)
	at de.adom.jade.items.ItemFactory.create(SourceFile:1)
	at de.adom.jade.kernel.RarityBasedFactory.createOneOf(SourceFile:391)
	at de.adom.jade.kernel.SC.newEquipment(SourceFile:135)
	at de.adom.jade.beings.NPC.equip(SourceFile:239)
	at de.adom.jade.beings.list.OrcishChieftain.<init>(SourceFile:97)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at de.adom.jade.kernel.RarityBasedFactory.create(SourceFile:549)
	at de.adom.jade.kernel.RarityBasedFactory.create(SourceFile:345)
	at de.adom.jade.world.complexes.locations.populations.DungeonPopulationCreator.a(SourceFile:60)
	at de.adom.jade.world.complexes.locations.populations.DungeonPopulationCreator.populateImpl(SourceFile:47)
	at de.adom.jade.world.complexes.locations.populations.AbstractPopulationCreator.populate(SourceFile:109)
	at de.adom.jade.world.complexes.locations.maps.LocationMap.setPopulationCreator(SourceFile:1632)
	at de.adom.jade.world.complexes.locations.Location.getMap(SourceFile:274)
	at de.adom.jade.world.complexes.locations.LocationManager.transferToTargetMapOrTemporaryBufferAndAdjustPosition(SourceFile:178)
	at de.adom.jade.beings.brains.PCBrain.enterLocation(SourceFile:417)
	at de.adom.jade.beings.Being.enterLocation(SourceFile:2713)
	at de.adom.jade.world.complexes.locations.Connection.isEnteredBy(SourceFile:280)
	at de.adom.jade.beings.Being.doEnterLocation(SourceFile:2617)
	at de.adom.jade.ui.commands.b.executeImpl(SourceFile:53)
	at de.adom.jade.ui.commands.Command.execute(SourceFile:546)
	at de.adom.jade.beings.brains.PCBrain.doActImpl(SourceFile:152)
	at de.adom.jade.beings.brains.AbstractBrain.doAct(SourceFile:400)
	at de.adom.jade.beings.Being.actImpl(SourceFile:777)
	at de.adom.jade.kernel.actors.AbstractActor.act(SourceFile:58)
	at de.adom.jade.kernel.actors.ActorReference.act(SourceFile:60)
	at de.adom.jade.kernel.GameLoop.run(SourceFile:110)
I'm using Java 1.6.0_26-b03 on Linux.
Issue Details
Issue Number 906
Project ADOM II (formerly known as JADE)
Category Gameplay
Status Duplicate
Priority Unknown
Affected Version ADOM II 0.2.3
Fixed Version (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




04-03-2012 10:08 PM
Junior Member
From stack trace, this is propably related to http://www.adom.de/forums/project.php?issueid=597

04-08-2012 06:44 PM

+ Reply