• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Java Error: A fatal error has been detected by the Java Runtime Environment  RSS feed

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone can help solve this problem?

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffe05fcdbc6, pid=7280, tid=7588
#
# JRE version: Java(TM) SE Runtime Environment (11.0.2+9) (build 11.0.2+9-LTS)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.2+9-LTS, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x19dbc6]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
 
Ranch Hand
Posts: 1327
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that the error happens inside DirectX library.

Try to reinstall the graphics driver.

Switch off graphics card utilities.

Set J2D_D3D=false environment variable.

 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Angus Ferguson wrote:I think that the error happens inside DirectX library.

Try to reinstall the graphics driver.

Switch off graphics card utilities.

Set J2D_D3D=false environment variable.



I only have the onboard video and i have reinstalled the drivers few times (reformatted pc + new drivers)
Not sure how to turn off graphics card utilities.....
and no idea how to set the J2D_D3D=false.... sry not to wise on java and variables.


I have had this problem for long time now trying to run a Lineage 2 L2J server and been searching for a fix for years.... sometimes it happen when i open the server and sometime it waits 2-3-4 hours and runs great then i get that error.
No one in the l2j community has even seen this error (or so they say) and has attempted many methods to help me fix it and it always returns.... same error
Please if anyone has seen this or knows or a solid fix im all ears...any input helps i will try to do the other things you mentioned angus thanks (if i can fig out how ;-)
 
Sheriff
Posts: 24374
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

casey cando wrote:and no idea how to set the J2D_D3D=false.... sry not to wise on java and variables.



Change the command which runs your game to look like this:



where the "..." is what you have there already.
 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
not sure if this is what you are talking about... but i open and windows batch file to run the server and this is what is inside the batch file.

@echo off
title Game Server Console

:start
echo Starting L2J Game Server.
echo.

java -Xms512m -Xmx2g -jar l2jserver.jar

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end

:restart
echo.
echo Admin Restarted Game Server.
echo.
goto start

:error
echo.
echo Game Server Terminated Abnormally!
echo.

:end
echo.
echo Game Server Terminated.
echo.
pause

once again sorry for the noobness ....im tryin to learn this stuff without a teacher
 
Paul Clapham
Sheriff
Posts: 24374
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that's exactly what I'm talking about. Fortunately it's in a batch file so you can edit the line starting with "java ..." -- hopefully it's not read-only or something like that.
 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do I add that to the line or delete all and add only that?
sorry... could you show me how it should look???
like this?

@echo off
title Game Server Console

:start
echo Starting L2J Game Server.
echo.

java -DJ2D_D3D=false -Xms512m -Xmx2g -jar l2jserver.jar

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end

:restart
echo.
echo Admin Restarted Game Server.
echo.
goto start

:error
echo.
echo Game Server Terminated Abnormally!
echo.

:end
echo.
echo Game Server Terminated.
echo.
pause

( it dont say its read only on properties of bat file )
and i only need to edit this line and try to run the server... i dont need to put in the environment thing?
 
Paul Clapham
Sheriff
Posts: 24374
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup, that's how to do it. Angus sounds like he knows what he's talking about so hopefully that fixes your problem.
 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just tryed that and it wont load


#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffa678485fd, pid=5072, tid=5532
#
# JRE version: Java(TM) SE Runtime Environment (12.0.1+12) (build 12.0.1+12)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (12.0.1+12, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x3785fd]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\l2j\server\game\hs_err_pid5072.log
#
# Compiler replay data is saved as:
# C:\l2j\server\game\replay_pid5072.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

Game Server Terminated Abnormally!
 
Master Rancher
Posts: 4042
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Out of curiosity, does it work with any other version of Java?
 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have been tryin to solve this problem since java 8.... 2 years ago
i have used every java and same error
if anyone thinks they can solve this problem hands on... im willing to let you
add me on skype: macomb420@gmail
and you can guide me threw it on screen share or we can do team viewer your choice.
im just willing to do what ever is needed to fix this thing please
 
Dave Tolls
Master Rancher
Posts: 4042
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you get it to do a full trace?
I'm not sure how to do that, as I've only ever seen one of these with the full stack, so don't know why yours only shows the single frame.

Does the log file hold more info?

You should be able to figure out what was going on when the error occurred.
 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yea it gives me a whole error log file but i cant post it here.... to many key words that wont work on these forums
