"Failed to remove item" MutableItemList error in food shop (reproducible save attached)
issueid=1009 05-08-2012 03:13 PM
Junior Member
Number of reported issues by aquavires: 17
"Failed to remove item" MutableItemList error in food shop (reproducible save attached)

Here's my troll's diary:

  • visited 2 dungeons
  • Picked up all loot encountered
  • Learnt Detect Item Status, 'a'pplied to all items in inventory
  • Returned to Terinyo
  • Sold 1 weapon, bought+ate 1 raw meat
  • Decided to pick up all food in the shop, to stack in a corner


When I pick up about half of the food...
Code:
A controlled JADE error occurred.
Please see the stack trace for details.

*** System error ***


--- Basic information: ---

Game time: 0y, 1m, 27d, 10h, 25m, 8s

--- User settings: ---

'jade.directory.base' = 'C:\Users\User\.jade'
'jade.impl.generator.character' = 'de.adom.jade.ui.chargen.ascii.ASCIICharacterGenerator'
'jade.startup.lastVersion' = '0.2.6'
'jade.ui.ascii.cursor.block' = 'false'
'jade.ui.ascii.immersiveMode' = 'false'
'jade.ui.ascii.map.spotlight.bold' = 'false'
'jade.ui.ascii.map.spotlight.bright' = 'true'
'jade.ui.ascii.map.updates.continuous' = 'true'
'jade.ui.ascii.map.surroundings.dark' = 'false'
'jade.ui.ascii.map.font.size' = '16'
'jade.ui.ascii.messages.location' = 'top'
'jade.ui.ascii.messages.font.size' = '12'
'jade.ui.ascii.messages.rows' = '6'
'jade.ui.ascii.statistics.location.left' = 'true'
'jade.ui.ascii.statistics.font.size' = '12'
'jade.ui.ascii.statistics.memorydisplay' = 'MeterAndText'
'jade.ui.keyboard.bindings' = 'ADOM_Classic'

--- Caused by: ---

de.adom.jade.JadeError: Failed to remove item 'de.adom.jade.items.list.food.IronRation@146cb24/iron ration (p: 35gp)' from the item list 'de.adom.jade.items.MutableItemList@9be55' because it could not be found.
	at de.adom.jade.items.MutableItemList.remove(SourceFile:266)
	at de.adom.jade.world.complexes.locations.maps.LocationMap.removeItemAt(SourceFile:2259)
	at de.adom.jade.beings.brains.PCBrain.pickupItemsImpl(SourceFile:626)
	at de.adom.jade.beings.brains.AbstractBrain.pickupItems(SourceFile:485)
	at de.adom.jade.beings.Being.doPickup(SourceFile:5274)
	at de.adom.jade.ui.commands.c.executeImpl(SourceFile:50)
	at de.adom.jade.ui.commands.Command.execute(SourceFile:621)
	at de.adom.jade.beings.brains.PCBrain.doActImpl(SourceFile:154)
	at de.adom.jade.beings.brains.AbstractBrain.doAct(SourceFile:400)
	at de.adom.jade.beings.Being.actImpl(SourceFile:830)
	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:141)

--- System information: ---

