Bug - Not A Bug Out of Memory Error

fewyn

Administrator
Staff member
Anyone else been experiencing this lately? Seems to be happening with every script I've been running.

Debug:
Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=        KoLmafia v17.6 r18149, Windows 10, Java 1.8.0_131
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Please note: do not post this log in the KoLmafia thread of KoL's
 Gameplay-Discussion forum. If you would like the KoLmafia dev team
 to look at it, please write a bug report at kolmafia.us. Include
 specific information about what you were doing when you made this
 and include this log as an attachment.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Timestamp: Sat Jul 15 16:41:19 EDT 2017
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=




Unexpected error, debug log printed.
class java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Unknown Source)
    at java.io.ByteArrayOutputStream.grow(Unknown Source)
    at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)
    at java.io.ByteArrayOutputStream.write(Unknown Source)
    at java.io.ByteArrayOutputStream.writeTo(Unknown Source)
    at net.sourceforge.kolmafia.preferences.Preferences.saveToFile(Preferences.java:837)
    at net.sourceforge.kolmafia.preferences.Preferences.setObject(Preferences.java:788)
    at net.sourceforge.kolmafia.preferences.Preferences.setString(Preferences.java:725)
    at net.sourceforge.kolmafia.preferences.Preferences.setString(Preferences.java:486)
    at net.sourceforge.kolmafia.textui.command.SetPreferencesCommand.setProperty(SetPreferencesCommand.java:156)
    at net.sourceforge.kolmafia.textui.RuntimeLibrary.set_property(RuntimeLibrary.java:6963)
    at sun.reflect.GeneratedMethodAccessor158.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.sourceforge.kolmafia.textui.parsetree.LibraryFunction.execute(LibraryFunction.java:104)
    at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:151)
    at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:417)
    at net.sourceforge.kolmafia.textui.parsetree.UserDefinedFunction.execute(UserDefinedFunction.java:142)
    at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:151)
    at net.sourceforge.kolmafia.textui.parsetree.FunctionReturn.execute(FunctionReturn.java:100)
    at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:417)
    at net.sourceforge.kolmafia.textui.parsetree.UserDefinedFunction.execute(UserDefinedFunction.java:142)
    at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:151)
    at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:417)
    at net.sourceforge.kolmafia.textui.parsetree.Conditional.execute(Conditional.java:96)
    at net.sourceforge.kolmafia.textui.parsetree.If.execute(If.java:82)
    at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:417)
    at net.sourceforge.kolmafia.textui.parsetree.UserDefinedFunction.execute(UserDefinedFunction.java:142)
    at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:151)
    at net.sourceforge.kolmafia.textui.parsetree.Operator.applyTo(Operator.java:447)
    at net.sourceforge.kolmafia.textui.parsetree.Operation.execute(Operation.java:112)
    at net.sourceforge.kolmafia.textui.parsetree.Conditional.execute(Conditional.java:80)