i got a new hard drive and a new windows 10 edition and reinstalled everything and i still get the error
i use mysql8.0+ / navicat 12+ / JDK 12+... its the only 3 things i have on my pc and +the server files
i have tryed every version of each program and still same error.... it must be a setting or something!!!
Please someone....anyone who can help.... i will give complete access to my pc to anyone who can fix or thinks they can fix this issue.
i cant post the log file here if anyone knows a site i can please tell me and ill post here the complete log file
 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sry if i get in trouble for these... just know no other way
Screenshot_1.png
[Thumbnail for Screenshot_1.png]
Screenshot_2.png
[Thumbnail for Screenshot_2.png]
Screenshot_3.png
[Thumbnail for Screenshot_3.png]
 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
part 2
Screenshot_4.png
[Thumbnail for Screenshot_4.png]
Screenshot_5.png
[Thumbnail for Screenshot_5.png]
Screenshot_6.png
[Thumbnail for Screenshot_6.png]
 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
part 3
Screenshot_7.png
[Thumbnail for Screenshot_7.png]
Screenshot_8.png
[Thumbnail for Screenshot_8.png]
Screenshot_9.png
[Thumbnail for Screenshot_9.png]
 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
last part
Screenshot_10.png
[Thumbnail for Screenshot_10.png]
 
Ranch Hand
Posts: 155
5
MS IE Notepad Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After a quick search let me give those who are not into this a bit of a background:

Lineage2Java seems to be a "private server" project for the MMORPG Lineage2. "Private servers" are mostly known from World of Warcraft and are basicly modified leaked server files and a client modification enable a community to set up thier own server instead of playing on the official servers run by the original developer. Wikipedia surprisingly have an article about this topic: https://en.wikipedia.org/wiki/Private_server

Back to topic:

As I couldn't find a download option I couldn't test the files myself, but: As most "private servers" require client modification and most "developers" of theese "communities" don't want "script kiddies" to get how it's done obfuscation is commonly used in this. My top guess here would be the obfuscation used for the files OP try to use somehow freaks out the jvm wich mostly fails in the reported access violation - on unix it's most times a page fault - anyhow for the same reason: by wrong opcodes caused by obfuscation famous C pointer arithmetic goes wrong and cause the jvm to try to access memory not in the process space. Also Minecraft is known for this as Mojang (now M$) uses obfuscation to protect against easy decompiling to make it harder to develop "cracked clients" allowing the game to be played without payment. I once tried a "cleaned up" version where someonw put the effort in and tried to fix most stuff after de-obfuscating with public available Minecraft coder pack - even worse - but most likely due to more errors in underlying LWJGL engine.

What's cause the jvm error most likely the jvm, os and/or hardware used by OP is not compatible with the server.jar OP wants to run. Best try: use different hardware and if possible on a basic linux distro instead of windows - so using openJDK. Otherwise: play the original Lineage2 - it's free to play.

Matt
 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its not leaked files.... ncsoft allows open based on older versions of the game for people to create and play
if you would like to see what it is im working with or test it your self i can give a few links to private server files of projects with alot of developers work on a single project....
my point is that alot of ppl run these servers and this is the first time anyone has ever seen this....
and the original lineage 2 is a diff type of official server..... they come out with a new version every couple years
lineage 2 has about 10 diff chronicles and the one im tryin to host is called hi5 freya
this is where i get my files L2J Site
and their bitbucket bitbucket
i use the develop branch
 
Matt Wong
Ranch Hand
Posts: 155
5
MS IE Notepad Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't want to start an argue about NCSoft policy about releasing old versions - even Blizzard started to sell the original servers (but I think without harddrives - so no server software but the hardware itself) - I just gave an inside to this scene.

After downloading the engine and the database files I could startup the "login server" and the "game server" without any issues.

About your statement that "No one in the l2j community has even seen this error": sorry to reply that harsh, but a "dev scene" no-one encountered a jvm-hard-crash with this very common issue - sorry, but I can't believe this statement at all. "EXCEPTION_ACCESS_VIOLATION (0xc0000005)" is very common - because jvm is implemented in part in C - wich is famous for its "pointer arithmetic" wich is THE most reason for any kind of issues, security flaws and almost anything that can go wrong in modern computing. So, any "normal user" encountered issues caused by it at least a few times - let alone "developers". In german there is an insult for such statement: "Flaschen" - not in terms of "bottle" but it terms of "idiots"/"nonesense".

So, as the engine and data runs smooth - and at least if one could trust the statement "no one encountered this issue" - and that you freshly re-installed your OS - the next "possible" thing causing this issue: hardware fault - maybe it's just a fault RAM module - maybe issue with CPU and/or motherboard - but it seems an issue specific to your very setup. As a clean os install fixes most anything - it's very likely a hardware fault. Just try to run it on another machine should work.

