About Store Forum Documentation Contact



Post Reply 
[Android] Bug Kindle Fire
Author Message
cmontiel Offline
Member

Post: #1
[Android] Bug Kindle Fire
Last sdk, EE 1.0 Example project (eclipse).

Kindle Fire.

The ball is black, if you tap with finger , you can see the borders of the ball behind the red circle.

[Image: la_foto.png]

We also tested our game and all the characters are black.

IRC: irc.freenode.net
Channel: #Esenthel
(This post was last modified: 04-25-2013 12:36 PM by cmontiel.)
04-25-2013 12:35 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: [Android] Bug Kindle Fire
Hello,

Can you run this APK http://www.esenthel.com/download/Temp/apk.7z on your device and attach here the log output from
"/mnt/sdcard/Esenthel*.txt" or "/mnt/extsdcard/Esenthel*.txt"
04-25-2013 04:33 PM
Find all posts by this user Quote this message in a reply
cmontiel Offline
Member

Post: #3
RE: [Android] Bug Kindle Fire
KF is not mine pfft. I will ask him tomorrow.

IRC: irc.freenode.net
Channel: #Esenthel
04-25-2013 06:57 PM
Find all posts by this user Quote this message in a reply
cmontiel Offline
Member

Post: #4
RE: [Android] Bug Kindle Fire
He has been offline this week. On monday he will try it.

IRC: irc.freenode.net
Channel: #Esenthel
05-03-2013 10:19 AM
Find all posts by this user Quote this message in a reply
cmontiel Offline
Member

Post: #5
RE: [Android] Bug Kindle Fire
He will lend me KF1 this month.

IRC: irc.freenode.net
Channel: #Esenthel
05-07-2013 06:39 PM
Find all posts by this user Quote this message in a reply
cmontiel Offline
Member

Post: #6
RE: [Android] Bug Kindle Fire
Ok I have it now.

Video:





And log of your test apk.

