FreeType crash on android emulator

Anything libgdx related goes here!

FreeType crash on android emulator

Postby roccapl » Sat Aug 18, 2012 3:31 pm

I'm using the 20120815 nightly build.
The program runs on my phone without problems (a Sony Ericcsson XPERIA S with Android 4.0.4)
On my emulator (Android 2.3.3 Api level 10) this is the error message i get:

Code: Select all
08-18 15:15:30.874: W/dalvikvm(551): JNI WARNING: invalid values for address (0x0) or capacity (0)
08-18 15:15:30.874: I/dalvikvm(551): "GLThread" prio=5 tid=11 NATIVE
08-18 15:15:30.884: I/dalvikvm(551):   | group="main" sCount=0 dsCount=0 obj=0x4050d610 self=0x1ead88
08-18 15:15:30.884: I/dalvikvm(551):   | sysTid=561 nice=0 sched=0/0 cgrp=default handle=1945480
08-18 15:15:30.894: I/dalvikvm(551):   | schedstat=( 836125581 1008198095 105 )
08-18 15:15:30.894: I/dalvikvm(551):   at com.badlogic.gdx.graphics.g2d.freetype.FreeType$Bitmap.getBuffer(Native Method)
08-18 15:15:30.904: I/dalvikvm(551):   at com.badlogic.gdx.graphics.g2d.freetype.FreeType$Bitmap.getBuffer(FreeType.java:351)
08-18 15:15:30.904: I/dalvikvm(551):   at com.badlogic.gdx.graphics.g2d.freetype.FreeType$Bitmap.getPixmap(FreeType.java:359)
08-18 15:15:30.904: I/dalvikvm(551):   at com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.generateData(FreeTypeFontGenerator.java:164)
08-18 15:15:31.010: I/dalvikvm(551):   at com.mookapot.pictureclash.CropImageUI.create(CropImageUI.java:174)
08-18 15:15:31.010: I/dalvikvm(551):   at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:290)
08-18 15:15:31.010: I/dalvikvm(551):   at com.badlogic.gdx.backends.android.surfaceview.GLSurfaceViewCupcake$GLThread.guardedRun(GLSurfaceViewCupcake.java:708)
08-18 15:15:31.010: I/dalvikvm(551):   at com.badlogic.gdx.backends.android.surfaceview.GLSurfaceViewCupcake$GLThread.run(GLSurfaceViewCupcake.java:646)
08-18 15:15:31.014: E/dalvikvm(551): VM aborting


and these are the lines of code generating the error:
Code: Select all
172 FileHandle fontFile = Gdx.files.internal("data/fonts/Roboto-Regular.ttf");
173 FreeTypeFontGenerator generator = new FreeTypeFontGenerator(fontFile);
174 FreeTypeBitmapFontData fontData = generator.generateData(24, FreeTypeFontGenerator.DEFAULT_CHARS, false);
175 generator.dispose();
176 font = new BitmapFont(fontData, fontData.getTextureRegion(), false);
177 font.setUseIntegerPositions(true);
roccapl
 
Posts: 40
Joined: Wed Aug 01, 2012 4:06 pm
Location: Italy

Re: FreeType crash on android emulator

Postby roccapl » Mon Aug 20, 2012 6:49 am

is this happening to me only?
roccapl
 
Posts: 40
Joined: Wed Aug 01, 2012 4:06 pm
Location: Italy


Return to Libgdx

Who is online

Users browsing this forum: Bing [Bot] and 6 guests