Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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-21 01: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

EDIT:

Added tweenManager.update(Float.MIN_VALUE); during com.badlogic.gdx.Screen.show() 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 23: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 22: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 20: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 17: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.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator;
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) {
         atlas.dispose();
         font.dispose();
         stage.dispose();
         isDisposed = true;
      }
   }

   public void hide() {
      dispose();
   }

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

   }

   public void render(final float delta) {
      Gdx.gl.glClearColor(0, 0, 0, 1);
      Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);

      stage.act(delta);
      stage.draw();
   }

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

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

   }

   public void show() {
      final FreeTypeFontGenerator generator = new FreeTypeFontGenerator(
            Gdx.files.internal("fonts/Track.ttf"));
      font = generator.generateFont(80);
      generator.dispose();

      stage = new Stage(new ScreenViewport());

      Gdx.input.setInputProcessor(stage);

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

      table = new Table(skin);
      table.setBounds(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());

      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() {
         @Override
         public void clicked(final InputEvent event, final float x,
               final float y) {
            ((Game) Gdx.app.getApplicationListener()).setScreen(new World(1));
         }
      });
      buttonPlay.pad(20);

      table.add(buttonPlay);
      stage.addActor(table);
   }

}


Also, Here is the error I get in the console.
Quote
#
# 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  [libjvm.so+0x2acda3]  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:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

It also logs two files.

hs_err_pid3320.log - http://pastebin.com/ZG8Ek98R

replay_pid3320.log - http://pastebin.com/bn0GdGnf

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 20:50:09
SOLVED!

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 17: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.

http://gamedev.stackexchange.com/questions/69804/what-caused-rotation-in-exported-blender-model-to-jmonkey-ogre/69812?noredirect=1#comment125948_69812







8  Discussions / Business and Project Management Discussions / Re: Looking for team experience on: 2014-01-21 23: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:
Quote
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 22:52:09
Team Info:

1. Zeke
2. Joker

Programs Used:

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

Projects:

https://github.com/gemurdock/jMonkeyTesting - 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 21:44:09
@trollwarrior1

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

Source: http://www.brainyquote.com/quotes/keywords/quitting.html
11  Games Center / WIP games, tools & toy projects / Re: 3D Randomly Generated World on: 2014-01-21 21: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 21: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 21:38:20
HAHAHAHA!

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!!!): http://www.youtube.com/watch?v=r4dR93bFXZ4
14  Discussions / General Discussions / Re: Doomsday for unsigned and self-signed applets on: 2014-01-16 21:29:16
Are java applets so not yesterday anyways??? Tongue

@gouessej

I was thinking the same thing... maybe even java-gaming.org 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 19:26:47
@Mickelukas

Ya, Matheus23 and Riven are pretty spot on.

Here are two links you may want to read.

http://www.php.net/manual/en/faq.passwords.php

http://security.stackexchange.com/questions/211/how-to-securely-hash-passwords

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 08: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: http://www.youtube.com/watch?v=7uvR8gFUlyQ (Compile and run java)

Here is another video: http://www.youtube.com/watch?v=vzNJBZkNWu0 (Compile and run java, looks like the better one)

Here is a StackOverflow question for including libraries without an IDE: http://stackoverflow.com/questions/5112607/how-to-include-libraries-in-java-without-using-an-ide
17  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Having trouble setting up textpad and lwjgl on: 2014-01-16 08: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 05: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 05:38:37
@Tom

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 05:18:37
@Nate

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 03: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 03:03:37
First: GREAT JOB!

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 02: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 02:27:44
"[ code ] CODE GOES HERE [ /code ]"

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

1  
int test = 5;
25  Games Center / Showcase / Re: Naku the Cat on: 2014-01-16 02: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 02: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 01:58:27
@Argo

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

@opiop65

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 01: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 01: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 01:22:44
What do you hate about netbeans?

I never "loved" it... but I didn't hate it either.
Pages: [1] 2
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (14 views)
2014-07-30 21:08:39

Riven (21 views)
2014-07-29 18:09:19

Riven (14 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (32 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (29 views)
2014-07-23 21:07:15

Riven (30 views)
2014-07-23 20:56:16
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org 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‑gaming.org
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!