jnlpx.remove: 'false'
file.encoding.pkg: 'sun.io'
java.home: 'C:\Program Files\Java\jre7'
deployment.security.askgrantdialog.notinca: 'true'
deployment.repository.askdownloaddialog.show: 'true'
deployment.system.security.trusted.jssecerts: 'C:\\Program Files\\Java\\jre7\\lib\security\trusted.jssecerts'
sun.java2d.d3d: 'false'
deployment.console.startup.mode: 'HIDE'
jnlpx.offline: 'false'
java.endorsed.dirs: 'C:\Program Files\Java\jre7\lib\endorsed'
jnlpx.relaunch: 'true'
deployment.security.sandbox.jnlp.enhanced: 'true'
deployment.system.security.blacklist: 'C:\\Program Files\\Java\\jre7\\lib\security\blacklist'
deployment.javaws.concurrentDownloads: '4'
deployment.security.sandbox.awtwarningwindow: 'true'
sun.os.patch.level: 'Service Pack 1'
java.vendor.url: 'http://java.oracle.com/'
deployment.security.blacklist.check: 'true'
deployment.user.security.trusted.jssecacerts: 'C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\security\trusted.jssecacerts'
deployment.javaws.home.jnlp.url: 'http://java.sun.com/products/javawebstart'
java.version: '1.7.0_01'
deployment.javapi.trace.filename: ''
deployment.max.output.file.size: '10'
java.vendor.url.bug: 'http://bugreport.sun.com/bugreport/'
deployment.user.security.trusted.cacerts: 'C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\security\trusted.cacerts'
java.protocol.handler.pkgs: 'com.sun.javaws.net.protocol|com.sun.deploy.net.protocol'
javaplugin.proxy.config.type: 'direct'
deployment.user.tmp: 'C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\tmp'
user.name: 'User'
deployment.user.logdir: 'C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\log'
sun.io.unicode.encoding: 'UnicodeLittle'
deployment.cache.max.size: '-1'
sun.jnu.encoding: 'Cp1252'
java.runtime.name: 'Java(TM) SE Runtime Environment'
jnlpx.home: 'C:\\Program Files\\Java\\jre7\\bin'
deployment.system.security.trusted.publishers: 'C:\\Program Files\\Java\\jre7\\lib\security\trusted.publishers'
java.specification.name: 'Java Platform API Specification'
deployment.security.mixcode: 'ENABLE'
user.timezone: 'Australia/Perth'
deployment.browser.vm.mozilla: 'true'
deployment.security.SSLv3: 'true'
deployment.proxy.override.hosts: ''
user.script: ''
path.separator: ';'
deployment.javaws.installURL: 'http://java.sun.com/products/autodl/j2se'
deployment.javaws.ssv.enabled: 'true'
jnlpx.heapsize: '-1,805306368'
file.encoding: 'Cp1252'
deployment.user.security.trusted.publishers: 'C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\security\trusted.publishers'
sun.java.command: 'com.sun.javaws.Main C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\8\35dd4888-3829ebc9'
deployment.javapi.log.filename: ''
deployment.user.cachedir: 'C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\cache'
deployment.javaws.cache.update: 'false'
deployment.security.validation.crl: 'false'
java.io.tmpdir: 'C:\Users\User\AppData\Local\Temp\'
sun.awt.warmup: 'true'
user.language: 'en'
line.separator: '
'
deployment.system.tray.icon: 'false'
deployment.user.security.policy: 'file:/C:/Users/User/AppData/LocalLow/Sun/Java/Deployment/security/java.policy'
jnlpx.jvm: 'C:\Program Files\Java\jre7\bin\javaw.exe'
java.vm.info: 'mixed mode'
sun.desktop: 'windows'
java.vm.specification.name: 'Java Virtual Machine Specification'
deployment.max.output.files: '5'
deployment.update.mime.types: 'true'
deployment.security.browser.keystore.use: 'true'
deployment.security.jsse.hostmismatch.warning: 'true'
deployment.system.security.cacerts: 'C:\\Program Files\\Java\\jre7\\lib\security\cacerts'
deployment.proxy.type: '3'
deployment.user.security.trusted.jssecerts: 'C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\security\trusted.jssecerts'
jnlp.versionEnabled: 'true'
deployment.security.password.cache: 'true'
deployment.javaws.shortcut: 'ASK_IF_HINTED'
java.awt.printerjob: 'sun.awt.windows.WPrinterJob'
deployment.security.https.warning.show: 'false'
deployment.javaws.autodownload: 'ALWAYS'
deployment.proxy.bypass.local: 'false'
user.country.format: 'AU'
http.auth.serializeRequests: 'true'
deployment.javaws.logFileName: ''
os.name: 'Windows 7'
java.specification.vendor: 'Oracle Corporation'
deployment.javaws.uninstall.shortcut: 'false'
deployment.system.security.jssecacerts: 'C:\\Program Files\\Java\\jre7\\lib\security\jssecacerts'
deployment.system.security.oldcacerts: 'C:\Program Files\Java\jre7\lib\security\cacerts'
java.vm.name: 'Java HotSpot(TM) Client VM'
deployment.security.askgrantdialog.show: 'true'
sun.awt.enableExtraMouseButtons: 'true'
java.library.path: 'C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jre7\bin;C:\Program Files\Mozilla Firefox;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:\Program Files\AMD APP\bin\x86;C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\MinGW\bin\;C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Windows Live\Shared;C:\Program Files\doxygen\bin;C:\Program Files\Git\cmd;C:\Program Files\TortoiseSVN\bin;C:\Program Files\FAHClient;"C:\Program Files\Java\jre7\bin";.'
java.class.version: '51.0'
deployment.control.panel.log: 'false'
deployment.system.security.trusted.clientauthcerts: 'C:\\Program Files\\Java\\jre7\\lib\security\trusted.clientcerts'
deployment.trace: 'false'
deployment.security.clientauth.keystore.auto: 'true'
deployment.security.validation.ocsp: 'false'
deployment.javapi.cache.update: 'false'
deployment.browser.vm.iexplorer: 'true'
deployment.cache.jarcompression: '0'
deployment.system.security.trusted.libraries: 'C:\\Program Files\\Java\\jre7\\lib\security\trusted.libraries'
deployment.security.validation.ocsp.publisher: 'false'
deployment.javaws.update.timeout: '1500'
sun.boot.library.path: 'C:\Program Files\Java\jre7\bin'
sun.management.compiler: 'HotSpot Client Compiler'
java.awt.graphicsenv: 'sun.awt.Win32GraphicsEnvironment'
deployment.user.extdir: 'C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\ext'
user.variant: ''
deployment.system.security.trusted.certs: 'C:\\Program Files\\Java\\jre7\\lib\security\trusted.certs'
deployment.system.security.oldjssecacerts: 'C:\Program Files\Java\jre7\lib\security\jssecacerts'
deployment.proxy.same: 'false'
deployment.security.authenticator: 'true'
deployment.javaws.traceFileName: ''
deployment.user.security.trusted.clientauthcerts: 'C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\security\trusted.clientcerts'
java.vm.specification.version: '1.7'
deployment.user.security.blacklist: 'C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\security\blacklist'
deployment.system.cachedir: 'C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\SystemCache'
awt.toolkit: 'sun.awt.windows.WToolkit'
sun.cpu.isalist: 'pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86'
java.ext.dirs: 'C:\Program Files\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext'
os.version: '6.1'
user.home: 'C:\Users\User'
deployment.user.security.trusted.certs: 'C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\security\trusted.certs'
trustProxy: 'true'
java.vm.vendor: 'Oracle Corporation'
deployment.javafx.mode.enabled: 'true'
deployment.javapi.lifecycle.exception: 'false'
deployment.javaws.install: 'IF_HINT'
user.dir: 'C:\Program Files\RSSOwl'
deployment.cache.enabled: 'true'
sun.cpu.endian: 'little'
jnlpx.splashport: '51192'
deployment.security.notinca.warning: 'true'
jnlpx.vmargs: '-Xmx768m -Djnlp.versionEnabled=true -Dsun.java2d.d3d=false'
java.vm.version: '21.1-b02'
deployment.sec...
Issue Details
Issue Number 1009
Project ADOM II (formerly known as JADE)
Category Gameplay
Status Fixed
Priority 5 - Medium
Affected Version ADOM II 0.2.6
Fixed Version ADOM II 0.2.7
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