Code:
Installing default certificate validation...Sending login request...
Initializing session for boxwhore...
Refreshing session data...
Synchronizing moon data...
Loading character status...
Retrieving character data...
Seeing what's still unrestricted today...
Done checking allowed items.
Updating inventory...
Examining Meat in closet...
Updating closet...
Retrieving quest data...
Retrieving campground data...
Examining Meat and pulls in storage...
Updating storage...
You are currently a member of Bonus Adventures from Hell
Visiting Floundry in clan VIP lounge
Session data refreshed.
2 days until Festival of Jarlsberg, Moxie bonus tomorrow (not today).
Using data override: data/mallprices.txt
Checking all SVN projects...
relaywtf-vipwtf is at HEAD (r42)
batbrain is at HEAD (r108)
bestbetweenbattle is at HEAD (r21)
ckbstd is at HEAD (r39)
winterbay-mafia-wham is at HEAD (r47)
relaywtf-famswtf is at HEAD (r42)
bumcheekascend-bumcheekascend is at HEAD (r663)
veracity0-vprops is at HEAD (r83)
Ezandora-Guide-branches-Release is at HEAD (r492)
smartstasis is at HEAD (r35)
relaywtf-shopwtf is at HEAD (r42)
bale-relay-campground is at HEAD (r135)
Ezandora-Far-Future-branches-Release is at HEAD (r37)
Ezandora-Detective-Solver-branches-Release is at HEAD (r19)
relaywtf-inventorywtf is at HEAD (r42)
bale-counterchecker is at HEAD (r23)
clilinks is at HEAD (r6)
bale-new-life is at HEAD (r69)
bale-spelunky is at HEAD (r4)
mafiachit is at HEAD (r542)
bale-ocd is at HEAD (r46)
bale-relay-museum is at HEAD (r135)
therazekolmafia-canadv is at HEAD (r95)
bale-relay-topmenu is at HEAD (r135)
mafiarecovery is at HEAD (r35)
kolmafiascripts-shop is at HEAD (r8)
winterbay-mafia-autobasement is at HEAD (r44)
uberpvpoptimizer is at HEAD (r63)
batman-re is at HEAD (r51)
therazekolmafia-eatdrink is at HEAD (r55)
bale-relay-mall_storeLinks is at HEAD (r135)
zlib is at HEAD (r35)
mafia-harvest-data is at HEAD (r4)
relaywtf-wtf is at HEAD (r42)
bale-relay-Monster_Manuel_Improvement is at HEAD (r135)
bale-relay-manor_unlockInfo is at HEAD (r135)
kolmafiascripts-cfstat is at HEAD (r2)
relaywtf-skillswtf is at HEAD (r42)
mafia-harvest is at HEAD (r30)
rlbond86-mafia-scripts-enhanced_inventory_spoilers-trunk is at HEAD (r37)
bale-snojo is at HEAD (r2)
ccascend-snapshot needs updating from (r1169) to (r1174)
formhtml is at HEAD (r1)
ccascend-cc_ascend needs updating from (r1169) to (r1174)
Updating all SVN projects...
Validating repo...
Repo validated.
Updating ccascend-snapshot...
D:\OneDrive\Kolmafia\svn\ccascend-snapshot
At revision 1174
Done.
Validating repo...
Repo validated.
Updating ccascend-cc_ascend...
D:\OneDrive\Kolmafia\svn\ccascend-cc_ascend
U https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/cc_ascend/cc_util.ash
U https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/cc_ascend/cc_bondmember.ash
U https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/cc_ascend/cc_combat.ash
U https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/cc_ascend/cc_aftercore.ash
U https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/cc_ascend/cc_ascend_header.ash
U https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/cc_ascend/cc_awol.ash
U https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/cc_ascend/cc_community_service.ash
U https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/cc_ascend/cc_equipment.ash
U https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/cc_ascend/cc_mr2017.ash
A https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/cc_ascend/cc_zone.ash
https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/cc_ascend
U https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/cc_ascend.ash
U https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/postcheese.ash
U https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts/precheese.ash
https://svn.code.sf.net/p/ccascend/code/cc_ascend/scripts
https://svn.code.sf.net/p/ccascend/code/cc_ascend
At revision 1174
Pushing local updates...
precheese.ash => D:\OneDrive\Kolmafia\scripts\precheese.ash
postcheese.ash => D:\OneDrive\Kolmafia\scripts\postcheese.ash
cc_ascend.ash => D:\OneDrive\Kolmafia\scripts\cc_ascend.ash
cc_zone.ash => D:\OneDrive\Kolmafia\scripts\cc_ascend\cc_zone.ash
cc_mr2017.ash => D:\OneDrive\Kolmafia\scripts\cc_ascend\cc_mr2017.ash
cc_equipment.ash => D:\OneDrive\Kolmafia\scripts\cc_ascend\cc_equipment.ash
cc_community_service.ash => D:\OneDrive\Kolmafia\scripts\cc_ascend\cc_community_service.ash
cc_awol.ash => D:\OneDrive\Kolmafia\scripts\cc_ascend\cc_awol.ash
cc_ascend_header.ash => D:\OneDrive\Kolmafia\scripts\cc_ascend\cc_ascend_header.ash
cc_aftercore.ash => D:\OneDrive\Kolmafia\scripts\cc_ascend\cc_aftercore.ash
cc_combat.ash => D:\OneDrive\Kolmafia\scripts\cc_ascend\cc_combat.ash
cc_bondmember.ash => D:\OneDrive\Kolmafia\scripts\cc_ascend\cc_bondmember.ash
cc_util.ash => D:\OneDrive\Kolmafia\scripts\cc_ascend\cc_util.ash
Done.
Update log for ccascend-cc_ascend:
------
Commit r1170:
Author: asocasno