Code:
Start - Already Initialized(0)
JavaInit JNI(0x00000000)
JavaGetAppName
Found external storage directory and continuing log there: \mnt\sdcard
Continuing log from: /sdcard/Esenthel Log.txt
Android SDK Version: 10
JavaGetOSUserName
JavaGetScreenSize
JavaGetInput
JavaKeyboard
JavaLooper
JavaClipboard
JavaFinished
LoopStart
CmdCallback
APP_CMD_START
CmdCallback
APP_CMD_RESUME
CmdCallback
CmdCallback
APP_CMD_INIT_WINDOW
CPU.create
TimeClass.create
InitSocket
InitPre
Application.windowCreate
InitSound
InputDevicesClass.create
Display.create
Display.createDevice
EGL
Trying config C:0, D:0, S:0, A:0, configs:1
EGL OK
Renderer.main: 1024x580, type: R8G8B8X8
Secondary Contexts
Device Name: PowerVR SGX 540
Device Vendor: Imagination Technologies
Device Version: OpenGL ES 2.0
FBO
Display.getCaps
RendererClass.rtCreate
MainShaderClass.create
Compiling vertex shader in technique "Draw2DFlat" of shader "Main"
Compiling pixel shader in technique "Draw2DFlat" of shader "Main"
Linking vertex+pixel shader in technique "Draw2DFlat" of shader "Main": Success
Compiling vertex shader in technique "Draw3DFlat" of shader "Main"
Compiling pixel shader in technique "Draw3DFlat" of shader "Main"
Linking vertex+pixel shader in technique "Draw3DFlat" of shader "Main": Success
Compiling vertex shader in technique "Draw2DCol" of shader "Main"
Compiling pixel shader in technique "Draw2DCol" of shader "Main"
Linking vertex+pixel shader in technique "Draw2DCol" of shader "Main": Success
Compiling vertex shader in technique "Draw3DCol" of shader "Main"
Compiling pixel shader in technique "Draw3DCol" of shader "Main"
Linking vertex+pixel shader in technique "Draw3DCol" of shader "Main": Success
Compiling vertex shader in technique "Draw2DTex" of shader "Main"
Compiling pixel shader in technique "Draw2DTex" of shader "Main"
Linking vertex+pixel shader in technique "Draw2DTex" of shader "Main": Success
Compiling vertex shader in technique "Draw2DTexC" of shader "Main"
Compiling pixel shader in technique "Draw2DTexC" of shader "Main"
Linking vertex+pixel shader in technique "Draw2DTexC" of shader "Main": Success
Compiling vertex shader in technique "Draw2DTexCol" of shader "Main"
Compiling pixel shader in technique "Draw2DTexCol" of shader "Main"
Linking vertex+pixel shader in technique "Draw2DTexCol" of shader "Main": Success
Compiling vertex shader in technique "Draw3DTex" of shader "Main"
Compiling pixel shader in technique "Draw3DTex" of shader "Main"
Linking vertex+pixel shader in technique "Draw3DTex" of shader "Main": Success
Compiling vertex shader in technique "Draw3DTexAT" of shader "Main"
Compiling pixel shader in technique "Draw3DTexAT" of shader "Main"
Linking vertex+pixel shader in technique "Draw3DTexAT" of shader "Main": Success
Compiling vertex shader in technique "Draw3DTexCol" of shader "Main"
Compiling pixel shader in technique "Draw3DTexCol" of shader "Main"
Linking vertex+pixel shader in technique "Draw3DTexCol" of shader "Main": Success
Compiling vertex shader in technique "Draw3DTexColAT" of shader "Main"
Compiling pixel shader in technique "Draw3DTexColAT" of shader "Main"
Linking vertex+pixel shader in technique "Draw3DTexColAT" of shader "Main": Success
Compiling vertex shader in technique "DrawTexX" of shader "Main"
Compiling pixel shader in technique "DrawTexX" of shader "Main"
Linking vertex+pixel shader in technique "DrawTexX" of shader "Main": Success
Compiling vertex shader in technique "DrawTexZ" of shader "Main"
Compiling pixel shader in technique "DrawTexZ" of shader "Main"
Linking vertex+pixel shader in technique "DrawTexZ" of shader "Main": Success
Compiling vertex shader in technique "DrawTexW" of shader "Main"
Compiling pixel shader in technique "DrawTexW" of shader "Main"
Linking vertex+pixel shader in technique "DrawTexW" of shader "Main": Success
Compiling vertex shader in technique "DrawTexNrm" of shader "Main"
Compiling pixel shader in technique "DrawTexNrm" of shader "Main"
Linking vertex+pixel shader in technique "DrawTexNrm" of shader "Main": Success
Compiling vertex shader in technique "DrawMask" of shader "Main"
Compiling pixel shader in technique "DrawMask" of shader "Main"
Linking vertex+pixel shader in technique "DrawMask" of shader "Main": Success
Compiling vertex shader in technique "DrawCubeFace" of shader "Main"
Compiling pixel shader in technique "DrawCubeFace" of shader "Main"
Linking vertex+pixel shader in technique "DrawCubeFace" of shader "Main": Success
Compiling vertex shader in technique "Font" of shader "Main"
Compiling pixel shader in technique "Font" of shader "Main"
Linking vertex+pixel shader in technique "Font" of shader "Main": Success
Compiling vertex shader in technique "FontD" of shader "Main"
Compiling pixel shader in technique "FontD" of shader "Main"
Linking vertex+pixel shader in technique "FontD" of shader "Main": Success
Compiling vertex shader in technique "Laser" of shader "Main"
Compiling pixel shader in technique "Laser" of shader "Main"
Linking vertex+pixel shader in technique "Laser" of shader "Main": Success
Compiling vertex shader in technique "LaserN" of shader "Main"
Compiling pixel shader in technique "LaserN" of shader "Main"
Linking vertex+pixel shader in technique "LaserN" of shader "Main": Success
Compiling vertex shader in technique "Simple" of shader "Main"
Compiling pixel shader in technique "Simple" of shader "Main"
Linking vertex+pixel shader in technique "Simple" of shader "Main": Success
Compiling vertex shader in technique "SetCol" of shader "Main"
Compiling pixel shader in technique "SetCol" of shader "Main"
Linking vertex+pixel shader in technique "SetCol" of shader "Main": Success
Compiling vertex shader in technique "Draw" of shader "Main"
Compiling pixel shader in technique "Draw" of shader "Main"
Linking vertex+pixel shader in technique "Draw" of shader "Main": Success
Compiling vertex shader in technique "DrawC" of shader "Main"
Compiling pixel shader in technique "DrawC" of shader "Main"
Linking vertex+pixel shader in technique "DrawC" of shader "Main": Success
Compiling vertex shader in technique "Blend" of shader "Main"
Compiling pixel shader in technique "Blend" of shader "Main"
Linking vertex+pixel shader in technique "Blend" of shader "Main": Success
Compiling vertex shader in technique "BlurXH" of shader "Main"
Compiling pixel shader in technique "BlurXH" of shader "Main"
Linking vertex+pixel shader in technique "BlurXH" of shader "Main": Success
Compiling vertex shader in technique "BlurYH" of shader "Main"
Compiling pixel shader in technique "BlurYH" of shader "Main"
Linking vertex+pixel shader in technique "BlurYH" of shader "Main": Success
Compiling vertex shader in technique "BlurX" of shader "Main"
Compiling pixel shader in technique "BlurX" of shader "Main"
Linking vertex+pixel shader in technique "BlurX" of shader "Main": Success
Compiling vertex shader in technique "BlurY" of shader "Main"
Compiling pixel shader in technique "BlurY" of shader "Main"
Linking vertex+pixel shader in technique "BlurY" of shader "Main": Success
Compiling vertex shader in technique "MaxX" of shader "Main"
Compiling pixel shader in technique "MaxX" of shader "Main"
Linking vertex+pixel shader in technique "MaxX" of shader "Main": Success
Compiling vertex shader in technique "MaxY" of shader "Main"
Compiling pixel shader in technique "MaxY" of shader "Main"
Linking vertex+pixel shader in technique "MaxY" of shader "Main": Success
Compiling vertex shader in technique "Ripple" of shader "Main"
Compiling pixel shader in technique "Ripple" of shader "Main"
Linking vertex+pixel shader in technique "Ripple" of shader "Main": Success
Compiling vertex shader in technique "RippleF" of shader "Main"
Compiling pixel shader in technique "RippleF" of shader "Main"
Linking vertex+pixel shader in technique "RippleF" of shader "Main": Success
Compiling vertex shader in technique "Titles" of shader "Main"
Compiling pixel shader in technique "Titles" of shader "Main"
Linking vertex+pixel shader in technique "Titles" of shader "Main": Success
Compiling vertex shader in technique "Fade" of shader "Main"
Compiling pixel shader in technique "Fade" of shader "Main"
Linking vertex+pixel shader in technique "Fade" of shader "Main": Success
Compiling vertex shader in technique "SkyTF1C" of shader "Main"
Compiling pixel shader in technique "SkyTF1C" of shader "Main"
Linking vertex+pixel shader in technique "SkyTF1C" of shader "Main": Success
Compiling vertex shader in technique "SkyTF1" of shader "Main"
Compiling pixel shader in technique "SkyTF1" of shader "Main"
Linking vertex+pixel shader in technique "SkyTF1" of shader "Main": Success
Compiling vertex shader in technique "SkyAFVSC" of shader "Main"
Compiling pixel shader in technique "SkyAFVSC" of shader "Main"
Linking vertex+pixel shader in technique "SkyAFVSC" of shader "Main": Success
Compiling vertex shader in technique "SkyAFVS" of shader "Main"
Compiling pixel shader in technique "SkyAFVS" of shader "Main"
Linking vertex+pixel shader in technique "SkyAFVS" of shader "Main": Success
Compiling vertex shader in technique "SkyAFVC" of shader "Main"
Compiling pixel shader in technique "SkyAFVC" of shader "Main"
Linking vertex+pixel shader in technique "SkyAFVC" of shader "Main": Success
Compiling vertex shader in technique "SkyAFV" of shader "Main"
Compiling pixel shader in technique "SkyAFV" of shader "Main"
Linking vertex+pixel shader in technique "SkyAFV" of shader "Main": Success
Compiling vertex shader in technique "SkyAFSC" of shader "Main"
Compiling pixel shader in technique "SkyAFSC" of shader "Main"
Linking vertex+pixel shader in technique "SkyAFSC" of shader "Main": Success
Compiling vertex shader in technique "SkyAFS" of shader "Main"
Compiling pixel shader in technique "SkyAFS" of shader "Main"
Linking vertex+pixel shader in technique "SkyAFS" of shader "Main": Success
Compiling vertex shader in technique "SkyAFC" of shader "Main"
Compiling pixel shader in technique "SkyAFC" of shader "Main"
Linking vertex+pixel shader in technique "SkyAFC" of shader "Main": Success
Compiling vertex shader in technique "SkyAF" of shader "Main"
Compiling pixel shader in technique "SkyAF" of shader "Main"
Linking vertex+pixel shader in technique "SkyAF" of shader "Main": Success
Compiling vertex shader in technique "ShdStencilDir" of shader "Main"
Compiling pixel shader in technique "ShdStencilDir" of shader "Main"
Linking vertex+pixel shader in technique "ShdStencilDir" of shader "Main": Success
Compiling vertex shader in technique "ShdStencilDirS" of shader "Main"
Compiling pixel shader in technique "ShdStencilDirS" of shader "Main"
Linking vertex+pixel shader in technique "ShdStencilDirS" of shader "Main": Success
Compiling vertex shader in technique "ShdStencilPnt" of shader "Main"
Compiling pixel shader in technique "ShdStencilPnt" of shader "Main"
Linking vertex+pixel shader in technique "ShdStencilPnt" of shader "Main": Success
Compiling vertex shader in technique "ShdStencilPntS" of shader "Main"
Compiling pixel shader in technique "ShdStencilPntS" of shader "Main"
Linking vertex+pixel shader in technique "ShdStencilPntS" of shader "Main": Success
Compiling vertex shader in technique "ParticleDraw" of shader "Main"
Compiling pixel shader in technique "ParticleDraw" of shader "Main"
Linking vertex+pixel shader in technique "ParticleDraw" of shader "Main": Success
Compiling vertex shader in technique "Bilb" of shader "Main"
Compiling pixel shader in technique "Bilb" of shader "Main"
Linking vertex+pixel shader in technique "Bilb" of shader "Main": Success
Compiling vertex shader in technique "ParticleTexPAA" of shader "Main"
Compiling pixel shader in technique "ParticleTexPAA" of shader "Main"
Linking vertex+pixel shader in technique "ParticleTexPAA" of shader "Main": Success
Compiling vertex shader in technique "ParticleTexPA" of shader "Main"
Compiling pixel shader in technique "ParticleTexPA" of shader "Main"
Linking vertex+pixel shader in technique "ParticleTexPA" of shader "Main": Success
Compiling vertex shader in technique "ParticleTexP" of shader "Main"
Compiling pixel shader in technique "ParticleTexP" of shader "Main"
Linking vertex+pixel shader in technique "ParticleTexP" of shader "Main": Success
Compiling vertex shader in technique "ParticleTexAA" of shader "Main"
Compiling pixel shader in technique "ParticleTexAA" of shader "Main"
Linking vertex+pixel shader in technique "ParticleTexAA" of shader "Main": Success
Compiling vertex shader in technique "ParticleTexA" of shader "Main"
Compiling pixel shader in technique "ParticleTexA" of shader "Main"
Linking vertex+pixel shader in technique "ParticleTexA" of shader "Main": Success
Compiling vertex shader in technique "ParticleTex" of shader "Main"
Compiling pixel shader in technique "ParticleTex" of shader "Main"
Linking vertex+pixel shader in technique "ParticleTex" of shader "Main": Success
Compiling vertex shader in technique "BloomDSCH" of shader "Main"
Compiling pixel shader in technique "BloomDSCH" of shader "Main"
Linking vertex+pixel shader in technique "BloomDSCH" of shader "Main": Success
Compiling vertex shader in technique "BloomDSC" of shader "Main"
Compiling pixel shader in technique "BloomDSC" of shader "Main"
Linking vertex+pixel shader in technique "BloomDSC" of shader "Main": Success
Compiling vertex shader in technique "BloomDSH" of shader "Main"
Compiling pixel shader in technique "BloomDSH" of shader "Main"
Linking vertex+pixel shader in technique "BloomDSH" of shader "Main": Success
Compiling vertex shader in technique "BloomDS" of shader "Main"
Compiling pixel shader in technique "BloomDS" of shader "Main"
Linking vertex+pixel shader in technique "BloomDS" of shader "Main": Success
Compiling vertex shader in technique "BloomD" of shader "Main"
Compiling pixel shader in technique "BloomD" of shader "Main"
Linking vertex+pixel shader in technique "BloomD" of shader "Main": Success
Compiling vertex shader in technique "Bloom" of shader "Main"
Compiling pixel shader in technique "Bloom" of shader "Main"
Linking vertex+pixel shader in technique "Bloom" of shader "Main": Success
DisplayState.create
InitVtxInd
InitFont
RendererClass.create
Display.after
GUI.create
Init
CmdCallback
APP_CMD_GAINED_FOCUS
JavaKeyboardVisible
CmdCallback
APP_CMD_SAVE_STATE
CmdCallback
APP_CMD_PAUSE
CmdCallback
APP_CMD_LOST_FOCUS
CmdCallback
APP_CMD_TERM_WINDOW
CmdCallback
APP_CMD_STOP

