dynmap icon indicating copy to clipboard operation
dynmap copied to clipboard

Exception during render job java.lang.ArrayIndexOutOfBoundsException

Open a-batts opened this issue 9 years ago • 8 comments

I have been getting this error when I try to load my Resource Pack up and run a fullrender. I am using Flows HD x64 1.11 (there is no lower version such as x32 or x16). Is there any way to fix this issue. It looks like it has some issue with the Shulker?

[17:00:45 INFO]: [dynmap] Loading resource pack Flows
[17:00:47 ERROR]: [dynmap] Exception during render job: world=world, map=org.dynmap.hdmap.HDMap@5d6a3a7e
[17:00:47 WARN]: java.lang.ArrayIndexOutOfBoundsException
[17:00:47 WARN]:        at java.lang.System.arraycopy(Native Method)
[17:00:47 WARN]:        at org.dynmap.hdmap.TexturePack.copySubimageFromImage(TexturePack.java:878)
[17:00:47 WARN]:        at org.dynmap.hdmap.TexturePack.makeShulkerSideImage(TexturePack.java:1074)
[17:00:47 WARN]:        at org.dynmap.hdmap.TexturePack.patchShulkerImages(TexturePack.java:1104)
[17:00:47 WARN]:        at org.dynmap.hdmap.TexturePack.processDynamicImage(TexturePack.java:1344)
[17:00:47 WARN]:        at org.dynmap.hdmap.TexturePack.<init>(TexturePack.java:852)
[17:00:47 WARN]:        at org.dynmap.hdmap.TexturePack.getTexturePack(TexturePack.java:683)
[17:00:47 WARN]:        at org.dynmap.hdmap.TexturePackHDShader.getTexturePack(TexturePackHDShader.java:57)
[17:00:47 WARN]:        at org.dynmap.hdmap.TexturePackHDShader.access$000(TexturePackHDShader.java:22)
[17:00:47 WARN]:        at org.dynmap.hdmap.TexturePackHDShader$ShaderState.<init>(TexturePackHDShader.java:128)
[17:00:47 WARN]:        at org.dynmap.hdmap.TexturePackHDShader.getStateInstance(TexturePackHDShader.java:323)
[17:00:47 WARN]:        at org.dynmap.hdmap.HDMapManager.getShaderStateForTile(HDMapManager.java:136)
[17:00:47 WARN]:        at org.dynmap.hdmap.IsoHDPerspective.render(IsoHDPerspective.java:1088)
[17:00:47 WARN]:        at org.dynmap.hdmap.HDMapTile.render(HDMapTile.java:79)
[17:00:47 WARN]:        at org.dynmap.MapManager$FullWorldRenderState.processTile(MapManager.java:708)
[17:00:47 WARN]:        at org.dynmap.MapManager$FullWorldRenderState.run(MapManager.java:641)
[17:00:47 WARN]:        at org.dynmap.MapManager$DynmapScheduledThreadPoolExecutor$1.run(MapManager.java:190)
[17:00:47 WARN]:        at org.dynmap.MapManager$DynmapScheduledThreadPoolExecutor$2.run(MapManager.java:206)
[17:00:47 WARN]:        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[17:00:47 WARN]:        at java.util.concurrent.FutureTask.run(Unknown Source)
[17:00:47 WARN]:        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
[17:00:47 WARN]:        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
[17:00:47 WARN]:        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[17:00:47 WARN]:        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[17:00:47 WARN]:        at java.lang.Thread.run(Unknown Source)

a-batts avatar Feb 28 '17 22:02 a-batts

Edit: Downgraded to Flow's HD 1.10 and surprisingly, the render started normally without any problems, and the pack appeared on the Dynmap. So I guess there was some incompatibility with 1,11 resource packs?

a-batts avatar Feb 28 '17 23:02 a-batts

May I see your custom-shaders.txt?

wioxjk avatar Mar 01 '17 11:03 wioxjk

Here it is:

   #Default shader - used if shader not specified or invalid
  - class: org.dynmap.hdmap.TexturePackHDShader
    name: default
    texturepack: Flows

   #Color scheme based shaders
  - class: org.dynmap.hdmap.DefaultHDShader
    name: defaultscheme
    colorscheme: default

  - class: org.dynmap.hdmap.DefaultHDShader
    name: ovocean
    colorscheme: ovocean
   
  - class: org.dynmap.hdmap.DefaultHDShader
    name: flames
    colorscheme: flames

  - class: org.dynmap.hdmap.DefaultHDShader
    name: sk89q
    colorscheme: sk89q
   
  - class: org.dynmap.hdmap.DefaultHDShader
    name: amidst
    biomecolored: biome
    colorscheme: amidst

   #Biome based shaders
  - class: org.dynmap.hdmap.DefaultHDShader
    name: biome
    biomecolored: biome
    
  - class: org.dynmap.hdmap.DefaultHDShader
    name: temperature
    biomecolored: temperature
    
  - class: org.dynmap.hdmap.DefaultHDShader
    name: rainfall
    biomecolored: rainfall
    
   #No transparency default color scheme shader
  - class: org.dynmap.hdmap.DefaultHDShader
    name: no_transparency
    colorscheme: default
    transparency: false
  
   #Cave view shader
  - class: org.dynmap.hdmap.CaveHDShader
    name: cave

   #Cave view shader - only lit caves
  - class: org.dynmap.hdmap.CaveHDShader
    name: lit-cave
    onlyiflit: true

   #Cave view shader - hide various soft blocks
  - class: org.dynmap.hdmap.CaveHDShader
    name: cave-noplants
    hiddenids: [ 6, 17, 18, 31, 32, 37, 38, 39, 40, 50, 55, 78, 81, 83, 86, 99, 100, 103, 104, 105, 111, 115 ]
    
   #Texture pack based shader for standard Minecraft textures
  - class: org.dynmap.hdmap.TexturePackHDShader
    name: stdtexture
    texturepack: Flows

   #Standard texture cave view shader
  - class: org.dynmap.hdmap.TexturePackHDCaveShader
    name: stdtexture-cave
    texturepack: Flows
    max-sky-light: 0
    min-emitted-light: 1
    
   #Texture pack based shader for standard Minecraft textures, without biome-tinted grass/leaves
  - class: org.dynmap.hdmap.TexturePackHDShader
    name: stdtexture-nobiome
    texturepack: Flows
    biomeshaded: false

   #Texture pack based shader for standard Minecraft textures, with grid for region file borders (512x512)
  - class: org.dynmap.hdmap.TexturePackHDShader
    name: stdtexture-mcr-grid
    texturepack: Flows
    grid-scale: 512

The shaders.txt file above was used for both the 1.10 and 1.11 texture packs (they were both named Flows). Hope this helps.

a-batts avatar Mar 01 '17 23:03 a-batts

I'm also having the same issue with 1.11 Dokucraft Light.

If I extract the texture folder of the pack it "works" but a lot of textures are missing.

patrix87 avatar Mar 21 '17 17:03 patrix87

The problem roots from somehow malformed shulker box rendering code. Check #2074; the issues are related.

chuushi avatar Mar 21 '17 19:03 chuushi

Im also using Dokucraft light and having these issues, what I don't get is I even backdated to the Dokucraft Light 1.10 and I get the same issues.

TomLewis avatar Apr 17 '17 19:04 TomLewis

Can confirm I'm also having this. Using A dokucraft-variation =/

CloakedAlien avatar May 14 '17 07:05 CloakedAlien

fixed in #2109

FedUpWith-Tech avatar Jul 28 '20 16:07 FedUpWith-Tech