Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Crash event


TheRealMcrafter
 Share

Recommended Posts

https://en.wikipedia.org/wiki/Crash_%28computing%29

 

"...computer program stops functioning properly."

 

That's the thing about crashes, you can't expect them to say: "hey, I just crashed".

 

If you are basing anything on crashes then you are probably doing it wrong. If you want to make anti-crash system: there is no such thing, you would have to save everything per-tick or use direct-memory manipulation and data restoration (which I can't say if is possible in Java, maybe in deep java internals like unsafe).

 

I'll just note that there are ways of making sure stuff is saved when program crashes, but that is ouside Forge (and I am not that good with Java to be smartass here).

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

A wild guess - you want to auto-send crashes of your beta-testers to your repo somewhere?

 

I suggest reading about JVM itself. MC is running 4 threads (maybe even more, like skin downloads, not sure, never looked).

Crashing one thread (e.g running into infinite loop on Server thread) won't necessarily crash others.

Program != Thread. Lookup on google on how to deal with it, there is plenty of it, it's just not shipped as forge event, because that is not forge's job.

Thread.class itself has exception handlers of some sorts. You could e.g run background thread that will be catching errors from other threads for you and doing stuff with them.

 

Disclaimer:

d6a1143f571184db25f94613edd43b40af6d3a629221aba00d9efdcfef5efd84.jpg

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.