-
Search
-
Search all Forums
-
Search this Forum
-
Search this Thread
-
-
Tools
-
Jump to Forum
-
-
#1
Jan 29, 2019
Hello,
I am currently working on a mod pack, and I have been running into a extremely annoying bug. I’ve been trying to troubleshoot it, thinking that it might be being caused by an incompatibility between certain mods, but I can’t seem to pin down what is causing it. It refuses to behave predictably as I add and subtract mods, and frankly doesn’t even affect my game play that much, but I want to squash this bug now before it grows into something bad later.
I am getting the console flooded with «OpenGL Error 1283: Stack Overflow» messages. We’re talking, like, hundreds of them in an instant. I don’t lose FPS, I’m not even getting a ton of TPS lag (at least, not any more than vanilla MC 1.12.2 has anyway). But, what I am getting when this happens is this:
I am currently running minecraft 1.12.2 with forge version 12.23.5.2807. If it’s relevant, here are the JVM arguments I’m using as well:
-mx8G -XX:InitiatingHeapOccupancyPercent=10 -XX:AllocatePrefetchStyle=1 -XX:+UseSuperWord -XX:+OptimizeFill -XX:LoopUnrollMin=4 -XX:LoopMaxUnroll=16 -XX:+UseLoopPredicate -XX:+RangeCheckElimination -XX:+CMSCleanOnEnter -XX:+EliminateLocks -XX:+DoEscapeAnalysis -XX:+TieredCompilation -XX:+UseCodeCacheFlushing -XX:+UseFastJNIAccessors -XX:+CMSScavengeBeforeRemark -XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses -XX:+ScavengeBeforeFullGC -XX:+AlwaysPreTouch -XX:+UseFastAccessorMethods -XX:+UnlockExperimentalVMOptions -XX:G1HeapWastePercent=10 -XX:G1MaxNewSizePercent=10 -XX:G1HeapRegionSize=32M -XX:G1NewSizePercent=10 -XX:MaxGCPauseMillis=250 -XX:+OptimizeStringConcat -XX:+UseParNewGC -XX:+UseNUMA -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=2 -XX:+DisableExplicitGC
Here’s my full list of mods at the moment:
Advanced Grapple Hooks
Antique Atlas
Artisan’s Worktables
Athenaeum
Atlas Extras
AutoregLib
Baby Animals Model Swapper
Base Metals
BetterFPS
Bountiful
BullseyeCrafttweaker2
Disenchanter
Familiar Fauna
FoamFix
ForgeEnderTech
Forgelin
Geographicraft
Hardcore Darkness
Ice and Fire
LLibraryLilliputian
MuonMultimob
Optifine
MMD OrespawnPrimitive Mobs
Quark
QuarkOddities
Roguelike Dungeons
Rustic
SaltyMod
Signposts
SoundFilters
Spartan Weaponry
Spartan Weaponry — Base Metals Compatibility
TextureFix
Tough As Nails
VanillaFix
Villager Trade Tables
WaystonesWhat do you guys think is causing this?
-
#2
Jan 30, 2019
I wouldn’t allocate 8G to MC. Java doesn’t handle large amounts of memory efficiently. Try lowering to 4G, then stepping up from there. Don’t forget, never allocate more than half of the PC’s system RAM.
I would also make sure you have the latest graphics drivers installed. Go to the manufacturer’s website, don’t use Windows Update.
«We live on a placid island of ignorance in the midst of black seas of infinity, and it was not meant that we should voyage far.»
-
#3
Jan 30, 2019
Thanks for the reply, majesty! I Updated my graphics card driver (I’ve got an Nvidia Card) to v353.30 and reduced minecraft’s ram allocation from 8G to 4G. My system had 16G of ram to spare, so I wasn’t in danger of running out of memory but I didn’t know that it stops being helpful after 4gb.
Here’s my system specs, in case they’re relevant as well. I honestly doubt not having enough horsepower in my rig is the issue, but hey, I can’t asume:
Intel core i7-6700k 4GHz
16.0Gb Ram
nVidia Geforce GTX980Ti GPU
Whelp, the issue is back, in spite of these changes. I’m not entirely sure what is going on here… Is there a incompatability? Do I simply just have too many mods on all at once?
ATTACHMENTS
-
2019-01-30_13.07.34
-
-
#4
Jan 30, 2019
I’d recommend re-making the mod pack and installing the mods a few at a time to make sure everything works and hopefully ID the problem mod(s).
«We live on a placid island of ignorance in the midst of black seas of infinity, and it was not meant that we should voyage far.»
-
#5
Jan 31, 2019
UGH.
I’ve just tested every mod in my list and it appears it is not a direct incompatability. Strangely, when I let each mod use its default configs it worked fine but I got the error once I configured each mod to my liking…
Now I’m going to go through them all again and this time I’m going to see which mod configuration (and then after that, which specific setting) is causing the issue.
-
#7
Jan 3, 2021
Vanix-
View User Profile
-
View Posts
-
Send Message
- Newbie
- Join Date:
1/3/2021
- Posts:
0
- Member Details
Hello everyone
I have right now the same problem as you @shadowbast96143
I am currently playing at 1.7.10 with Forge and 50 Mods
In my Case, the textures of the game are really buggy and its very complicated. I tried to reinstall minecraft and every mod (not seperately), updated the gpu driver but nothing worked. It seems that a mod is a problem but I’m not sure. The Problem happend right after I filled my buckets since 3. Jan 2021 at ~3:00 am.
Can someone help me pls? What should I do next?
ATTACHMENTS
-
2021-01-03_16.52.40
-
2021-01-03_16.52.54
-
2021-01-03_16.52.49
-
-
#8
Jan 3, 2021
This is caused by buggy rendering code* in a mod and has nothing to do with drivers or anything outside of the game, perhaps due to two or more mods trying to access/modify the same vanilla code at once; I don’t know which one(s) it could be but you can try removing half the mods then see if the issue still occurs, testing the other half or another combination of mods if not, then when it happens try removing half of the remaining mods and repeat until you have one or two mods which reproduce the issue.
*For example, note the calls to glPushMatrix() and glPopMatrix(), which must be matched or a stack over/underflow will occur and in the worst case break everything rendered after the error within the current frame (fortunately OpenGL is pretty tolerant of errors so an outright crash doesn’t occur, unlike a stack overflow in Java code):
GL11.glPushMatrix(); GL11.glScalef(0.125F, 0.125F, 0.125F); GL11.glTranslatef((float)(time % 3000) / 375.0F, 0.0F, 0.0F); GL11.glRotatef(-50.0F, 0.0F, 0.0F, 1.0F); this.render2DItemFixed(0.0F, 0.0F, 1.0F, 1.0F, icon.getIconWidth(), icon.getIconHeight()); GL11.glPopMatrix();
- To post a comment, please login.
Posts Quoted:
Reply
Clear All Quotes
Рекомендованные сообщения
- Жалоба
Играл на сервере , игра зависла, я её закрыл. Потом открываю, захожу на сервер, в чате спамит сообщение OpenGL Error: 1283 (Stack overflow). Потом через несколько минут игра вылетает. Помогите!!!
Поделиться сообщением
Ссылка на сообщение
- Жалоба
Здравствуйте.
Это может быть связано с нехваткой выделяемой на игру памяти, не пробовали выделять больше?
Изменено 29 декабря 2019 пользователем DenProMax:
Поделиться сообщением
Ссылка на сообщение
- Жалоба
Только что, DenProMax сказал:
Здравствуйте.
Это может быть связано с нехваткой выделяемой на игру памяти, не пробовали выделять больше?
нет, сейчас попробую
Поделиться сообщением
Ссылка на сообщение
- Жалоба
19 минут назад, DenProMax сказал:
Здравствуйте.
Это может быть связано с нехваткой выделяемой на игру памяти, не пробовали выделять больше?
игра вылетает все равно
Поделиться сообщением
Ссылка на сообщение
- Жалоба
Только что, Pec_Ha_PazDa4e сказал:
игра вылетает все равно
Вылетает?
Сколько вы выделяли памяти и сколько у вас Гб ОЗУ?
Поделиться сообщением
Ссылка на сообщение
- Жалоба
2 минуты назад, DenProMax сказал:
Вылетает?
Сколько вы выделяли памяти и сколько у вас Гб ОЗУ?
1064мб выделил а всего 6гб озу
Поделиться сообщением
Ссылка на сообщение
- Жалоба
Какая Windows у Вас установлена? 64 или 32 битная? Если 64 — проверьте, какая версия Java у Вас.
Если Java 32-х битная установите 64-х битную >Тык<.
Далее выделите 3гб Java >Тык<.
После этого, выделите игре 2000-2500мб оперативной памяти.
Поделиться сообщением
Ссылка на сообщение
- Жалоба
Тп со спавна домой и игра вылетела. Теперь не могу зайти. После надписи «Выполняется запуск игры» все просто исчезает.
Поделиться сообщением
Ссылка на сообщение
- Жалоба
32 минуты назад, ROK_1808 сказал:
Тп со спавна домой и игра вылетела. Теперь не могу зайти. После надписи «Выполняется запуск игры» все просто исчезает.
Проверьте карантин антивируса, не внес ли он туда папку с игрой(или отдельные файлы)? Выключите брандмауэр и антивирус при запуске. И перезагрузите роутер предварительно.
Изменено 29 декабря 2019 пользователем Gigazoid:
Поделиться сообщением
Ссылка на сообщение
- Жалоба
3 часа назад, ROK_1808 сказал:
Тп со спавна домой и игра вылетела. Теперь не могу зайти. После надписи «Выполняется запуск игры» все просто исчезает.
Удали папку .lemoncraft,потом всё заново скачай(просто как обычно заходи в лаучнер и т.д.),перезагрузи компьютер.
Поделиться сообщением
Ссылка на сообщение
- Жалоба
@Pec_Ha_PazDa4e Если спамит в вашем регионе, то попробуйте его разгрузить, переместите механизмы и прочее равномерно по чанкам. Если у механизмов и блоков есть анимация хоть какая-то, то заставьте их обычным камнем. Это поможет снизить нагрузку на видео карту и ОЗУ.
Поделиться сообщением
Ссылка на сообщение
- Жалоба
5 часов назад, Promaster157 сказал:
Удали папку .lemoncraft,потом всё заново скачай(просто как обычно заходи в лаучнер и т.д.),перезагрузи компьютер.
Эм чего?
В этой ситуации, этот способ не актуален.
Поделиться сообщением
Ссылка на сообщение
Эта тема закрыта для публикации сообщений.
Рекомендуемые сообщения
В теме 4 сообщения
-
- Поделиться
У меня ошибка OpenGL 1283 (stack overflow) При 0 фпс. Выделено: 2480 МБ, Моды: Legends (Сборка : Супергероев и т.д.) И Optifine. Версия: 1.7.10… Вот скрин: https://prnt.sc/1191grl
Ссылка на комментарий
Поделиться на другие сайты
-
- Поделиться
23 часа назад, Glpro сказал:
У меня ошибка OpenGL 1283 (stack overflow) При 0 фпс. Выделено: 2480 МБ, Моды: Legends (Сборка : Супергероев и т.д.) И Optifine. Версия: 1.7.10… Вот скрин: https://prnt.sc/1191grl
тебе это жить мешает?
если да то не используй optifine
Ссылка на комментарий
Поделиться на другие сайты
-
- Поделиться
9 часов назад, Glpro сказал:
У меня ошибка OpenGL 1283 (stack overflow) При 0 фпс. Выделено: 2480 МБ, Моды: Legends (Сборка : Супергероев и т.д.) И Optifine. Версия: 1.7.10… Вот скрин: https://prnt.sc/1191grl
Включи чат только для команд и забудь про эту ошибку.
Ссылка на комментарий
Поделиться на другие сайты
- 3 месяца спустя…
-
- Поделиться
Какие все умные… У меня эта ошибка заставляет пропасть текстуры всех существ/игрока 😭😭😭
Ссылка на комментарий
Поделиться на другие сайты
Для публикации сообщений создайте учётную запись или авторизуйтесь
Вы должны быть пользователем, чтобы оставить комментарий
Войти
Уже есть аккаунт? Войти в систему.
Войти
-
28.08.2017, 16:08
#1
OpenGL Error 1283 (Stack overflow)
Уважаемые хайтечники и администрация, с чем может быть связана данная ошибка и как ее пофиксить? Возникает не у всех посетителей варпа. На регионе все по лимитам. Если кто знает, отпишите, пожалуйста.
https://prnt.sc/ge0iho
https://prnt.sc/ge0ir2И еще вопросик по поводу информационных панелей на стыках чанков, можно ли что то с этим сделать?
https://prnt.sc/ge0ukt
Последний раз редактировалось JoJona; 28.08.2017 в 16:31.
Причина: Добавлял скриншоты
-
28.08.2017, 16:18
#2
Мистер MinecraftOnly 2022
DC: bezbashn#3688Ваш проводник в мир Minecraft
Дизайнер, квестодел и просто сладкая булочка
-
28.08.2017, 16:44
#3
После перезагрузки проблема не ушла, даже веселей стало
http://prntscr.com/ge1118
-
28.08.2017, 17:42
#4
Минимализуйте количество МЭ мониторов на варпе и все будет нормально. Проблема связана именно с ними.
-
28.08.2017, 18:31
#5
Сообщение от Nexus11
Минимализуйте количество МЭ мониторов на варпе и все будет нормально. Проблема связана именно с ними.
Спасибо, скорее всего это так.
Информация о теме
Пользователи, просматривающие эту тему
Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)
Ваши права
- Вы не можете создавать новые темы
- Вы не можете отвечать в темах
- Вы не можете прикреплять вложения
- Вы не можете редактировать свои сообщения
- BB коды Вкл.
- Смайлы Вкл.
- [IMG] код Вкл.
- HTML код Выкл.
Правила форума
Содержание
- Minecraft Forums
- 1.15.2 «Connection Lost: Internal Exception: java.lang.StackOverflowError»
- Minecraft Forums
- java.lang.StackOverflowError
- How to Fix java.lang.StackOverflowError in Java
- What Causes java.lang.StackOverflowError in Java
- java.lang.StackOverflowError Example in Java
- How to fix java.lang.StackOverflowError in Java
- Inspect the stack trace
- Increase Thread Stack Size (-Xss)
- Track, Analyze and Manage Errors With Rollbar
- Minecraft Forums
- More Info: How to Fix Minecraft Error 1
- Crash Support: StackOverflowError.
Minecraft Forums
1.15.2 «Connection Lost: Internal Exception: java.lang.StackOverflowError»
Ever since I created a minecraft server approximately 2 weks ago, following this tutorial: it has been very lagy from time to time. Once it gets «overloaded» we get the following error «Connection Lost: Internal Exception: java.lang.StackOverflowError». When I boot the server back up it works fine but after a few minutes it will start to lag, and eventuelly the server crashes again. I have done more or less the same way a few years back, when creating a server, and it has been working without any problem.
Specs:
Windows 10 (64 bit)
Java 8
Intel i5 9400F 2.90 GHz
Nvidia GeForce GTX 1650
I have checked my internet connection at its stable
This is the error message I get in the crash report:
—- Minecraft Crash Report ——— Minecraft Crash Report —-//
Hi. I’m Minecraft, and I’m a crashaholic.
Time: 6/1/20 5:18 PMDescription: Watching Server
at java.util.Objects.equals(Unknown Source)
at cwc.a(SourceFile:397) at cwc.c(SourceFile:179)
at java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(Unknown Source)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.allMatch(Unknown Source)
at xb$$Lambda$2452/10867116.accept(Unknown Source)
at xb.o(SourceFile:371) at xb.a(SourceFile:340)
at xd.a(SourceFile:324) at net.minecraft.server.MinecraftServer.b(SourceFile:854)
at wd.b(SourceFile:347) at net.minecraft.server.MinecraftServer.a(SourceFile:793)
at net.minecraft.server.MinecraftServer.run(SourceFile:655) at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
Thread: Server Watchdog
at it.unimi.dsi.fastutil.doubles.AbstractDoubleList.listIterator(AbstractDoubleList.java:147) at it.unimi.dsi.fastutil.doubles.AbstractDoubleList.equals(AbstractDoubleList.java:371)
at java.util.Objects.equals(Unknown Source)
at cwc.a(SourceFile:397) at cwc.c(SourceFile:179)
at java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(Unknown Source)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.allMatch(Unknown Source)
at bjk.a(SourceFile:61) at bjk.a(SourceFile:49) at bkg.a(SourceFile:135)
at xb.a(SourceFile:406) at xb$$Lambda$2452/10867116.accept(Unknown Source)
at xb.o(SourceFile:371) at xb.a(SourceFile:340) at xd.a(SourceFile:324)
at net.minecraft.server.MinecraftServer.b(SourceFile:854) at wd.b(SourceFile:347)
Threads: «Netty Server IO #3» RUNNABLE
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
— locked [email protected] at sun.nio.ch.SelectorImpl.select(Unknown Source)
«Netty Server IO #2» RUNNABLE (in native)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
at sun.nio.ch.SelectorImpl.select(Unknown Source)
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source)
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
at sun.misc.Unsafe.park(Native Method) — waiting on [email protected]
at java.util.concurrent.ForkJoinPool.awaitWork(Unknown Source) at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
«Netty Server IO #1» RUNNABLE at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
— locked [email protected] at sun.nio.ch.SelectorImpl.select(Unknown Source)
«Server Watchdog» RUNNABLE at sun.management.ThreadImpl.dumpThreads0(Native Method)
at sun.management.ThreadImpl.dumpAllThreads(Unknown Source)
at wg.run(SourceFile:45) at java.lang.Thread.run(Unknown Source)
«poi IO worker» WAITING on [email protected]
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.park(Unknown Source)
at caz.c(SourceFile:124) at caz.d(SourceFile:134)
at caz$$Lambda$2161/18813107.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
«chunk IO worker» WAITING on [email protected]
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.park(Unknown Source)
at caz.c(SourceFile:124) at caz.d(SourceFile:134)
at caz$$Lambda$2161/18813107.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
«poi IO worker» WAITING on [email protected]
at sun.misc.Unsafe.park(Native Method)
— waiting on [email protected] at java.util.concurrent.locks.LockSupport.park(Unknown Source) at caz.c(SourceFile:124)
at caz.d(SourceFile:134) at caz$$Lambda$2161/18813107.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
«chunk IO worker» WAITING on [email protected]
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.park(Unknown Source)
at caz.c(SourceFile:124) at caz.d(SourceFile:134) at caz$$Lambda$2161/18813107.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
«poi IO worker» WAITING on [email protected]
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.park(Unknown Source)
at caz.c(SourceFile:124) at caz.d(SourceFile:134) at caz$$Lambda$2161/18813107.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
«chunk IO worker» WAITING on [email protected]
Источник
Minecraft Forums
java.lang.StackOverflowError
So I’ve been running a server for a week or so now, and recently I’ve had problems where the server randomly ups and crashes, giving me this message in the server client;
Anyone on the server just times out and gets;
I’ve heard the only solution is to delete parts of the map, but I’m really inclined to not do that, so is there an actual solution?
- Forum/Wiki Sponsor
- Join Date: 8/19/2010
- Posts: 404
- Member Details
I am getting the exact same issue, 1.8.1 Vanilla Server.
Restarting the server gives me a few seconds before it chrashes again.
What can I do, except for using back-ups or deleting the world?
SOLVED: I filled a few Dispensers with 9×64 items which caused the error to happen.
After taking out 8 stacks and leaving only 1×64 items in the dispenser, server’s running fine again!
I discovered the reason mine was doing it was because of the whole «shift+clicking more items than can fit into the chest» error that supposedly got fixed.
Источник
How to Fix java.lang.StackOverflowError in Java
Table of Contents
The java.lang.StackOverflowError is a runtime error which points to serious problems that cannot be caught by an application. The java.lang.StackOverflowError indicates that the application stack is exhausted and is usually caused by deep or infinite recursion.
What Causes java.lang.StackOverflowError in Java
The java.lang.StackOverflowError occurs when the application stack continues to grow until it reaches the maximum limit. Some of the most common causes for a java.lang.StackOverflowError are:
- Deep or infinite recursion — If a method calls itself recursively without a terminating condition.
- Cyclic relationships between classes — If a class A instantiates an object of class B , which in turn instantiates an object of class A . This can be considered as a form of recursion.
- Memory intensive applications — Applications that rely on resource heavy objects such as XML documents, GUI or java2D classes.
java.lang.StackOverflowError Example in Java
Here is an example of java.lang.StackOverflowError thrown due to unintended recursion:
In this example, the recursive method print() calls itself over and over again until it reaches the maximum size of the Java thread stack since a terminating condition is not provided for the recursive calls. When the maximum size of the stack is reached, the program exits with a java.lang.StackOverflowError :
How to fix java.lang.StackOverflowError in Java
Inspect the stack trace
Carefully inspecting the error stack trace and looking for the repeating pattern of line numbers enables locating the line of code with the recursive calls. When the line is identified, the code should be examined and fixed by specifying a proper terminating condition. As an example, the error stack trace seen earlier can be inspected:
In the above trace, line number 4 can be seen repeating, which is where the recursive calls are made and causing java.lang.StackOverflowError .
Increase Thread Stack Size (-Xss)
If the code has been updated to implement correct recursion and the program still throws a java.lang.StackOverflowError , the thread stack size can be increased to allow a larger number of invocations. Increasing the stack size can be useful, for example, when the program involves calling a large number of methods or using lots of local variables.
The stack size can be increased by changing the -Xss argument on the JVM, which can be set when starting the application. Here is an example:
This will set the thread’s stack size to 4 mb which should prevent the JVM from throwing a java.lang.StackOverflowError .
Track, Analyze and Manage Errors With Rollbar
Managing errors and exceptions in your code is challenging. It can make deploying production code an unnerving experience. Being able to track, analyze, and manage errors in real-time can help you to proceed with more confidence. Rollbar automates Java error monitoring and triaging, making fixing errors easier than ever. Try it today.
Источник
Minecraft Forums
More Info: How to Fix Minecraft Error 1
Need Help? Click here for more information on How to Fix Minecraft Error 1.
Crash Support: StackOverflowError.
- li» data-page-inline=»False» data-scroll-inline=»False»>
- Tree Puncher
- Join Date: 1/1/2022
- Posts: 28
- Member Details
I have been playing a modded world (LOTR Reworked) and a crash has occurred: (Full Crash Report here->Link)
Simply, the worlds chunks stop generating after loading for a bit, and then it crashes:
The game crashed whilst exception while updating neighbours
Error: java.lang.StackOverflowError: Exception while updating neighbours
Exit Code: -1
I’m sure that this is a very common thing, any ideas on how to help?
- Farlander
- Join Date: 9/20/2016
- Posts: 15,670
- Member Details
The crash-report is not accessible — add it with sites like https://paste.ee/
- Tree Puncher
- Join Date: 1/1/2022
- Posts: 28
- Member Details
- Tree Puncher
- Join Date: 1/1/2022
- Posts: 28
- Member Details
Update: I have been playing the game with no problems, aka, the crash has been fixed somehow. However, if a cause can be found, I would like to know.
My leading theory is that the game loaded a glitched water block, and as soon as I left it behind (render-distance wise) the glitch stopped.
Is this correct?
- Farlander
- Join Date: 9/20/2016
- Posts: 15,670
- Member Details
Referring to the «updating neighbours» error, it can be possible
- Tree Puncher
- Join Date: 1/1/2022
- Posts: 28
- Member Details
Update: The crash has occurred again, same cause presumably. (Another theory: this world has many chunks saved, numbering in the hundreds of thousands. It may be some sort of new glitch relating to this.)
- Enderdragon Slayer
- Join Date: 10/6/2013
- Posts: 12,496
- Minecraft: TheMasterCaver
- Member Details
I can’t access the crash report (it says I need access) but it sounds like this vanilla bug:
Specifically, this is due to the generation of water and lava springs, which will immediately spread as much as they can within the bounds of loaded chunks when placed, which causes many recursive block updates and can cause a stack overflow; this was an extremely common issue with my «triple height terrain» mod due to the enormous caves, especially big drops (a 200 block high waterfall is already at 200 recursive updates, even more if it spreads out), and is one reason why I abandoned it, and it has sporadically happened in other mods until I fixed it by limiting the amount of «immediate» recursive fluid updates (anything past this will gradually flow as normal post-world generation):
TheMasterCaver’s First World — possibly the most caved-out world in Minecraft history — includes world download.
TheMasterCaver’s World — my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
- Tree Puncher
- Join Date: 1/1/2022
- Posts: 28
- Member Details
Do you have a Gmail account? Because then I can share the crash report with you. (Although I switched it to paste.ee, I don’t know what happened.) Anyway, here is the actual crash report link: https://paste.ee/p/68VKN
- Enderdragon Slayer
- Join Date: 10/6/2013
- Posts: 12,496
- Minecraft: TheMasterCaver
- Member Details
The root cause of the issue appears to be runaway world generation, a very common issue with world generation mods, which do not place features correctly so they spill into unloaded chunks, which will be loaded, and possibly trigger more decorations, which in turn loads more chunks, and so on until it either self-terminates (e.g. it occurs in only one biome) or in the worst-case, crashes. Even if it doesn’t crash it can cause extreme server lag and high memory usage. Unfortunately, as mentioned it is a very common issue and many modders do very little, if any, optimizations or fixes unless it is a major issue (in newer versions Forge warns about «cascading worldgen» so they may be better but it is still an issue).
However, I can say it is caused by LOTR and is probably due to some specific combination of biomes and features (all the mods listed in the stacktrace appear to be LOTR so it seems to be at fault; the generation of a liquid spring is just where it ran out of stack space and may have not happened by itself; however, the crash may have only occurred because of it so MC-32168 is still a factor):
This is not just limited to «LOTRWorldGenFangornTrees» as many other features are mentioned but it could possibly have started due to them, considering that it appears 202 times; oddly, I couldn’t find any other reports of this issue, or even any mentions of «LOTRWorldGenFangornTrees», save for a single non-crash log.
You could try editing the JVM arguments to add «-Xss2M» (no quotes) to increase the stack size, although you shouldn’t increase it too much (the default is 1M).
TheMasterCaver’s First World — possibly the most caved-out world in Minecraft history — includes world download.
TheMasterCaver’s World — my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
- Tree Puncher
- Join Date: 1/1/2022
- Posts: 28
- Member Details
Very well, but how do I get to the JVM files? (The LOTRWorldGenFangornTrees have appeared in-game in every crash though. These trees only spawn in three biomes.)
- Farlander
- Join Date: 9/20/2016
- Posts: 15,670
- Member Details
In your Launcher, click on Installation and edit your profile
Click on More Options — there you find the JVM-Arguments
- Tree Puncher
- Join Date: 1/1/2022
- Posts: 28
- Member Details
OK, working on it. Oh, dang, it is set at FIVE to make room for the massive world size, I really don’t think whatever I could do would fix it there. It might be to big, and interfering with gameplay, but its better than nothing.
(I also increased it to SIX, but the crash still occurs. So either I have to lower it, or it just doesn’t work. The only way to escape would be to get out of the biome that has the LOTRWorldGenFangornTrees.)
- Tree Puncher
- Join Date: 1/1/2022
- Posts: 28
- Member Details
You know, this reminds me about a story of a crash type I had in the past.
The glitch was that if Thaumcraft Vis crystals were in a chest, the game would crash. (Specifically viewing it it a chest.)
I thought about making a complex system of storage, but I just deleted a bunch of mods and experimented around with some settings. Guess what? The world become unrecoverable. I used NBT Explorer to get back the world files, but all my progress was gone.
The second part to the story is the game would spontaneously crash on a 1.16.5 modded world, no crash report or anything.
I couldn’t play for a month.
Then one day, the glitch left and never came back.
The moral is that crashes are so weird and unpredictable, that maybe you just have to wing it sometimes. Sure, yo can get rid of a ticking entity, but does anyone really know why ticking entities exist? Why are they part of reality? Like this problem here, It could just go away in a month or never. I really just don’t know. I have escaped the biome with the suspect trees, but am I safe? That remains to be seen.
- Enderdragon Slayer
- Join Date: 10/6/2013
- Posts: 12,496
- Minecraft: TheMasterCaver
- Member Details
OK, working on it. Oh, dang, it is set at FIVE to make room for the massive world size, I really don’t think whatever I could do would fix it there. It might be to big, and interfering with gameplay, but its better than nothing.
This has nothing to do with world size, which has no impact at all on whether a world is «too big» as only chunks within render distance are loaded (unless you use a chunk loaders) — it is caused by a bug within the mod:
In this thread I explain how the game places features in more detail, along with a stackoverflow crash I triggered by setting the size of an ore to 100 in 1.8’s Customized world settings (either not using the correct offset or trying to place something that is too big can cause the issue; structures like villages are placed in chunk-sized pieces instead of all at once):
Here is a map of a world that shows that they are referring to — the first example shows proper world generation while the second is of a more extreme example of runaway world generation; your case appears to be so bad it causes literally infinite chunk loading (I don’t know your exact location but I saw coordinates hundreds of thousands of blocks from 0,0):
Unfortunately, the only way to fix this is to notify the developer of the issue, and hope that they are still maintaining the mod (seeing it is for 1.7.10), or avoid the biomes that are causing the issue, but then you’ll need some way to know where they are and tools like AMIDST don’t work with modded versions.
Also, as a mod developer myself this issue is very easy to avoid; before decorating a chunk I set a flag to true and afterwards it is set back to false; it is also checked whenever a chunk is generated or decorated and if it is true a stacktrace will be printed out, including the coordinates of the chunk that was loaded as well as the chunk that loaded it, making it easy to catch them; for example (this is not entirely foolproof as it won’t detect chunks that were loaded from disk but not decorated, or were already loaded and decorated, but if that is happening it is only a matter of time before a new chunk is generated/decorated):
TheMasterCaver’s First World — possibly the most caved-out world in Minecraft history — includes world download.
TheMasterCaver’s World — my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
Источник
-
#2
Your client is experiencing problems loading them. Do you have any other mods running as well? If you do have other mods, check if your Minecraft will run just the shaders without some other mods. Shaders and one of your mods might not be compatible.
If it runs on it’s own start adding your mods back one by one to find which one is causing the problem.
If this doesn’t work then check if you have enough allocated space (RAM) to you Minecraft
-
#3
Your client is experiencing problems loading them. Do you have any other mods running as well? If you do have other mods, check if your Minecraft will run just the shaders without some other mods. Shaders and one of your mods might not be compatible.
If it runs on it’s own start adding your mods back one by one to find which one is causing the problem.
If this doesn’t work then check if you have enough allocated space (RAM) to you Minecraft
Yes, I have multiple other mods like Optifine, Oldanimations, and about 4 more mods, i’ll try your possible fixes. Thanks!
Hex
Dedicated Member
-
#4
Yes, I have multiple other mods like Optifine, Oldanimations, and about 4 more mods, i’ll try your possible fixes. Thanks!
Old animations might do something.
-
#5
I used to have the same problem and I think I tried ALL of the available optifine versions until I found the one that worked. iHexRT also brought up old animations and he too could be right. Maybe even make sure you have your graphics drivers up to date.
-
#6
Actually I have been experiencing this problem too, so what I did was search it up and from what I know this is what you do:
1. Search up opengl error 1283 stack overflow
2. follow the guide (whether it be a video or a website).
The reason I can’t just tell you is because, well I forgot the actual steps, but if you want I can try to watch the video instead and help you.
But the main premise is that you need to either upgrade your java edition or downgrade it.
Personally I had to downgrade java to 7.45 or something.
Anyways I just suggest you search it up.
-
#7
A few people have fixed it with the steps below. I know also OldAnimations, a motion blur mod, and OrangeMarshal’s SimpleMods have caused this to pop up.
Fixed it, turn off Fast Render, and Fast Math if you have either of those activated in Optifine, additionally, turn off Sun & Moon.