05-11-2012 02:50 PM
Junior Member
After the above error, I had saved my game. I loaded it and tried to continue my food-stacking quest. A few moves later, the same error occured. I passed the new and original stack traces into a Diff tool, and here are the results:

Code:
-Game time: 0y, 1m, 27d, 10h, 25m, 8s
+Game time: 0y, 1m, 27d, 10h, 29m, 21s
 
-de.adom.jade.JadeError: Failed to remove item 'de.adom.jade.items.list.food.IronRation@146cb24/iron ration (p: 35gp)' from the item list 'de.adom.jade.items.MutableItemList@9be55' because it could not be found.
+de.adom.jade.JadeError: Failed to remove item 'de.adom.jade.items.list.food.StandardRation@642ebd/standard ration (p: 11gp)' from the item list 'de.adom.jade.items.MutableItemList@93afae' because it could not be found.

-jnlpx.offline: 'false'
+jnlpx.offline: 'true'

-sun.java.command: 'com.sun.javaws.Main C:\Users\User\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\8\35dd4888-3829ebc9'
+sun.java.command: 'com.sun.javaws.Main C:\\Users\\User\\AppData\\LocalLow\\Sun\\Java\\Deployment\\cache\\6.0\\8\\35dd4888-3829ebc9'

-java.vm.info: 'mixed mode'
+java.vm.info: 'mixed mode, sharing'

+jnlp.application.href: 'http://www.adom.de/adom-ii/downloads/javawebstart/0.2.6/adom-ii.jnlp'

-jnlpx.splashport: '51192'
+jnlpx.splashport: '49165'

-jnlpx.vmargs: '-Xmx768m -Djnlp.versionEnabled=true -Dsun.java2d.d3d=false'
+jnlpx.vmargs: '-Xmx768m -Djnlp.versionEnabled=true -Dsun.java2d.d3d=false -Djnlp.application.hre...
So, I decided to save again and clone the save file (attached), and I'm able to reproduce the errors on my machine.

My PC is in the food shop:
Code:
###########
@%%.*..%..#
#*%*..%X..#
#.X..%%%*.#
#..*%.....#
#@...%....# <--
#.........#
#.........#
###########
The squares marked 'X' are error-triggering sites, each containing 2 iron rations + 1 raw meat. When I pick up (via ';') both iron rations simultaneously, the error occurs. But, nothing happens if I pick up one iron ration at a time. There seems to be an element of randomness -- errors don't always trigger. If exiting the "Select items to pick" menu by 'z'/'Z' doesn't cause an error, trying reloading the attached save and exiting by [SPACE] (and vice-versa).

Other wierdness: On the row marked '<--' are 2 squares of food (the PC is standing on one). The message window says the squares have 1 iron ration and 1 standard ration respectively (when I standing on the food, or Ctrl+'l'ook at them), but pressing ';' lets me pick up 2 copies of the ration from 1 square.

05-15-2012 08:48 PM
The Creator
Fixed for ADOM II 0.2.7. Please send your real name to creator(at)ancientdomainsofmystery.com for it to be included in the credits. (If you were already asked to do so you can ignore this message. Please include a reference to the bug or RFE you are credited for.)

+ Reply