amidst.minetest.world.mapgen.InvalidNoiseParamsException: out of memory and multiple java.lang.NullPointerException errors while repetedly generating a map #28
While repetedly pressing random map key (Ctrl+R) in Amidst for Minetest, after a while errors amidst.minetest.world.mapgen.InvalidNoiseParamsException: out of memory & java.lang.NullPointerException (shown below) are triggered and repeated each time generating a map.
The errors that got triggered
```
[error] Invalid v7params from Minetest game. amidst.minetest.world.mapgen.InvalidNoiseParamsException: out of memory
amidst.minetest.world.mapgen.InvalidNoiseParamsException: out of memory
at amidst.minetest.world.mapgen.Noise.allocBuffers(Noise.java:63)
at amidst.minetest.world.mapgen.Noise.(Noise.java:41)
at amidst.minetest.world.oracle.BiomeDataOracleV7.(BiomeDataOracleV7.java:85)
at amidst.minetest.world.DefaultVersionFeatures.lambda$new$1(DefaultVersionFeatures.java:153)
at amidst.mojangapi.world.WorldBuilder.fromSeed(WorldBuilder.java:102)
at amidst.mojangapi.RunningLauncherProfile.createWorldFromSeed(RunningLauncherProfile.java:95)
at amidst.gui.main.WorldSwitcher.displayWorld(WorldSwitcher.java:80)
at amidst.gui.main.Actions.newFromSeed(Actions.java:103)
at amidst.gui.main.Actions.newFromRandom(Actions.java:85)
at amidst.gui.main.menu.Menus.lambda$item$2(Menus.java:133)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369)
at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:349)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:975)
at java.desktop/javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1810)
at java.desktop/javax.swing.JComponent.processKeyBinding(JComponent.java:2900)
at java.desktop/javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:699)
at java.desktop/javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:706)
at java.desktop/javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:706)
at java.desktop/javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:677)
at java.desktop/javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:311)
at java.desktop/javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:297)
at java.desktop/javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2993)
at java.desktop/javax.swing.SwingUtilities.processKeyBindings(SwingUtilities.java:1731)
at java.desktop/javax.swing.UIManager$2.postProcessKeyEvent(UIManager.java:1541)
at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:882)
at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1140)
at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1010)
at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:836)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
```
```
[error] java.lang.NullPointerException
at amidst.minetest.world.oracle.BiomeDataOracleV7.populateArray_groundlevel(BiomeDataOracleV7.java:262)
at amidst.minetest.world.oracle.BiomeDataOracleV7.populateArray(BiomeDataOracleV7.java:196)
at amidst.fragment.Fragment.populateBiomeData(Fragment.java:119)
at amidst.fragment.loader.BiomeDataLoader.doLoad(BiomeDataLoader.java:34)
at amidst.fragment.loader.BiomeDataLoader.load(BiomeDataLoader.java:23)
at amidst.fragment.layer.LayerLoader.loadAll(LayerLoader.java:38)
at amidst.fragment.layer.LayerManager.loadAll(LayerManager.java:58)
at amidst.fragment.FragmentQueueProcessor.loadFragment(FragmentQueueProcessor.java:79)
at amidst.fragment.FragmentQueueProcessor.processQueues(FragmentQueueProcessor.java:50)
at amidst.gui.main.viewer.PerViewerFacadeInjector.onFragmentLoaderTick(PerViewerFacadeInjector.java:165)
at amidst.threading.ThreadMaster$6.run(ThreadMaster.java:96)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
```
The second one gets repeated multiple times while generating each chunk.
Console output before errors
```
[info] Amidst for Minetest v1.4
[info] Current system time: 2019-07-04 17:38:32.682
[info] System.getProperty("os.name") == 'Linux'
[info] System.getProperty("os.version") == '4.15.0-54-generic'
[info] System.getProperty("os.arch") == 'amd64'
[info] System.getProperty("java.version") == '11.0.3'
[info] System.getProperty("java.vendor") == 'Oracle Corporation'
[info] System.getProperty("sun.arch.data.model") == '64'
[info] Not using OpenGL.
[info] Biome profile activated: default
[info] using '.minecraft' directory at: '/home/juozas/.minecraft'
[info] Minetest directory not found, using default mapgen v7 profile
[info] using biome profiles at: 'biome'
[info] Starting to download remote version list.
[info] Found biome profile directory.
[info] Found default biome profile "Minetest Game v5"
[info] Found default biome profile "Minetest Game v.4"
[info] Found default biome profile "v6"
[info] Found default biome profile "30-biomes"
[info] Found default biome profile "Ethereal"
[info] Found default biome profile "Voxelgarden"
[info] Found default biome profile "Australia v0.4"
[info] Found default biome profile "MineClone 2"
[info] Found default biome profile "Aotearoa (New Zealand) v0.1"
[info] Biome profile activated: Minetest Game v5
[info] Checking for additional biome profiles.
[info] Found biome profile directory.
[info] Found default biome profile "Minetest Game v5"
[info] Found default biome profile "Minetest Game v.4"
[info] Found default biome profile "v6"
[info] Found default biome profile "30-biomes"
[info] Found default biome profile "Ethereal"
[info] Found default biome profile "Voxelgarden"
[info] Found default biome profile "Australia v0.4"
[info] Found default biome profile "MineClone 2"
[info] Found default biome profile "Aotearoa (New Zealand) v0.1"
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.gson.internal.bind.ReflectiveTypeAdapterFactory (file:/home/juozas/amidstest/amidst-minetest-v1-4.jar) to field java.awt.Color.value
WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
New Default Acceleration Threshold: 0
[info] There are no updates available.
[info] Successfully loaded remote version list.
[info] Not writing to seed history file, because it does not exist: history.txt
[info] increasing fragment cache size from 0 to 1024
[info] fragment cache size increased to 1024
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[error] Ground search alg failed! highestGround: 42, lowestAir: 8
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[error] Ground search alg failed! highestGround: 22, lowestAir: 16
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[error] Ground search alg failed! highestGround: 59, lowestAir: 40
[error] Ground search alg failed! highestGround: 64, lowestAir: 37
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[error] Ground search alg failed! highestGround: 86, lowestAir: 65
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[info] Not writing to seed history file, because it does not exist: history.txt
[error] Invalid v7params from Minetest game. amidst.minetest.world.mapgen.InvalidNoiseParamsException: out of memory
```
Default world type set to v7
Biome profile not selected
Other parameters default, grid on
Environment & Command line
**OS:** Ubuntu 18.04.2 LTS
**CPU:** Pentium(R) Dual-Core CPU E6300 @ 2.80GHz
**Java:**
```
openjdk 11.0.3 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode, sharing)
```
**Amidst for Minetest version:** 1.4
**Command line:** java -jar amidst-minetest-v1-4.jar
While repetedly pressing random map key (Ctrl+R) in Amidst for Minetest, after a while errors
amidst.minetest.world.mapgen.InvalidNoiseParamsException: out of memory
&java.lang.NullPointerException
(shown below) are triggered and repeated each time generating a map.The errors that got triggered
``` [error] Invalid v7params from Minetest game. amidst.minetest.world.mapgen.InvalidNoiseParamsException: out of memory amidst.minetest.world.mapgen.InvalidNoiseParamsException: out of memory at amidst.minetest.world.mapgen.Noise.allocBuffers(Noise.java:63) at amidst.minetest.world.mapgen.Noise.Console output before errors
``` [info] Amidst for Minetest v1.4 [info] Current system time: 2019-07-04 17:38:32.682 [info] System.getProperty("os.name") == 'Linux' [info] System.getProperty("os.version") == '4.15.0-54-generic' [info] System.getProperty("os.arch") == 'amd64' [info] System.getProperty("java.version") == '11.0.3' [info] System.getProperty("java.vendor") == 'Oracle Corporation' [info] System.getProperty("sun.arch.data.model") == '64' [info] Not using OpenGL. [info] Biome profile activated: default [info] using '.minecraft' directory at: '/home/juozas/.minecraft' [info] Minetest directory not found, using default mapgen v7 profile [info] using biome profiles at: 'biome' [info] Starting to download remote version list. [info] Found biome profile directory. [info] Found default biome profile "Minetest Game v5" [info] Found default biome profile "Minetest Game v.4" [info] Found default biome profile "v6" [info] Found default biome profile "30-biomes" [info] Found default biome profile "Ethereal" [info] Found default biome profile "Voxelgarden" [info] Found default biome profile "Australia v0.4" [info] Found default biome profile "MineClone 2" [info] Found default biome profile "Aotearoa (New Zealand) v0.1" [info] Biome profile activated: Minetest Game v5 [info] Checking for additional biome profiles. [info] Found biome profile directory. [info] Found default biome profile "Minetest Game v5" [info] Found default biome profile "Minetest Game v.4" [info] Found default biome profile "v6" [info] Found default biome profile "30-biomes" [info] Found default biome profile "Ethereal" [info] Found default biome profile "Voxelgarden" [info] Found default biome profile "Australia v0.4" [info] Found default biome profile "MineClone 2" [info] Found default biome profile "Aotearoa (New Zealand) v0.1" WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.gson.internal.bind.ReflectiveTypeAdapterFactory (file:/home/juozas/amidstest/amidst-minetest-v1-4.jar) to field java.awt.Color.value WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.bind.ReflectiveTypeAdapterFactory WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release New Default Acceleration Threshold: 0 [info] There are no updates available. [info] Successfully loaded remote version list. [info] Not writing to seed history file, because it does not exist: history.txt [info] increasing fragment cache size from 0 to 1024 [info] fragment cache size increased to 1024 [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [error] Ground search alg failed! highestGround: 42, lowestAir: 8 [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [error] Ground search alg failed! highestGround: 22, lowestAir: 16 [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [error] Ground search alg failed! highestGround: 59, lowestAir: 40 [error] Ground search alg failed! highestGround: 64, lowestAir: 37 [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [error] Ground search alg failed! highestGround: 86, lowestAir: 65 [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [info] Not writing to seed history file, because it does not exist: history.txt [error] Invalid v7params from Minetest game. amidst.minetest.world.mapgen.InvalidNoiseParamsException: out of memory ```Default world type set to v7 Biome profile not selected Other parameters default, grid on
Environment & Command line
**OS:** Ubuntu 18.04.2 LTS **CPU:** Pentium(R) Dual-Core CPU E6300 @ 2.80GHz **Java:** ``` openjdk 11.0.3 2019-04-16 OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1) OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode, sharing) ``` **Amidst for Minetest version:** 1.4 **Command line:** java -jar amidst-minetest-v1-4.jar