Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java Segment Fault  (Read 1763 times)
0 Members and 1 Guest are viewing this topic.
Offline ReBirth
« Posted 2013-03-03 05:14:18 »

Sometimes when messing with libgdx, it appears
1  
2  
3  
4  
5  
6  
7  
8  
9  
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f95727c8999, pid=6955, tid=140278980540160
#
# JRE version: 7.0_09-b05
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.5-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libc.so.6+0x80999]

ADT Bundle 21, Linux Mint 14 Mate 64-bit, libgdx 0.9.8, Java 64 1.7.0_09 (compile target 1.6), vga driver amd 12.11.beta11.

Offline sproingie

JGO Kernel


Medals: 202



« Reply #1 - Posted 2013-03-03 05:42:48 »

That's a crash in a native method.  The libgdx people might be interested in seeing that.  Going to need the full dump though, so stick it on the pastebin perhaps?

Offline ReBirth
« Reply #2 - Posted 2013-03-03 05:48:39 »

That's full dump. Well since it's about native, I guess I just sit here waiting.

For more info, the game windows in question will still stick there. It only shows title bar with transparent content. Eclipse's terminate takes a while but won't do so I have to pkill it.

EDIT: new throw up, now with red color (previous dump is normal-colored in eclipse)
1  
*** glibc detected *** /usr/lib/jvm/jdk1.9.0/bin/java: corrupted double-linked list: 0x00007fbd1c6118f0 ***

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #3 - Posted 2013-03-03 06:30:19 »

Errrr libc.so.6 is the GNU C standard library implementation. Sounds like something is either calling it wrong or you have a corrupt installation of that :S

Offline ReBirth
« Reply #4 - Posted 2013-03-03 06:48:44 »

Dump on my 1st post always shows up on exiting while the next shorter dump appears randomly.

Offline sproingie

JGO Kernel


Medals: 202



« Reply #5 - Posted 2013-03-03 16:17:08 »

You should have a file named hs_err_pid*.log in the directory where you ran it (probably your project root in eclipse).  That will have the full dump in it, and that's what the GDX folks would need.  My guess is it's driver-related and there's nothing they can do, but it's always good to know.
Online matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #6 - Posted 2013-03-03 16:19:20 »

Also, if you actually "messed with libgdx" in a way, that is: Gdx.gl.* or Gdx.gl2.* or anything like that in terms of GL calls, then it's probably your fault Wink

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline ReBirth
« Reply #7 - Posted 2013-03-04 02:30:02 »

@sproingie
nope, no where (checked on root of 3 projects).

@matheus23
Not really Wink I just called Gdx.gl.[put the chaos here] but that's only because I mixed up ShapeRenderer plus SpriteBatch. It's not good. So I removed the ShapeRenderer and only messing GL with clear buffer and alpha bend.

Online princec

JGO Kernel


Medals: 364
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #8 - Posted 2013-03-04 09:16:40 »

Er, JDK1.9...?

Cas Smiley

Offline nsigma
« Reply #9 - Posted 2013-03-04 09:55:31 »

I get consistent segfaults when exiting on Linux (Ubuntu 12.04) with the AMD graphics drivers, though this is in libX11 (google LWJGL XQueryExtension).  I wonder if your bug might have similar causes (I seem to recall reading it's caused by a thread race on exit).  Do other LWJGL-based applications work OK on your system?

@sproingie
nope, no where (checked on root of 3 projects).

What about home directory?

Praxis LIVE - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cero
« Reply #10 - Posted 2013-03-04 15:08:29 »

1  
/usr/lib/jvm/jdk1.9.0/bin/java: corrupted double-linked list: 0x00007fbd1c6118f0 ***

Er, JDK1.9...?

That is odd :DD

Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #11 - Posted 2013-03-04 21:52:30 »

He's from the future!! Shocked Shocked

Offline ReBirth
« Reply #12 - Posted 2013-03-05 02:08:51 »

Yes I am from future, where you can create class inside for/while/if blocks Grin and libgdx can port to PS4, 720, wiiU, etc

@nsigma
Nope. There is .java/ dir but not there too. Thread race? hmm it must not be my fault (yet), I haven't even put audio.

@princec
1  
2  
3  
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)

My execution result of "java -version". Is the 1.9.0 my built-in openjdk?!

Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #13 - Posted 2013-03-05 03:03:09 »

Yes I am from future, where you can create class inside for/while/if blocks Grin

Errr....

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
if(mySpecialVariable > 5) {
    class SuperNestedClass {
        private int num;
       
        SuperNestedClass(int num) {
            this.num = num;
        }
    }
   
    SuperNestedClass snc = new SuperNestedClass(mySpecialVariable);
    doSomethingWithObject(snc);
}


That is valid code.....

Offline ReBirth
« Reply #14 - Posted 2013-03-05 05:11:40 »

Yeah I know, that why the Grin was there Grin

Offline ReBirth
« Reply #15 - Posted 2013-03-13 11:10:01 »

I solved this by myself. The evil is a non-safe thread, for example like changing Screen based on input events (not from render()).

Offline ReBirth
« Reply #16 - Posted 2013-03-24 05:30:04 »

After done with java4k judging I go back to this project and it happens again Sad

I have made it safer, by using boolean flag to change screen on render loop().

More info, it always happens on 3rd attempt to change screen. For example,
menu -> game -> score -> (hell broke) menu
menu -> game -> menu -> (world burn) game

I have tried to disable "compressed oops" with runtime flag although I don't know WTH it is. Seriously, this thing can be googled easily but no one solution.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

TehJavaDev (13 views)
2014-08-28 18:26:30

CopyableCougar4 (25 views)
2014-08-22 19:31:30

atombrot (38 views)
2014-08-19 09:29:53

Tekkerue (31 views)
2014-08-16 06:45:27

Tekkerue (31 views)
2014-08-16 06:22:17

Tekkerue (19 views)
2014-08-16 06:20:21

Tekkerue (29 views)
2014-08-16 06:12:11

Rayexar (66 views)
2014-08-11 02:49:23

BurntPizza (42 views)
2014-08-09 21:09:32

BurntPizza (34 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!