Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Android Example Fails to Active Window context  (Read 2798 times)

0 Members and 1 Guest are viewing this topic.

maxwell79

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Android Example Fails to Active Window context
« on: April 07, 2015, 02:48:36 am »
Hi there,

I've compiled SFML2 for Android given the instructions using Android NDK r10d. This worked fine. However, when launching the example Android project this is given in the Logcat:

04-07 12:38:01.549: D/libEGL(9159): glGetIntegerv(GL_MAJOR_VERSION, (GLint *) 0x77b4b820);
04-07 12:38:01.549: D/libEGL(9159): glGetIntegerv(GL_MINOR_VERSION, (GLint *) 0x77b4b824);
04-07 12:38:01.549: D/libEGL(9159): glGetError();
04-07 12:38:01.549: D/libEGL(9159): glGetIntegerv(0x821e, (GLint *) 0x77b4b828);
04-07 12:38:01.549: W/Adreno-ES20(9159): <get_simple_queries:1515>: GL_INVALID_ENUM
04-07 12:38:01.559: D/libEGL(9159): glGetIntegerv(GL_MAJOR_VERSION, (GLint *) 0x77b4b800);
04-07 12:38:01.559: D/libEGL(9159): glGetIntegerv(GL_MINOR_VERSION, (GLint *) 0x77b4b804);
04-07 12:38:01.559: D/libEGL(9159): glGetError();
04-07 12:38:01.559: D/libEGL(9159): glGetIntegerv(0x821e, (GLint *) 0x77b4b808);
04-07 12:38:01.559: W/Adreno-ES20(9159): <get_simple_queries:1515>: GL_INVALID_ENUM
04-07 12:38:01.559: D/libEGL(9159): glGetIntegerv(GL_MAJOR_VERSION, (GLint *) 0x77b4b7e8);
04-07 12:38:01.559: D/libEGL(9159): glGetIntegerv(GL_MINOR_VERSION, (GLint *) 0x77b4b7ec);
04-07 12:38:01.569: D/libEGL(9159): glGetError();
04-07 12:38:01.569: D/libEGL(9159): glGetString(GL_VERSION);
04-07 12:38:01.569: D/libEGL(9159): glGetIntegerv(0x821e, (GLint *) 0x77b4b7f0);
04-07 12:38:01.569: W/Adreno-ES20(9159): <get_simple_queries:1515>: GL_INVALID_ENUM
04-07 12:38:01.569: D/libEGL(9159): glGetIntegerv(0x9126, (GLint *) 0x77b4b7f4);
04-07 12:38:01.569: I/sfml-error(9159): Failed to activate the window's context
04-07 12:38:01.569: I/sfml-error(9159): Failed to activate the window's context
04-07 12:38:01.569: D/libEGL(9159): glGetIntegerv(GL_MAJOR_VERSION, (GLint *) 0x77b4b788);
04-07 12:38:01.569: D/libEGL(9159): glGetIntegerv(GL_MINOR_VERSION, (GLint *) 0x77b4b78c);
04-07 12:38:01.579: D/libEGL(9159): glGetError();
04-07 12:38:01.579: D/libEGL(9159): glGetIntegerv(0x821e, (GLint *) 0x77b4b790);
04-07 12:38:01.579: W/Adreno-ES20(9159): <get_simple_queries:1515>: GL_INVALID_ENUM
04-07 12:38:01.579: D/libEGL(9159): glGetIntegerv(GL_MAX_TEXTURE_SIZE, (GLint *) 0x77b4b7d4);
04-07 12:38:01.579: D/libEGL(9159): glGenTextures(1, (GLuint *) 0x77b4b804);
04-07 12:38:01.579: D/libEGL(9159): glGetIntegerv(GL_TEXTURE_BINDING_2D, (GLint *) 0x77b4b800);
04-07 12:38:01.579: D/libEGL(9159): glBindTexture(GL_TEXTURE_2D, 1);
04-07 12:38:01.579: D/libEGL(9159): glTexImage2D(GL_TEXTURE_2D, 0, 6408, 256, 256, 0, GL_RGBA, GL_UNSIGNED_BYTE, (const GLvoid *) 0x00000000);
04-07 12:38:01.579: D/libEGL(9159): glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
04-07 12:38:01.579: D/libEGL(9159): glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
04-07 12:38:01.579: D/libEGL(9159): glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
04-07 12:38:01.579: D/libEGL(9159): glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
04-07 12:38:01.579: D/libEGL(9159): glBindTexture(GL_TEXTURE_2D, 0);
04-07 12:38:01.579: D/libEGL(9159): glGetIntegerv(GL_TEXTURE_BINDING_2D, (GLint *) 0x77b4b7e0);
04-07 12:38:01.579: D/libEGL(9159): glBindTexture(GL_TEXTURE_2D, 1);
04-07 12:38:01.579: D/libEGL(9159): glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 150, 150, GL_RGBA, GL_UNSIGNED_BYTE, (const GLvoid *) 0x786c2008);
04-07 12:38:01.579: D/libEGL(9159): glBindTexture(GL_TEXTURE_2D, 0);
04-07 12:38:01.579: D/libEGL(9159): glFlush();
04-07 12:38:01.589: I/sfml-error(9159): Failed to open sound file "canary.wav" (format not supported)
04-07 12:38:01.589: D/libEGL(9159): glDeleteTextures(1, (const GLuint *) 0x77b4b8ac);

Have I missed something? Thanks.

« Last Edit: April 07, 2015, 04:44:26 am by maxwell79 »

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Android Example Fails to Active Window context
« Reply #1 on: April 08, 2015, 08:41:09 pm »
That's fine and (given the current state) expected. It will print that line a few times till the actual window/context is ready.

Your problem is some issue with the audio file, not those context errors.

I plan on changing that behavior (to avoid it) or at least I'll remove the errors from the setup phase since they're misleading at that stage.

maxwell79

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: Android Example Fails to Active Window context
« Reply #2 on: April 09, 2015, 04:09:46 am »
Thanks. You were spot on. Not sure what's wrong with the audio but the rest works fine.

Cheers.

 

anything