Tell me if you need more info.

IRC: irc.freenode.net
Channel: #Esenthel
06-01-2013 09:36 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #7
RE: [Android] Bug Kindle Fire
Hi,

Is the device running latest firmware?

Can you run the app, make a system screenshot (typically by holding Power+Back buttons combination) and attach it here?

Some Android devices have issue with OpenGL, that if the Alpha Channel of the render buffer is zero, then those pixels will not display.

Because of that, I had to force R8G8B8X8 render buffer instead of R8G8B8A8, which should ignore the alpha channel.
Quote:Trying config C:0, D:0, S:0, A:0, configs:1
EGL OK
Renderer.main: 1024x580, type: R8G8B8X8
That did help for some devices, however apparently it didn't help for your device.

Perhaps it has something to do with gl/egl config, currently I'm setting it up like this:
Code:
FREPD(c, 2) // colors  (process this as 1st in loop as it's most  important)
      FREPD(d, 3) // depth   (process this as 2nd in loop as it's more  important)
      FREPD(s, 2) // stencil (process this as 3rd in loop as it's less  important)
      FREPD(a, 2) // alpha   (process this as 4th in loop as it's least important)
      {
         has_alpha=(c==0 && a==1);
         bit16    =(c==1);
         EGLint attribs[]=
         {
            EGL_SURFACE_TYPE   , EGL_WINDOW_BIT,
            EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
            EGL_BLUE_SIZE      , (c==0) ?  8 : 5,
            EGL_GREEN_SIZE     , (c==0) ?  8 : 6,
            EGL_RED_SIZE       , (c==0) ?  8 : 5,
            EGL_ALPHA_SIZE     , has_alpha ? 8 : 0, // prefer 0 alpha because many Android devices have faulty GPU drivers and they will use alpha channel when displaying renderbuffer content on the screen, making it black where alpha is low
            EGL_DEPTH_SIZE     , (d==0) ? 24 : (d==1) ? 32 : 16,
            EGL_STENCIL_SIZE   , (s==0) ?  0 : 8,
            EGL_NONE
         };
         EGLint num_configs; eglChooseConfig(GLDisplay, attribs, &GLConfig, 1, &num_configs); if(LogInit)LogN(S+"Trying config C:"+c+", D:"+d+", S:"+s+", A:"+a+", configs:"+num_configs);
EGL sample documentation here: http://www.khronos.org/files/egl-1-4-qui...e-card.pdf
I've noticed it has a EGL_TRANSPARENT_TYPE flag, however the default value for it is EGL_NONE which means that shouldn't be the problem, unless your devices uses other value somehow.

I'm creating the GL in a similar way to Google Android NDK tutorial "AndroidNDK/samples/native-activity"
06-03-2013 06:12 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: [Android] Bug Kindle Fire
Also can you confirm that if you add this code to the end of the "Draw" function
Code:
ALPHA_MODE alpha=D.alpha(ALPHA_ADD);
   Rect(-D.w(), -D.h(), D.w(), D.h()).draw(BLACK);
   D.alpha(alpha);
it works ok?

(that basically makes sure that the Alpha channel is fully set to 255 / 1.0)
06-03-2013 07:10 PM
Find all posts by this user Quote this message in a reply
cmontiel Offline
Member

Post: #9
RE: [Android] Bug Kindle Fire
Quote:Is the device running latest firmware?
Yes, 6.3.2_user_4110520

Quote:Can you run the app, make a system screenshot (typically by holding Power+Back buttons combination) and attach it here?

Kindle fire 1 only have Power button but I took a screenshot with ddms.

[Image: epkwb5.png]

smile

And adding the code YES it works, I can see the ball! But letters still are very pixelated.

IRC: irc.freenode.net
Channel: #Esenthel
06-03-2013 07:23 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #10
RE: [Android] Bug Kindle Fire
Can you confirm that this APK works ok? http://www.esenthel.com/download/Temp/apk2.7z
06-03-2013 09:04 PM
Find all posts by this user Quote this message in a reply
cmontiel Offline
Member

Post: #11
RE: [Android] Bug Kindle Fire
Confirmed it works. Letters are a bit pixelated.

IRC: irc.freenode.net
Channel: #Esenthel
(This post was last modified: 06-04-2013 02:11 AM by cmontiel.)
06-03-2013 11:10 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #12
RE: [Android] Bug Kindle Fire
Thanks, this means that it will work ok in next release.

Quote:Letters are a bit pixelated.
Some devices don't support mipmapping unless full mip map chain is provided.
06-04-2013 11:05 AM
Find all posts by this user Quote this message in a reply
cmontiel Offline
Member

Post: #13
RE: [Android] Bug Kindle Fire
Nice! Amazon has sold millions of KF, it's an important device to consider. So thanks for fast fix (as allways smile).

IRC: irc.freenode.net
Channel: #Esenthel
(This post was last modified: 06-04-2013 01:22 PM by cmontiel.)
06-04-2013 01:18 PM
Find all posts by this user Quote this message in a reply
cmontiel Offline
Member

Post: #14
RE: [Android] Bug Kindle Fire
More problems for KF1. I have buttons calling SoundPlay(), if I tap this buttons 4 o 5 times, game crashes. The most of times, I don't hear the sound.

I know this will not be easy to fix...
06-05-2013 05:26 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #15
RE: [Android] Bug Kindle Fire
Hi,

Can you attach android device log output from the moment of the crash? that should include the callstack.
06-05-2013 08:55 PM
Find all posts by this user Quote this message in a reply
Post Reply