Matt
 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any way to test what is bad?.... or i just need to replace part by part on my pc and test the error?
 
Matt Wong
Ranch Hand
Posts: 155
5
MS IE Notepad Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the most common tool used for such things is memtest86
why? most issues caused by faulty ram today, at least those wich still let you use your system as normal as expected - cause issues with cpu, motherboard, storage or power supply often result in a system fail to boot
ram is used in implementation specific way - so for one system it could be that one module has to fully used up before the second is even considere to use - on another system it could be complete random

memtest86 tests the whole installed system ram in a sequential and repeatable way so it can be used to determine if there are any memory related issues
passing a run means that at least this time anything went ok so far but it's not a guaranteed all-ok - so if you run memtest on a never before tested system a second full run might be a good idea

when memtest encounters errors it could means some different things

1) faulty ram module - most common case and can be resolved by replacing
2) faulty motherboard - this one includes all the way from each pin of the cpu socket to the traces on the board to the pins in the ram socket -> replacement of board as "repair" is mostly unfeasable
3) faulty cpu - as it contains the memory controller it's possible to cause issues by tiny micro-vracks within the silicon

possible but un-common 4) power-supply issue: the power-supply can't keep up with the systems demand

a full test suite commonly consists of replacing part by part with known good ones and as already mentoined to mitigate software issues using different operating-system and client-software (wich is possible cause using java)
if you don't have spare parts try what you can achieve by changing things you can - like just try linux - as you mentoined you formatted the system and don't use it for anything else I guess you could at least give it a try

otherwise - well - without taking time and tools and try to figure out what went wrong on your system from the crashlog and dump - that's the most help one could give

about the driver mentioned: could also be an issue - bad drivers are readons for funny things like an atm spitting out money without charging anyones account for it - or the other way - you get charged but don't get the paper - try to explain that to your bank
 
casey cando
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It was my RAM... it tested fine with no errors on every program i could find... even on memtest86
so i decided to change it anyways for 2 new sticks of ram and no problems yet... 4 days no errors
thanks for the help everyone....really.... i cant thank you guys enough for the help and support from the ranch.

Also i am looking for a java developer to help with some events and things in my game.
If anyone is interested in giving me a hand or working on a project as a hobby add me on skype: macomb420@gmail
Im not the greatest with java but all other aspects of the game i can do easy.
The last guy helping to do my java work could create the things i needed in under a hour every time so i dont think its really alot of work (if you all ready know java... i dont)
My Goal is to create a good clean server for people to play and have fun on.
I have a wife and 3 kids and a full time job so i do this on my free time as i would expect you to do the same. NO ONE NEEDS MORE STRESS!!

Once again you guys are awesome and thanks for the help
 
Matt Wong
Ranch Hand
Posts: 155
5
MS IE Notepad Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
glad to hear you could solve your issue

it's a bit surprising that swapping ram solved it allthough memtest didn't showed an error - but as said: it also could be as simple as just a bad connection on just one pin back the time you last inserted the module responsible
even more surprising that the issue only showed up with this very java application - whatever was the real reason, it was a really strange one

ot: search on youtube for a video something called along "computer problem noone else could solve" - for this guy it was a faulty reset-switch on its case caused random restarts - or the one from jayztwocents where rgb-lighting overheated the ssd so it stpoed working at all
those all the reasons why it could extremly hard to figure out the real cause of issues just from a forum post about some code not executing correctly without touching the system with own hands
my guess about possible faulty ram was just personal experience mixed with THE most common issue in modern computing (that is, if you go back to the ibm pc and its at/xt design -predecessor of modern atx-standard - somewhen around the late 80s/early 90s)
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to reserve more space for permgen.
As the compiler uses permgen to allocate class structures, it looks the right thing to do.
 
Matt Wong
Ranch Hand
Posts: 155
5
MS IE Notepad Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

joseph hu wrote:Try to reserve more space for permgen.
As the compiler uses permgen to allocate class structures, it looks the right thing to do.


I checked the docs - permgen options were removed in Java8
also I can't see how this could be related to this issue as the dump denotes the C2 compiler thread - wich is, iirc, responsible for jit-native compiling - at wich state the class and objects of it already fully constructed
btw - shouldn't it result in simple outofmemory when permgen space is used up?
 
Whatever you say buddy! And I believe this tiny ad too:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!