Create cc_zone file. Initial usage of this for +item. Delay and non-combat info is now available but not yet used.
Replace bedroomHandler with disableAdventureHandling
Some clarifications on when not to YR because we have the outfit or whatever.
Replace banisher chunk of cc_combat with banisherCombatString()
Use weaksauce less often when we are not a Sauceror
BeanCannon now tracked! Yay!
Start (but not use) more generic accessory handler.
Replace some of our kgb settings with mafia ones.
Improve automatic Ashton Kutcher fuel acquisition.
Add Unleash Cowrupption and some other banishers
Fix ProvidePlusNonCombat.
Randomize Palindome option.
Copy from split_string's (string[int]) to a new one to avoid array (from map) issue?
If Mafia thinks we finished the hedge maze but we didn't, revert mafia's tracking.
Try to use the KGB more.
At Oil Peak, if ML is low, use Oil Slacks if we have them.
Try not to use Minions-Be-Gone until we have the Villain Color.
------
Commit r1171:
Author: asocasno


Ugh, coercion screwed up the Combat modifier comparisions.
------
Commit r1172:
Author: asocasno


Note about Black Forest and Beehive issue at least than 3 adventures.
Use Carton of Astral Energy Drinks as additional qualifier for Robo Spleen.
------
Commit r1173:
Author: asocasno


More Bondstab stuff
We can start McMuffin with 4 adventures (not 5).
Typo in fuel check for gremlin::findBanishers. Oops.
------
Commit r1174:
Author: asocasno


Fix snokebombUsed tracking typo.
------
Checking for working copy modifications...
No modifications.
Executing request...
Visiting Mr. Klaw "Skill" Crane Game in clan rumpus room
You acquire an item: stuffed angry cow
Executing request...
Visiting Mr. Klaw "Skill" Crane Game in clan rumpus room
Executing request...
Visiting Mr. Klaw "Skill" Crane Game in clan rumpus room
Visiting Deluxe Mr. Klaw "Skill" Crane Game in clan VIP lounge
Visiting Deluxe Mr. Klaw "Skill" Crane Game in clan VIP lounge
You acquire an item: stuffed key
Visiting Deluxe Mr. Klaw "Skill" Crane Game in clan VIP lounge
Visiting Hermit...
Desired purchase quantity not reached (wanted 2, got 0)
You need 2 more chewing gum on a string to continue.
Unable to acquire 2 worthless items.
Casting Advanced Cocktailcrafting 1 times...
You acquire an item: coconut shell
You acquire an item: magical ice cubes
You acquire an item: little paper umbrella
You acquire an item: little paper umbrella
You acquire an item: coconut shell
Advanced Cocktailcrafting was successfully cast.
Casting Advanced Saucecrafting 1 times...
You acquire scrumptious reagent (5)
Advanced Saucecrafting was successfully cast.
3137 prices updated from http://kolmafia.us/scripts/updateprices.php?action=getmap
Multiple matches for "Spookyraven library key"; using "[7302]Spookyraven library key". (inventorywtf.ash, line 130) Clarify by using one of:
"[1764]Spookyraven library key"
"[7302]Spookyraven library key"


