Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2
1  Game Development / Newbie & Debugging Questions / Re: A fatal error has been detected by the Java Runtime Environment with LibGDX on: 2014-06-20 23:02:38
General advice: Instead of playing hit and miss to find where the error lies you should always use line-by-line debugging to find the source of the error.

This kind of error is familiar to me too, I think it happened to me when I uploaded a buffer to OpenGL without flipping it first, so basically when you're trying to access memory that doesn't belong to your application (although I'm not 100% sure in this).

As of whether or not you should dispose your SpriteBatch: Yes, absolutely if you're not going to use it later on it shouldn't cause any errors.

Line by line debugging is my new favourite thing. Helped me solve the issue. The problem wasn't anything being disposed. It was where I had my tweenManager.update(). It was before batch.end() and a batch.draw(sprite). That is a huge issue. I just put it afterwards. Too bad this causes my tween to not work properly, at least I can figure it out from here. Thanks for all the help guys!

I would have never seen it without line by line debugging... new tool for the win! Smiley


Added tweenManager.update(Float.MIN_VALUE); during method, or whenever you create it, and it works like a charm now!
2  Game Development / Newbie & Debugging Questions / Re: A fatal error has been detected by the Java Runtime Environment with LibGDX on: 2014-06-20 21:15:42
Remove all the dispose calls, see if it works. Add them back one at a time until it crashes.

That was actually very helpful to do.

The code that would trigger the crash was not in the MainMenu, but rather the Splash screen.

Whenever I would dispose of the SpriteBatch that I created, it would crash about 10 to 20% of the time.

Should I not dispose of this?

@imagnity I tried, but still crashed.
3  Game Development / Newbie & Debugging Questions / Re: A fatal error has been detected by the Java Runtime Environment with LibGDX on: 2014-06-20 20:10:17
Can you please try with JDK Version 7?

So you mean revert from JDK 8 to JDK7? I will try to install it as an alternative now.
4  Game Development / Newbie & Debugging Questions / Re: A fatal error has been detected by the Java Runtime Environment with LibGDX on: 2014-06-20 18:33:40
I do not believe I am spamming the RAM. I am only loading a bitmap font and atlas once. When I fire a bullet for example, that object is assigned one sprite. I do not delete that sprite's texture because it has to be re used for other objects. If you did, all images would go black. (Image atlas would need to be re-loaded)

I do re-load the same atlas for each screen, but I dispose of it before I re-load it. This shouldn't matter.

Having looked over LibGDX practices as far as keeping memory from being flooded and do believe I am following them correctly.

Also, using VisualVM I did not see any apparent memory leaks. All garbage seemed to be taken care of and RAM used stayed below 10MB. However, when the application does fail (10 to 20% of the time) then I can't profile the app during those instances. So I am blind when it counts most.
5  Game Development / Newbie & Debugging Questions / A fatal error has been detected by the Java Runtime Environment with LibGDX on: 2014-06-20 15:20:25
Alight, so here is the issue.

I dispose of all my stuff. Just in case it doesn't call dispose(), I call dispose() in the hide() method for com.badlogic.gdx.Screen. I also use a boolean to make sure even if dispose() is called twice, it only disposes of all images, sprites, ect once.

I can't be posting all of my code on here, it is way too much. What I have notice though is it always happens when I hit "Play" on the screen. So here is my MainMenu class.
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
import com.badlogic.gdx.scenes.scene2d.ui.TextButton.TextButtonStyle;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.badlogic.gdx.utils.viewport.ScreenViewport;

public class MainMenu implements Screen {
   private boolean isDisposed = false;

   private TextureAtlas   atlas;
   private TextButton      buttonPlay;
   private BitmapFont      font;
   private Skin         skin;
   private Stage         stage;

   private Table         table;

   public void dispose() {
      if(!isDisposed) {
         isDisposed = true;

   public void hide() {

   public void pause() {
      // TODO Auto-generated method stub


   public void render(final float delta) {, 0, 0, 1);;


   public void resize(final int width, final int height) {
      stage.getViewport().update(width, height);
      table.setSize(width, height);

   public void resume() {
      // TODO Auto-generated method stub


   public void show() {
      final FreeTypeFontGenerator generator = new FreeTypeFontGenerator(
      font = generator.generateFont(80);

      stage = new Stage(new ScreenViewport());


      atlas = new TextureAtlas(Gdx.files.internal("img/game.pack"));
      skin = new Skin(atlas);

      table = new Table(skin);
      table.setBounds(0, 0,,;

      final TextButtonStyle textButtonStyle = new TextButtonStyle();
      textButtonStyle.up = skin.getDrawable("button_up");
      textButtonStyle.down = skin.getDrawable("button_down");
      textButtonStyle.pressedOffsetX = 1;
      textButtonStyle.pressedOffsetY = -1;
      textButtonStyle.font = font;
      textButtonStyle.fontColor = Color.WHITE;

      buttonPlay = new TextButton("Play", textButtonStyle);
      buttonPlay.addListener(new ClickListener() {
         public void clicked(final InputEvent event, final float x,
               final float y) {
            ((Game) World(1));



Also, Here is the error I get in the console.
# A fatal error has been detected by the Java Runtime Environment:
#  SIGSEGV (0xb) at pc=0x00007fd655250da3, pid=3320, tid=140558124238592
# JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  []  Arena::destruct_contents()+0x83
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
# An error report file with more information is saved as:
# /home/gemurdock/Documents/Workspace/Great Reach/GreatReach-desktop/hs_err_pid3320.log
# Compiler replay data is saved as:
# /home/gemurdock/Documents/Workspace/Great Reach/GreatReach-desktop/replay_pid3320.log
# If you would like to submit a bug report, please visit:

It also logs two files.

hs_err_pid3320.log -

replay_pid3320.log -

I have tried some things, like putting dispose() in the hide() method. However, I am not exactly sure what to do with this type of crash/error as I have never seen anything like it before. Thanks for any help / guidance on the issue.
6  Game Development / Newbie & Debugging Questions / Re: Weird import rotation issue / possible coordinate system issue (so someone says) on: 2014-02-07 19:50:09

The issue was with OGRE exporter in blender 2.65. Need to use Wavefont instead.
7  Game Development / Newbie & Debugging Questions / Weird import rotation issue / possible coordinate system issue (so someone says) on: 2014-02-04 16:02:26
I posted this question on gamedev and concept3d got back to me. I think he is off the mark, but also not exactly sure what the deal here is either. The question is below along with the images.

Basically when I import the model he is off by 10 to 20 degrees and he is kind of rotated wierd on the Y-axis by 5 to 10 degrees.

What could I have done in blender to cause this issue?

I can supply the .blend file if someone wants and can do testing if someone asks. Just not even sure how to diagnose this issue.

8  Discussions / Business and Project Management Discussions / Re: Looking for team experience on: 2014-01-21 22:27:13
Here's a few hints for doing things like this.

Start the game before you look for people to work with. This is very important. If you look at all the other topics like this, you'll see that they fail to even start. If you have something already made, it will give the project direction.

Also note:
Writing your idea down is not starting the damn game. Writing a design document is not starting the damn game. Assembling a team is not starting the damn game. Even doing graphics or music is not starting the damn game. It’s easy to confuse “preparing to start the damn game” with “starting the damn game”. Just remember: a damn game can be played, and if you have not created something that can be played, it’s not a damn game!

Make sure the people joining are actually experienced.

Make they know who's boss. If they can't co-operate, kick them out or they'll drag down the whole project. On the other hand, don't be too bossy. Allow input, but you should get the final say. It is your project after all.

Thanks for the tip, but the point of it is to start very beginner. I am not too worried about it... more so want to test my teamwork skills and ability to learn from others and teach when needed, but you are very correct. Thanks for the tips. Smiley

Hey man, I'd be interested in something like this. Could you PM me with more details of what you plan to do, how we could get in touch, what project we would be working on etc?

Will send in a couple minutes... SENT. if you don't get anything within 2 hours reply here.
9  Discussions / Business and Project Management Discussions / Looking for team experience on: 2014-01-21 21:52:09
Team Info:

1. Zeke
2. Joker

Programs Used:

Comm. - Skype / Email
Version Control - Git / Github

Projects: - For learning jMonkeyEngine3

// Start of Rant

Ok, I have replied to two others who wanted to do this. Apparently they are not committed enough to even reply back. Saves me time anyways...

// End of Rant

Anyways, here is what I am going trying to learn.

  • jMonkeyEngine 3 (Started)
  • libGDX (Later, will be mainly android)
  • Blender (Started)
  • How to work as a team
  • Create my own game engine (Started)

If you are interested, reply here. I would love to work together. I am highly inexperienced in game programming... I understand it, but can't do much past the basics as far as 3D is concerned.  As far as Java... I have been programming for years. So that is not new to me.

I have a server I could set up to work on or we could just use github and allow others in the community to contribute periodically. I don't really have anything set as I am trying to be flexible until I find at least one other person to work with, prefer 2... max 4.

You have to be committed to working weekly, that does not mean that you won't have weeks were you do nothing... but I want some commitment is all.

If you are more experienced, I will obviously take your lead and have no issue with that... but I do warn you... if you cause an imbalance in a team then you will be warned... then kicked if necessary.

We will be using git for projects, no exceptions unless you convince me otherwise. (Better have good argument)

I don't care your age, just be mature... as I know people who are 40 years old and act like they are 7 and vise versa... well... maybe not that young. You get the point. (Can still be fun, just not 12 year old piss everyone off "fun")

Like I said, just reply here to ask questions RELATED to the topic. Whatever you do, don't reply saying "Good luck"... I don't believe in luck... only the force.

Just trying to get some team experience in... not trying to make this a second job for anyone...

Sorry btw if I seem a little ticked... it is because I am...
10  Discussions / General Discussions / Re: Need Advice for continuing projects. on: 2014-01-21 20:44:09

You must have some amazing patience if you can actually watch that... that would be the least inspiring thing for me... but troll does have a point about the inspiration.

For me, ill just hit up a different task for a couple days so I can clear my head and go back and solve the problem. Usually gives me time to think about the issue as well. Your brain works in the background even though your not actually thinking about it. How many times have you been in the shower and gone eureka! Maybe it's just me, but it literally happens daily to me...

Meditation can also reduce stress and help you solve problems better.

Just a couple quick tips, hope it helps.

Just remember, if you quit... then was not everything else a waste of time?

Oh ya, here are some quotes. Tongue

"Pain is temporary. Quitting lasts forever." - Lance Armstrong

"Quitting is the easiest thing to do." - Robert Kiyosaki

11  Games Center / WIP games, tools & toy projects / Re: 3D Randomly Generated World on: 2014-01-21 20:28:47
Still works for me.

Question 1: Why not use Quaternions for camera? - or if you have, it is not working properly.

Question 2: Where is this going? Do you have an end game?

Also, super sonic can get me off the map fyi.
12  Discussions / General Discussions / Re: Doomsday for unsigned and self-signed applets on: 2014-01-16 20:54:39
Java is not gonna die anytime soon... thankfully... and is actually still growing support as of the end of 2013. This might be a turn... only time will tell.
13  Discussions / General Discussions / Re: From super skinny to normal weight, anyone ? on: 2014-01-16 20:38:20

Wow. I hate you. I was 258lbs (117.027kg) and went down to 195lbs (88.4505kg)... I should weight 185lbs (83.9146kg) without muscle build... Smiley

That was after a skiing accident where I hurt my back and couldn't walk. TWO DAYS before the competition as well... I was prolly gonna get 3rd places as well... so mad. Anyways, Ya... I wish my problem was I ate too little. Im just jeleous.  Cranky

I have to exercise to maintain my weight... grr.

Btw, protein shakes are a lie. Eat things with protein in it. Like chicken and turkey. Way better for you. You can easily get 20g+ of protein just from a meal with chicken in it.

Also, watch this to show you don't need a gym (INSANE!!!):
14  Discussions / General Discussions / Re: Doomsday for unsigned and self-signed applets on: 2014-01-16 20:29:16
Are java applets so not yesterday anyways??? Tongue


I was thinking the same thing... maybe even could have its own... Smiley

Too bad it couldn't be used for SSL on this site as well... Sad
15  Games Center / Featured Games / Re: State of Fortune on: 2014-01-16 18:26:47

Ya, Matheus23 and Riven are pretty spot on.

Here are two links you may want to read.

Also, it is working now... password is now only 12 chars after reset. (Idc about this pass, it is strickly for this game)

-- Break --

On a separate note, how do I build things in the game??? I wana make a building. Smiley
16  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Having trouble setting up textpad and lwjgl on: 2014-01-16 07:15:33
I will find you some tutorials, but I have no idea why you use that since it costs $27...

Here is a video: (Compile and run java)

Here is another video: (Compile and run java, looks like the better one)

Here is a StackOverflow question for including libraries without an IDE:
17  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Having trouble setting up textpad and lwjgl on: 2014-01-16 07:08:55
Why not just use an IDE?

You will need a way to compile the code if you use just textpad. (Assuming it is like notepad)
18  Games Center / WIP games, tools & toy projects / Re: [LibGDX] UnNamed CityBuilding / Card Game on: 2014-01-16 04:48:51
I demand: DOWNLOAD!!!

Please? Smiley

Also, very nice for a first game btw. Very impressive. You had to of coded other things before this... you don't just "go and program a game"... even this...
19  Games Center / WIP games, tools & toy projects / Re: PsiFire Releases the PsiDiCE VTT Dice Roller 2.2 (Updated) on: 2014-01-16 04:38:37

Ya, I was like if he didn't determine the roll before hand then it would be interesting. HAHA!

Another quick question for you, and quite personal so I understand if you wish not to answer. How is monetizing things like this going for you (and anyone else willing to comment on their projects being sold from the forum)Huh I don't need numbers, just wondering if you would say "it was worth it!" or whatever response would be appropriate? (Only ask because there can't be a huge market for something like that... and at $10 per sale... you would need quite a bit of sales.)

Also, nice setup btw. Man I wish I had a PC like that... especially running Fedora... WEW! GREAT SETUP!
20  Java Game APIs & Engines / Tools Discussion / Re: Spine: 2D skeletal animation on: 2014-01-16 04:18:37

Well since I wasn't using the software at the moment so I uninstalled.
21  Game Development / Newbie & Debugging Questions / Re: Box2D collision gap issue on: 2014-01-16 02:05:46
Is it just me or are the images gone?
22  Java Game APIs & Engines / Tools Discussion / Re: Spine: 2D skeletal animation on: 2014-01-16 02:03:37

Second: How long did it take to code that? Jeez that is amazing. I really hope monetizing will work for you, it can be very hard.

Third: The uninstall was not in control panel for Windows 7. Just FYI. I had to go to Program Files (x86) to Uninstall.
23  Discussions / General Discussions / Re: Keyboard spill! :D on: 2014-01-16 01:32:03
I laughed so hard after I read you washed your keyboard I almost passed out. Wow. No way you did that. HAHA!
24  Game Development / Newbie & Debugging Questions / Re: How to set boundaries/invisible walls in Slick 2D on: 2014-01-16 01:27:44
"[ code ] CODE GOES HERE [ /code ]"

**REMOVE Spaces inside of brackets**
**REMOVE quotes on outside**

int test = 5;
25  Games Center / Showcase / Re: Naku the Cat on: 2014-01-16 01:08:42
Is there a working game and/or code I can play with???

I love to play with stuff that people already did the work for. Smiley
26  Games Center / WIP games, tools & toy projects / Re: PsiFire Releases the PsiDiCE VTT Dice Roller 2.2 (Updated) on: 2014-01-16 01:02:41
Not gonna lie, that looks like a lot of hard work for not even a reply.

Quick question: Does the application randomly choose a face first or does it use physics engine?
27  Discussions / Business and Project Management Discussions / Re: Want to join a team on: 2014-01-16 00:58:27

Agreed, but what does that have to do with IDE?


I feel ya, been using eclipse... especially for android... actually the reason I switched over. However, I guess I am just not a hater. Haha.
28  Games Center / Featured Games / Re: State of Fortune on: 2014-01-16 00:48:43
Really wanted to try the game.

But it won't let me login.

Here is my user: Zeke

I don't know if my password is the problem. It is 30 chars long and has a lot of symbols, upper case, and numbers... etc.

Could that be an issue? I really want to try this out!!!
29  Games Center / Featured Games / Re: Attack of the Gelatinous Blob on: 2014-01-16 00:38:53

I got this error. You said you fixed it, but then I got this error... haha. I know it is tough. Ill wait patiently. Smiley

Or I could piss and moan like an american... well I am an american. Ya, what am I thinking? GIVE ME BLOB NOW!!! Tongue

Note: I am running OpenGL 3.0
30  Discussions / Business and Project Management Discussions / Re: Want to join a team on: 2014-01-16 00:22:44
What do you hate about netbeans?

I never "loved" it... but I didn't hate it either.
Pages: [1] 2
DesertCoockie (22 views)
2018-05-13 18:23:11

nelsongames (72 views)
2018-04-24 18:15:36

nelsongames (67 views)
2018-04-24 18:14:32

ivj94 (751 views)
2018-03-24 14:47:39

ivj94 (81 views)
2018-03-24 14:46:31

ivj94 (605 views)
2018-03-24 14:43:53

Solater (97 views)
2018-03-17 05:04:08

nelsongames (170 views)
2018-03-05 17:56:34

Gornova (388 views)
2018-03-02 22:15:33

buddyBro (1048 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!