> cc_ascend


Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_util.ash, line 3896)
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_bondmember.ash, line 441)
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_community_service.ash, line 588)
Changing "Sacré Mental" to "Sacr? Mental" would get rid of this message. (cc_community_service.ash, line 2116)
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_ascend.ash, line 6009)
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_ascend.ash, line 11003)
Hello boxwhore, time to explode!
This is version: 1174 Mafia: 18149
This is day 8.
Turns played: 787 current adventures: 122
Current Ascension: License to Adventure
CCS set to null
You acquire an item: soap knife
That's Not a Knife was successfully cast.
Placing items into closet...
Found mimic in slot: 01
Countdown: 1 second...
Waiting completed.
Turn(787): Starting with 122 left at Level: 11
Encounter: 5.0 Exp Bonus: 6.258333333333334
Meat Drop: 80.0 Item Drop: 70.0
HP: 127/163, MP: 41/182
Tummy: 0/0 Liver: 0/16 Spleen: 0/15
ML: 10 control: 10
Delay between adventures... beep boop... 
Countdown: 1 second...
Waiting completed.


Visiting a Science Tent
Encounter: Dr. Gordon Stuart, a Scientist
nextAdventure => Noob Cave
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_util.ash, line 3896)
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_bondmember.ash, line 441)
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_community_service.ash, line 588)
Changing "Sacré Mental" to "Sacr? Mental" would get rid of this message. (cc_community_service.ash, line 2116)
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_ascend.ash, line 6009)
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_ascend.ash, line 11003)
Visiting Floundry in clan VIP lounge
Generating Floundry Locations for the session...
Pre Adventure at Noob Cave done, beep.
About to start a combat indirectly at Noob Cave... (2) accesses required.


Visiting a Science Tent
Encounter: Dr. Gordon Stuart, a Scientist


[788] Dr. Gordon Stuart's Science Tent
Encounter: Eldritch Tentacle named Blrghbrghbrghlblgllblgl
Round 0: boxwhore wins initiative!


[788] Noob Cave
Encounter: Eldritch Tentacle named Blrghbrghbrghlblgllblgl
Round 0: boxwhore loses initiative!
cc_combatHandler: 0
Round 1: boxwhore tries to steal an item!
You acquire an item: eldritch effluvium
You gain 27 Meat.
Round 2: You lose 6 hit points
Round 2: boxwhore attacks!
Round 3: Eldritch Tentacle takes 51 damage.
Round 3: You lose 14 hit points
Round 3: boxwhore attacks!
Round 4: Eldritch Tentacle takes 7 damage.
Round 4: You lose 14 hit points
Round 4: boxwhore attacks!
Round 5: Eldritch Tentacle takes 4 damage.
Round 5: You lose 14 hit points
Round 5: boxwhore attacks!
Round 6: Eldritch Tentacle takes 5 damage.
Round 6: You lose 14 hit points
Round 6: boxwhore attacks!
Round 7: Eldritch Tentacle takes 46 damage.
Round 7: boxwhore wins the fight!
You acquire an item: eldritch effluvium
After Battle: You gain 8 Strengthliness
After Battle: You gain 11 Magicalness
After Battle: You gain 28 Roguishness


Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_util.ash, line 3896)
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_bondmember.ash, line 441)
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_community_service.ash, line 588)
Changing "Sacré Mental" to "Sacr? Mental" would get rid of this message. (cc_community_service.ash, line 2116)
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_ascend.ash, line 6009)
Changing "Sweetbreads Flambé" to "Sweetbreads Flamb?" would get rid of this message. (cc_ascend.ash, line 11003)
Casting Knowing Smile 1 times...
You acquire an effect: Knowing Smile (10)
Knowing Smile was successfully cast.
Post Adventure done, beep.
Unexpected error, debug log printed.
Script execution aborted (java.lang.OutOfMemoryError: Java heap space): (Universal_recovery.ash, line 790)
Autorecovery failed.
A-Boo Peak: 90
Maximizing (1st time may take a while)...
710 combinations checked, best score 19.00
Current HP: 65/163
Expected cold damage: 83 Expected spooky damage: 207
Expected Cold Resist: 14 Expected Spooky Resist: 6 Expected HP Difference: 0
Unexpected error, debug log printed.
Script execution aborted (java.lang.OutOfMemoryError: Java heap space): (cc_util.ash, line 770)


> zlib verbosity


You have the latest use_for_items.txt. Will not check again today.
Checking for updates (running ZLib rev. 35)...
Copy/paste/modify/enter any of the following lines in the CLI to edit settings:


zlib PvP_verbosityWeight = 1.0
zlib har_gen_verbosity = 1
zlib verbosity = 3


> zlib verbosity = 9


Previous value of verbosity: 3
Changed to 9.


> cc_ascend


Hello boxwhore, time to explode!
This is version: 1174 Mafia: 18149
This is day 8.
Turns played: 787 current adventures: 122
Current Ascension: License to Adventure
CCS set to null
Countdown: 1 second...
Waiting completed.
Turn(787): Starting with 122 left at Level: 11
Encounter: 5.0 Exp Bonus: 4.483333333333334
Meat Drop: 90.0 Item Drop: 75.0
HP: 65/163, MP: 31/182
Tummy: 0/0 Liver: 0/16 Spleen: 0/15
ML: 10 control: 10
Delay between adventures... beep boop... 
Countdown: 1 second...
Waiting completed.
A-Boo Peak: 90
Maximizing...
710 combinations checked, best score 19.00
Current HP: 65/163
Expected cold damage: 83 Expected spooky damage: 207
Expected Cold Resist: 14 Expected Spooky Resist: 6 Expected HP Difference: 0
Nevermind, that peak is too scary!
I seem to need to power level, or something... waaaa.
Countdown: 10 seconds...
Countdown: 5 seconds...
Countdown: 4 seconds...
Countdown: 3 seconds...
Countdown: 2 seconds...
Countdown: 1 second...
Waiting completed.
Unexpected error, debug log printed.
Script execution aborted (java.lang.OutOfMemoryError: Java heap space): (cc_adventure.ash, line 12)
 
On the ccascend side of things, both your errors are referring to set_property calls in ccascend. Which the debug log also seems to indicate. Good luck!
 

Veracity

Developer
Staff member
If it crashes trying to write out your properties, I have to wonder if your settings are corrupted.
Either before this event, or as a result of it.

I'd suggest restoring your settings from a backup - or blowing them away and starting fresh.

Either is super inconvenient, I know. I apologize.

Good luck!
 

fewyn

Administrator
Staff member
I was afraid of that! Guess it's time to blow everything up and start fresh.
 

fronobulax

Developer
Staff member
If it crashes trying to write out your properties

then you might want to verify that you have permission to write and disk space available to do so.

I lost several hours barking up the wrong tree (which is not as unusual as I would like, but still) because the original problem filled a log file and the attempts to fix failed elsewhere because undeleted log file had taken enough space that a write failure occurred elsewhere.
 

fewyn

Administrator
Staff member
I have plenty of space (2tb currently available on that drive) and I have permissions for it. No idea what happened I've just moved on and begun the long process of reconfiguring everything how I like it.
 

Theraze

Active member
Also, if you sync mafia through Dropbox or OneDrive, or have it configured otherwise, you can use file versioning to restore back to a non-corrupted preference file... Basically, anything above 400kb is corrupted. Take the second-newest small file, since the newest small file is the one that is corrupted.
 

xKiv

Active member
Alternatively alternatively, make a git repository out of your local mafia folder (git init . ; git add -A), and schedule a daily commit (git add -A ; git commit -m 'autocommit'). Or make it part of your current-version-of-mafia-running script.
 

fewyn

Administrator
Staff member
Also, if you sync mafia through Dropbox or OneDrive, or have it configured otherwise, you can use file versioning to restore back to a non-corrupted preference file... Basically, anything above 400kb is corrupted. Take the second-newest small file, since the newest small file is the one that is corrupted.

You know I didn't even know this was a feature. I use OneDrive specifically. Good to know for the future!
 
Top