SDL 2.0.1 Drawing/Touch issue on Sony Devices

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hallo Developers,
I’m working on a project which should run on win/linux/macosX … and
android now.

First of all the new SDL is really great and do what it should… mostly.

Until I did my job on the PC ports I started a port to android, which
was pretty easy. Testet everything on Nexus and HTC Smartphones, it
worked out of the box. Great!

But than I testet everything on a Sony Phone:
Sony Xperia E Stock 4.1.1 -> Blackscreen
Sony Xperia Z Omnirim 4.3 -> Drawing, but touch doesn’t work.

So because of the problem I compiled somthing really simple like the
example code on http://wiki.libsdl.org/SDL_RenderPresent and tested it
on the Xperia E. The result: Backscreen. On HTC and Nexus: Works!

So it seems to be a devicespecific SDL-Problem. Is there somebody how
have the problem too (and may solved it)? Should I open a bugreport on
bugzilla? Can I help the android-sdl developers with informations to
get it fixed?

Best regards :slight_smile:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSfrxZAAoJEKgQxhH98B0T424H/2si6EZzB9fcfSl1dF/l2JbU
Jfc3ag34SjRbdLXyLpDTj2xfHgzXaS34WFkfEsiV5YFjEVrPSH8nCUukflCLHFDt
V1PReeAhn1QlcHLnftNyYHvxW9p5a3KjK3tDc51kgqUKFsoRrD+z6wdiZS63SyuA
tkviTnc8LyWHeJ1BRodBU8qAjlz/CO5JvIgA+S0KS0qNeVQhZzd26An/AMTVHqjk
W9wv9p057j7rJ7d8AeY51Klq+dQ1lNX5Bi1vf8vAVFpm8jSZTTTXu4uy9sGTMPAp
E/pLySNUUL773YaAweXw0gPpqoCornopLwYcsfpk9Z753zGDRLLqyAY5hqBX2/M=
=97r/
-----END PGP SIGNATURE-----

Do you see anything suspicious in “adb logcat” ?

2013/11/9 Daniel Knobe > -----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1

Hallo Developers,
I’m working on a project which should run on win/linux/macosX … and
android now.

First of all the new SDL is really great and do what it should… mostly.

Until I did my job on the PC ports I started a port to android, which
was pretty easy. Testet everything on Nexus and HTC Smartphones, it
worked out of the box. Great!

But than I testet everything on a Sony Phone:
Sony Xperia E Stock 4.1.1 -> Blackscreen
Sony Xperia Z Omnirim 4.3 -> Drawing, but touch doesn’t work.

So because of the problem I compiled somthing really simple like the
example code on http://wiki.libsdl.org/SDL_RenderPresent and tested it
on the Xperia E. The result: Backscreen. On HTC and Nexus: Works!

So it seems to be a devicespecific SDL-Problem. Is there somebody how
have the problem too (and may solved it)? Should I open a bugreport on
bugzilla? Can I help the android-sdl developers with informations to
get it fixed?

Best regards :slight_smile:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSfrxZAAoJEKgQxhH98B0T424H/2si6EZzB9fcfSl1dF/l2JbU
Jfc3ag34SjRbdLXyLpDTj2xfHgzXaS34WFkfEsiV5YFjEVrPSH8nCUukflCLHFDt
V1PReeAhn1QlcHLnftNyYHvxW9p5a3KjK3tDc51kgqUKFsoRrD+z6wdiZS63SyuA
tkviTnc8LyWHeJ1BRodBU8qAjlz/CO5JvIgA+S0KS0qNeVQhZzd26An/AMTVHqjk
W9wv9p057j7rJ7d8AeY51Klq+dQ1lNX5Bi1vf8vAVFpm8jSZTTTXu4uy9sGTMPAp
E/pLySNUUL773YaAweXw0gPpqoCornopLwYcsfpk9Z753zGDRLLqyAY5hqBX2/M=
=97r/
-----END PGP SIGNATURE-----


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Gabriel.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I don’t really know, put maybe you see the problem if i post it.
Please ignore the java.io.FileNotFoundException. This is app-specific
and isn’t the problem.

Xperia z: http://pastebin.com/5npt18AnAm 10.11.2013 00:11, schrieb Gabriel Jacobo:

Do you see anything suspicious in “adb logcat” ?

2013/11/9 Daniel Knobe <@Daniel_Knobe>

Hallo Developers, I’m working on a project which should run on
win/linux/macosX … and android now.

First of all the new SDL is really great and do what it should…
mostly.

Until I did my job on the PC ports I started a port to android,
which was pretty easy. Testet everything on Nexus and HTC
Smartphones, it worked out of the box. Great!

But than I testet everything on a Sony Phone: Sony Xperia E Stock
4.1.1 -> Blackscreen Sony Xperia Z Omnirim 4.3 -> Drawing, but
touch doesn’t work.

So because of the problem I compiled somthing really simple like
the example code on http://wiki.libsdl.org/SDL_RenderPresent and
tested it on the Xperia E. The result: Backscreen. On HTC and
Nexus: Works!

So it seems to be a devicespecific SDL-Problem. Is there somebody
how have the problem too (and may solved it)? Should I open a
bugreport on bugzilla? Can I help the android-sdl developers with
informations to get it fixed?

Best regards :slight_smile:

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSfsPJAAoJEKgQxhH98B0ToUwH/Rf74MNPH8s7lPBa3Vnet4Ch
sUDAlhgjmt3Q9edfXMAXYjx/SCcG+7W6UchIZ5s/FKEeJIR3AXfv1jd1uK304EJd
hX/kYoUkjh19ef9ZWaR2CIv4CnJ+PGte8Tf/HLGpESQhVtEIodF0fQzK2QumJqOd
FaVpIYeDjHKXPeYS24PML7IfPF33elVVPY7pRERYp7OmRMuSELxX05djHVX6Pkt8
yZxTHC6iGB6u4WiBEaALTBl8M7e5dOhbONzPcJORiuAkUo7FgmTeB/gvupjBS5IR
WbnrWOLY5K2I05ZSDnj8hmSvaUBo4zdA1ki7GZkAAEBDC3eOnopJPzGOddZpNcg=
=2dTR
-----END PGP SIGNATURE-----

Could you try running testgles or testrendercopyex on the phone? If that
doesn’t work it will rule out a problem in your app (to build those quickly
you can use the script in build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe > -----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1

I don’t really know, put maybe you see the problem if i post it.
Please ignore the java.io.FileNotFoundException. This is app-specific
and isn’t the problem.

Xperia z: http://pastebin.com/5npt18An

Am 10.11.2013 00:11, schrieb Gabriel Jacobo:

Do you see anything suspicious in “adb logcat” ?

2013/11/9 Daniel Knobe

Hallo Developers, I’m working on a project which should run on
win/linux/macosX … and android now.

First of all the new SDL is really great and do what it should…
mostly.

Until I did my job on the PC ports I started a port to android,
which was pretty easy. Testet everything on Nexus and HTC
Smartphones, it worked out of the box. Great!

But than I testet everything on a Sony Phone: Sony Xperia E Stock
4.1.1 -> Blackscreen Sony Xperia Z Omnirim 4.3 -> Drawing, but
touch doesn’t work.

So because of the problem I compiled somthing really simple like
the example code on http://wiki.libsdl.org/SDL_RenderPresent and
tested it on the Xperia E. The result: Backscreen. On HTC and
Nexus: Works!

So it seems to be a devicespecific SDL-Problem. Is there somebody
how have the problem too (and may solved it)? Should I open a
bugreport on bugzilla? Can I help the android-sdl developers with
informations to get it fixed?

Best regards :slight_smile:

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSfsPJAAoJEKgQxhH98B0ToUwH/Rf74MNPH8s7lPBa3Vnet4Ch
sUDAlhgjmt3Q9edfXMAXYjx/SCcG+7W6UchIZ5s/FKEeJIR3AXfv1jd1uK304EJd
hX/kYoUkjh19ef9ZWaR2CIv4CnJ+PGte8Tf/HLGpESQhVtEIodF0fQzK2QumJqOd
FaVpIYeDjHKXPeYS24PML7IfPF33elVVPY7pRERYp7OmRMuSELxX05djHVX6Pkt8
yZxTHC6iGB6u4WiBEaALTBl8M7e5dOhbONzPcJORiuAkUo7FgmTeB/gvupjBS5IR
WbnrWOLY5K2I05ZSDnj8hmSvaUBo4zdA1ki7GZkAAEBDC3eOnopJPzGOddZpNcg=
=2dTR
-----END PGP SIGNATURE-----


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Gabriel.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On the Xperia E the testgles works. There is a rotating cube on the
right of the screen.
The testrendercopyex crashes.
Logcat: http://pastebin.com/MUzn0xg7

Thanks for support :).Am 10.11.2013 00:35, schrieb Gabriel Jacobo:

Could you try running testgles or testrendercopyex on the phone? If
that doesn’t work it will rule out a problem in your app (to build
those quickly you can use the script in
build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe <@Daniel_Knobe>

I don’t really know, put maybe you see the problem if i post it.
Please ignore the java.io.FileNotFoundException. This is
app-specific and isn’t the problem.

Xperia z: http://pastebin.com/5npt18An

Am 10.11.2013 00:11, schrieb Gabriel Jacobo:

Do you see anything suspicious in “adb logcat” ?

2013/11/9 Daniel Knobe <@Daniel_Knobe>

Hallo Developers, I’m working on a project which should run
on win/linux/macosX … and android now.

First of all the new SDL is really great and do what it
should… mostly.

Until I did my job on the PC ports I started a port to
android, which was pretty easy. Testet everything on Nexus
and HTC Smartphones, it worked out of the box. Great!

But than I testet everything on a Sony Phone: Sony Xperia E
Stock 4.1.1 -> Blackscreen Sony Xperia Z Omnirim 4.3 ->
Drawing, but touch doesn’t work.

So because of the problem I compiled somthing really simple
like the example code on
http://wiki.libsdl.org/SDL_RenderPresent and tested it on the
Xperia E. The result: Backscreen. On HTC and Nexus: Works!

So it seems to be a devicespecific SDL-Problem. Is there
somebody how have the problem too (and may solved it)? Should
I open a bugreport on bugzilla? Can I help the android-sdl
developers with informations to get it fixed?

Best regards :slight_smile:

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSfuEBAAoJEKgQxhH98B0TypYH/i3ngQHgAJmqAMZBoVebkcXy
1+a7LWvz/OgUeDtwJ48ZGS0cXXNkQOCt3uLd1j64qw5I3Y1JTzQIaaLraRIQXqEn
QxuOfJx49vi28YKKvDoqh/Ana8CBE5eKxB9R0zRPDXysvFdxbeZBIwfX4nvCsYPW
dKl1kWwB2jq051IwIAzCT6UEycVuqPYxsS6P+QL3Mf9M+flLSHxrfELK8iP1MP1Z
cpACgbgBAZqciPDNXPYrepmhtg02o7fdTdiIrXvZrFxr9yu/LNwgW5NMEICVx1LM
+0TBl+DxVwIGUVd57nDC9YQw+4Z9pnpkJElCrp3PsTLDRLTdk/IuofdfpTvIg5A=
=9FQG
-----END PGP SIGNATURE-----

Ops, yes, you need to put the bmp file manually in assets so it gets put in
the apk. It seems SDL is working fine though , which of course makes
finding the reason for the black screen more complex :slight_smile:
El nov 9, 2013 10:27 p.m., “Daniel Knobe” escribi?:> -----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1

On the Xperia E the testgles works. There is a rotating cube on the
right of the screen.
The testrendercopyex crashes.
Logcat: http://pastebin.com/MUzn0xg7

Thanks for support :).

Am 10.11.2013 00:35, schrieb Gabriel Jacobo:

Could you try running testgles or testrendercopyex on the phone? If
that doesn’t work it will rule out a problem in your app (to build
those quickly you can use the script in
build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe

I don’t really know, put maybe you see the problem if i post it.
Please ignore the java.io.FileNotFoundException. This is
app-specific and isn’t the problem.

Xperia z: http://pastebin.com/5npt18An

Am 10.11.2013 00:11, schrieb Gabriel Jacobo:

Do you see anything suspicious in “adb logcat” ?

2013/11/9 Daniel Knobe

Hallo Developers, I’m working on a project which should run
on win/linux/macosX … and android now.

First of all the new SDL is really great and do what it
should… mostly.

Until I did my job on the PC ports I started a port to
android, which was pretty easy. Testet everything on Nexus
and HTC Smartphones, it worked out of the box. Great!

But than I testet everything on a Sony Phone: Sony Xperia E
Stock 4.1.1 -> Blackscreen Sony Xperia Z Omnirim 4.3 ->
Drawing, but touch doesn’t work.

So because of the problem I compiled somthing really simple
like the example code on
http://wiki.libsdl.org/SDL_RenderPresent and tested it on the
Xperia E. The result: Backscreen. On HTC and Nexus: Works!

So it seems to be a devicespecific SDL-Problem. Is there
somebody how have the problem too (and may solved it)? Should
I open a bugreport on bugzilla? Can I help the android-sdl
developers with informations to get it fixed?

Best regards :slight_smile:

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSfuEBAAoJEKgQxhH98B0TypYH/i3ngQHgAJmqAMZBoVebkcXy
1+a7LWvz/OgUeDtwJ48ZGS0cXXNkQOCt3uLd1j64qw5I3Y1JTzQIaaLraRIQXqEn
QxuOfJx49vi28YKKvDoqh/Ana8CBE5eKxB9R0zRPDXysvFdxbeZBIwfX4nvCsYPW
dKl1kWwB2jq051IwIAzCT6UEycVuqPYxsS6P+QL3Mf9M+flLSHxrfELK8iP1MP1Z
cpACgbgBAZqciPDNXPYrepmhtg02o7fdTdiIrXvZrFxr9yu/LNwgW5NMEICVx1LM
+0TBl+DxVwIGUVd57nDC9YQw+4Z9pnpkJElCrp3PsTLDRLTdk/IuofdfpTvIg5A=
=9FQG
-----END PGP SIGNATURE-----


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yes, thanks :), it works now. Xperia E do what it should i think.
When im looking to the test code there is nothing special on the first
look. Tommorow I will have enougth time to take a closer look.

May be there is an wrong project setup. I will check and hopefully
find the problem and then report it to you. Or did you have another
idea what I could do?

Thanks!Am 10.11.2013 02:42, schrieb Gabriel Jacobo:

Ops, yes, you need to put the bmp file manually in assets so it
gets put in the apk. It seems SDL is working fine though , which of
course makes finding the reason for the black screen more complex
:slight_smile: El nov 9, 2013 10:27 p.m., “Daniel Knobe” <@Daniel_Knobe>
escribi?:

On the Xperia E the testgles works. There is a rotating cube on
the right of the screen. The testrendercopyex crashes. Logcat:
http://pastebin.com/MUzn0xg7

Thanks for support :).

Am 10.11.2013 00:35, schrieb Gabriel Jacobo:

Could you try running testgles or testrendercopyex on the
phone? If that doesn’t work it will rule out a problem in
your app (to build those quickly you can use the script in
build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe <@Daniel_Knobe>

I don’t really know, put maybe you see the problem if i post
it. Please ignore the java.io.FileNotFoundException. This is
app-specific and isn’t the problem.

Xperia z: http://pastebin.com/5npt18An

Am 10.11.2013 00:11, schrieb Gabriel Jacobo:

Do you see anything suspicious in “adb logcat” ?

2013/11/9 Daniel Knobe <@Daniel_Knobe>

Hallo Developers, I’m working on a project which should
run on win/linux/macosX … and android now.

First of all the new SDL is really great and do what
it should… mostly.

Until I did my job on the PC ports I started a port to
android, which was pretty easy. Testet everything on
Nexus and HTC Smartphones, it worked out of the box.
Great!

But than I testet everything on a Sony Phone: Sony
Xperia E Stock 4.1.1 -> Blackscreen Sony Xperia Z
Omnirim 4.3 -> Drawing, but touch doesn’t work.

So because of the problem I compiled somthing really
simple like the example code on
http://wiki.libsdl.org/SDL_RenderPresent and tested it
on the Xperia E. The result: Backscreen. On HTC and
Nexus: Works!

So it seems to be a devicespecific SDL-Problem. Is
there somebody how have the problem too (and may solved
it)? Should I open a bugreport on bugzilla? Can I help
the android-sdl developers with informations to get it
fixed?

Best regards :slight_smile:

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSf1R6AAoJEKgQxhH98B0TaeUIAJlbJuIIxemmYlaVdWCIW+SE
MDZXEPK8fxCWyIquZf+//Rk74Knvymbgss0F5/5StR5DOlL1pk+WBXmRJr8HyvwO
klvi4AfCiVTy3dgh8EluA+sN8Vwh05xl3BIy0TymPNixLk3MFUZItdDvCKLxpIbw
oa3gDT/tWojUqkPBOr5WX9eHXTpQ+IW7cRq7+o2kEhACecYyT7uNJ8WhbL9F5pMV
xEqxcU74b8vT5py2DOcE/Qqf3rgIxiav3BM+/nqG3+WMX2D1tuVRGk2LHDBhEtQR
liHSvhecaEyGLSVXq9igmoa1l5DqRDbj/38clVlxvDQwsHbSKZoWDAAo1qmWFUM=
=cYi/
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, ich did some fast tests and found the problem! Don’t know if its a
big thing. The tests work great out of the box on the HTC and the
Xperia E. So I changed the stuff I used in my app and found the
problem in the manifest file. The problem is the landscape mode:
android:screenOrientation=“landscape” .

Adding this to the tests:

    • HTC One Mini -> works great.
    • Xperia E -> shows an black screen

I think thats a bug or not?
Thanks for the great support!

Yes, thanks :), it works now. Xperia E do what it should i think.
When im looking to the test code there is nothing special on the
first look. Tommorow I will have enougth time to take a closer
look.

May be there is an wrong project setup. I will check and hopefully
find the problem and then report it to you. Or did you have
another idea what I could do?

Thanks!

Ops, yes, you need to put the bmp file manually in assets so it
gets put in the apk. It seems SDL is working fine though , which
of course makes finding the reason for the black screen more
complex :slight_smile: El nov 9, 2013 10:27 p.m., “Daniel Knobe”
<@Daniel_Knobe> escribi?:

On the Xperia E the testgles works. There is a rotating cube on
the right of the screen. The testrendercopyex crashes. Logcat:
http://pastebin.com/MUzn0xg7

Thanks for support :).

Could you try running testgles or testrendercopyex on the
phone? If that doesn’t work it will rule out a problem in
your app (to build those quickly you can use the script in
build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe <@Daniel_Knobe>

I don’t really know, put maybe you see the problem if i
post it. Please ignore the java.io.FileNotFoundException.
This is app-specific and isn’t the problem.

Xperia z: http://pastebin.com/5npt18An

Do you see anything suspicious in “adb logcat” ?

2013/11/9 Daniel Knobe <@Daniel_Knobe>

Hallo Developers, I’m working on a project which
should run on win/linux/macosX … and android now.

First of all the new SDL is really great and do what
it should… mostly.

Until I did my job on the PC ports I started a port
to android, which was pretty easy. Testet everything
on Nexus and HTC Smartphones, it worked out of the
box. Great!

But than I testet everything on a Sony Phone: Sony
Xperia E Stock 4.1.1 -> Blackscreen Sony Xperia Z
Omnirim 4.3 -> Drawing, but touch doesn’t work.

So because of the problem I compiled somthing really
simple like the example code on
http://wiki.libsdl.org/SDL_RenderPresent and tested
it on the Xperia E. The result: Backscreen. On HTC
and Nexus: Works!

So it seems to be a devicespecific SDL-Problem. Is
there somebody how have the problem too (and may
solved it)? Should I open a bugreport on bugzilla?
Can I help the android-sdl developers with
informations to get it fixed?

Best regards :slight_smile:


SDL mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSf1h1AAoJEKgQxhH98B0TX4gH/R5IbBX4j/hmKlvy7T3OTnBr
ZrtE4vldFHydvvwXc6V8o+d1Dxro1eyl62ri+IornwEiBWl1ARzlzm6D9JK7Vbu6
qIgAD0aGjAuvlFI4UZTT7yQvlqUhuMGaaswfEppGbggaNiOYSUG653pQExzyph04
Q7uVtxnH1acj0sxnX0ty5Om0UpACOVZicMf7CdQ8oethNwRpL73e+tLHFaKYbt16
trBhhSGObPksUvRIfhMQMKSbW25r0QLeYjSypZSpCw6TxHF4vTUJdQlgL+9K0qZP
asEsxp648CmzGvW3wjbZqP04q9MwRFkfdy/A4wpMcRS1l07v/WlmQ2uFVo/27hE=
=PFZN
-----END PGP SIGNATURE-----> Am 10.11.2013 02:42, schrieb Gabriel Jacobo:

Am 10.11.2013 00:35, schrieb Gabriel Jacobo:

Am 10.11.2013 00:11, schrieb Gabriel Jacobo:

Hello !

I talked with Daniel to know a little more about this, and asked him to do
different tests.

The problem appears also my applications, on his device Xperia E.

What I can say :

It only appears in Landscape Mode : screen is black, but application seems
to work underneath.
Portrait is always working.

Logcat shows no error : (after Init, SDL Error -> empty).

V/SDL ( 5134): onResume()
V/SDL ( 5134): surfaceCreated()
V/SDL ( 5134): surfaceChanged()
V/SDL ( 5134): pixel format RGB_565
V/SDL ( 5134): Window size:480x320
I/SDL ( 5134): SDL_Android_Init()
I/SDL ( 5134): SDL_Android_Init() finished!
E/int SDL_main(int, char**)( 5134):**********************************************
E/int SDL_main(int, char**)( 5134): Main is starting …
E/int SDL_main(int, char**)( 5134):


E/SlWorld::SlWorld()( 5134): Language is set to : German
E/SlWorld::SlWorld()( 5134): Is SDL Error :
D/dalvikvm( 435): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 435): GC_EXPLICIT freed 66K, 29% free 15789K/22087K,
paused 30ms+27ms, total 296ms
I/ActivityManager( 435): Displayed net.game.mygame/.MainActivity: +1s619ms
D/dalvikvm( 5134): GC_CONCURRENT freed 339K, 6% free 8143K/8647K,
paused 16ms+36ms, total 91ms
V/SDL ( 5134): onWindowFocusChanged(): true

Trying different versions. It appears that
My app of August 9th 2013 was working.
My app of August 30th 2013 was Not working.

I believe I was pretty much synchronised with head for each update.

Hope this helps !

Cheers,

Sylvain

On Sun, Nov 10, 2013 at 10:57 AM, Daniel Knobe wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, ich did some fast tests and found the problem! Don’t know if its a
big thing. The tests work great out of the box on the HTC and the
Xperia E. So I changed the stuff I used in my app and found the
problem in the manifest file. The problem is the landscape mode:
android:screenOrientation=“landscape” .

Adding this to the tests:

    • HTC One Mini -> works great.
    • Xperia E -> shows an black screen

I think thats a bug or not?
Thanks for the great support!

Yes, thanks :), it works now. Xperia E do what it should i think.
When im looking to the test code there is nothing special on the
first look. Tommorow I will have enougth time to take a closer
look.

May be there is an wrong project setup. I will check and hopefully
find the problem and then report it to you. Or did you have
another idea what I could do?

Thanks!

Am 10.11.2013 02:42, schrieb Gabriel Jacobo:

Ops, yes, you need to put the bmp file manually in assets so it
gets put in the apk. It seems SDL is working fine though , which
of course makes finding the reason for the black screen more
complex :slight_smile: El nov 9, 2013 10:27 p.m., “Daniel Knobe”
escribi?:

On the Xperia E the testgles works. There is a rotating cube on
the right of the screen. The testrendercopyex crashes. Logcat:
http://pastebin.com/MUzn0xg7

Thanks for support :).

Am 10.11.2013 00:35, schrieb Gabriel Jacobo:

Could you try running testgles or testrendercopyex on the
phone? If that doesn’t work it will rule out a problem in
your app (to build those quickly you can use the script in
build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe

I don’t really know, put maybe you see the problem if i
post it. Please ignore the java.io.FileNotFoundException.
This is app-specific and isn’t the problem.

Xperia z: http://pastebin.com/5npt18An

Am 10.11.2013 00:11, schrieb Gabriel Jacobo:

Do you see anything suspicious in “adb logcat” ?

2013/11/9 Daniel Knobe

Hallo Developers, I’m working on a project which
should run on win/linux/macosX … and android now.

First of all the new SDL is really great and do what
it should… mostly.

Until I did my job on the PC ports I started a port
to android, which was pretty easy. Testet everything
on Nexus and HTC Smartphones, it worked out of the
box. Great!

But than I testet everything on a Sony Phone: Sony
Xperia E Stock 4.1.1 -> Blackscreen Sony Xperia Z
Omnirim 4.3 -> Drawing, but touch doesn’t work.

So because of the problem I compiled somthing really
simple like the example code on
http://wiki.libsdl.org/SDL_RenderPresent and tested
it on the Xperia E. The result: Backscreen. On HTC
and Nexus: Works!

So it seems to be a devicespecific SDL-Problem. Is
there somebody how have the problem too (and may
solved it)? Should I open a bugreport on bugzilla?
Can I help the android-sdl developers with
informations to get it fixed?

Best regards :slight_smile:


SDL mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSf1h1AAoJEKgQxhH98B0TX4gH/R5IbBX4j/hmKlvy7T3OTnBr
ZrtE4vldFHydvvwXc6V8o+d1Dxro1eyl62ri+IornwEiBWl1ARzlzm6D9JK7Vbu6
qIgAD0aGjAuvlFI4UZTT7yQvlqUhuMGaaswfEppGbggaNiOYSUG653pQExzyph04
Q7uVtxnH1acj0sxnX0ty5Om0UpACOVZicMf7CdQ8oethNwRpL73e+tLHFaKYbt16
trBhhSGObPksUvRIfhMQMKSbW25r0QLeYjSypZSpCw6TxHF4vTUJdQlgL+9K0qZP
asEsxp648CmzGvW3wjbZqP04q9MwRFkfdy/A4wpMcRS1l07v/WlmQ2uFVo/27hE=
=PFZN
-----END PGP SIGNATURE-----


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Sylvain Becker

Hello,

With Daniel, we have confirmation the problem occurs because of the common
EGL code for X11/Android ( https://hg.libsdl.org/SDL/rev/ac4ce59c40e7 )
An .APK based on the prior version was working whereas the one after was
not.

Cheers,

SylvainOn Mon, Nov 11, 2013 at 10:30 AM, Sylvain Becker <@Sylvain_Becker>wrote:

Hello !

I talked with Daniel to know a little more about this, and asked him to do
different tests.

The problem appears also my applications, on his device Xperia E.

What I can say :

It only appears in Landscape Mode : screen is black, but application seems
to work underneath.
Portrait is always working.

Logcat shows no error : (after Init, SDL Error -> empty).

V/SDL ( 5134): onResume()
V/SDL ( 5134): surfaceCreated()
V/SDL ( 5134): surfaceChanged()
V/SDL ( 5134): pixel format RGB_565
V/SDL ( 5134): Window size:480x320
I/SDL ( 5134): SDL_Android_Init()
I/SDL ( 5134): SDL_Android_Init() finished!
E/int SDL_main(int, char**)( 5134): **********************************************
E/int SDL_main(int, char**)( 5134): Main is starting …
E/int SDL_main(int, char**)( 5134): **********************************************
E/SlWorld::SlWorld()( 5134): Language is set to : German
E/SlWorld::SlWorld()( 5134): Is SDL Error :
D/dalvikvm( 435): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 435): GC_EXPLICIT freed 66K, 29% free 15789K/22087K, paused 30ms+27ms, total 296ms
I/ActivityManager( 435): Displayed net.game.mygame/.MainActivity: +1s619ms
D/dalvikvm( 5134): GC_CONCURRENT freed 339K, 6% free 8143K/8647K, paused 16ms+36ms, total 91ms
V/SDL ( 5134): onWindowFocusChanged(): true

Trying different versions. It appears that
My app of August 9th 2013 was working.
My app of August 30th 2013 was Not working.

I believe I was pretty much synchronised with head for each update.

Hope this helps !

Cheers,

Sylvain

On Sun, Nov 10, 2013 at 10:57 AM, Daniel Knobe wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, ich did some fast tests and found the problem! Don’t know if its a
big thing. The tests work great out of the box on the HTC and the
Xperia E. So I changed the stuff I used in my app and found the
problem in the manifest file. The problem is the landscape mode:
android:screenOrientation=“landscape” .

Adding this to the tests:

    • HTC One Mini -> works great.
    • Xperia E -> shows an black screen

I think thats a bug or not?
Thanks for the great support!

Yes, thanks :), it works now. Xperia E do what it should i think.
When im looking to the test code there is nothing special on the
first look. Tommorow I will have enougth time to take a closer
look.

May be there is an wrong project setup. I will check and hopefully
find the problem and then report it to you. Or did you have
another idea what I could do?

Thanks!

Am 10.11.2013 02:42, schrieb Gabriel Jacobo:

Ops, yes, you need to put the bmp file manually in assets so it
gets put in the apk. It seems SDL is working fine though , which
of course makes finding the reason for the black screen more
complex :slight_smile: El nov 9, 2013 10:27 p.m., “Daniel Knobe”
escribi?:

On the Xperia E the testgles works. There is a rotating cube on
the right of the screen. The testrendercopyex crashes. Logcat:
http://pastebin.com/MUzn0xg7

Thanks for support :).

Am 10.11.2013 00:35, schrieb Gabriel Jacobo:

Could you try running testgles or testrendercopyex on the
phone? If that doesn’t work it will rule out a problem in
your app (to build those quickly you can use the script in
build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe

I don’t really know, put maybe you see the problem if i
post it. Please ignore the java.io.FileNotFoundException.
This is app-specific and isn’t the problem.

Xperia z: http://pastebin.com/5npt18An

Am 10.11.2013 00:11, schrieb Gabriel Jacobo:

Do you see anything suspicious in “adb logcat” ?

2013/11/9 Daniel Knobe

Hallo Developers, I’m working on a project which
should run on win/linux/macosX … and android now.

First of all the new SDL is really great and do what
it should… mostly.

Until I did my job on the PC ports I started a port
to android, which was pretty easy. Testet everything
on Nexus and HTC Smartphones, it worked out of the
box. Great!

But than I testet everything on a Sony Phone: Sony
Xperia E Stock 4.1.1 -> Blackscreen Sony Xperia Z
Omnirim 4.3 -> Drawing, but touch doesn’t work.

So because of the problem I compiled somthing really
simple like the example code on
http://wiki.libsdl.org/SDL_RenderPresent and tested
it on the Xperia E. The result: Backscreen. On HTC
and Nexus: Works!

So it seems to be a devicespecific SDL-Problem. Is
there somebody how have the problem too (and may
solved it)? Should I open a bugreport on bugzilla?
Can I help the android-sdl developers with
informations to get it fixed?

Best regards :slight_smile:


SDL mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSf1h1AAoJEKgQxhH98B0TX4gH/R5IbBX4j/hmKlvy7T3OTnBr
ZrtE4vldFHydvvwXc6V8o+d1Dxro1eyl62ri+IornwEiBWl1ARzlzm6D9JK7Vbu6
qIgAD0aGjAuvlFI4UZTT7yQvlqUhuMGaaswfEppGbggaNiOYSUG653pQExzyph04
Q7uVtxnH1acj0sxnX0ty5Om0UpACOVZicMf7CdQ8oethNwRpL73e+tLHFaKYbt16
trBhhSGObPksUvRIfhMQMKSbW25r0QLeYjSypZSpCw6TxHF4vTUJdQlgL+9K0qZP
asEsxp648CmzGvW3wjbZqP04q9MwRFkfdy/A4wpMcRS1l07v/WlmQ2uFVo/27hE=
=PFZN
-----END PGP SIGNATURE-----


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Sylvain Becker


Sylvain Becker

Without access to the device and no meaningful information on the log it
can be tricky to figure out the problem. Even more so because
testrendercopyex and testgles appear to work fine. You mentioned these apps
work fine in portrait but not on landscape, is it also the case with SDL’s
tests? Or do these work in either orientation?
Anything in particular that you are doing during initialization, any other
specifics about these apps that you can share, settings in
AndroidManifest.xml, etc?

2013/11/12 Sylvain Becker <sylvain.becker at gmail.com>> Hello,

With Daniel, we have confirmation the problem occurs because of the common
EGL code for X11/Android ( https://hg.libsdl.org/SDL/rev/ac4ce59c40e7 )
An .APK based on the prior version was working whereas the one after was
not.

Cheers,

Sylvain

On Mon, Nov 11, 2013 at 10:30 AM, Sylvain Becker <sylvain.becker at gmail.com wrote:

Hello !

I talked with Daniel to know a little more about this, and asked him to
do different tests.

The problem appears also my applications, on his device Xperia E.

What I can say :

It only appears in Landscape Mode : screen is black, but application
seems to work underneath.
Portrait is always working.

Logcat shows no error : (after Init, SDL Error -> empty).

V/SDL ( 5134): onResume()
V/SDL ( 5134): surfaceCreated()
V/SDL ( 5134): surfaceChanged()
V/SDL ( 5134): pixel format RGB_565
V/SDL ( 5134): Window size:480x320
I/SDL ( 5134): SDL_Android_Init()
I/SDL ( 5134): SDL_Android_Init() finished!
E/int SDL_main(int, char**)( 5134): **********************************************
E/int SDL_main(int, char**)( 5134): Main is starting …
E/int SDL_main(int, char**)( 5134): **********************************************
E/SlWorld::SlWorld()( 5134): Language is set to : German
E/SlWorld::SlWorld()( 5134): Is SDL Error :
D/dalvikvm( 435): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 435): GC_EXPLICIT freed 66K, 29% free 15789K/22087K, paused 30ms+27ms, total 296ms
I/ActivityManager( 435): Displayed net.game.mygame/.MainActivity: +1s619ms
D/dalvikvm( 5134): GC_CONCURRENT freed 339K, 6% free 8143K/8647K, paused 16ms+36ms, total 91ms
V/SDL ( 5134): onWindowFocusChanged(): true

Trying different versions. It appears that
My app of August 9th 2013 was working.
My app of August 30th 2013 was Not working.

I believe I was pretty much synchronised with head for each update.

Hope this helps !

Cheers,

Sylvain

On Sun, Nov 10, 2013 at 10:57 AM, Daniel Knobe wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, ich did some fast tests and found the problem! Don’t know if its a
big thing. The tests work great out of the box on the HTC and the
Xperia E. So I changed the stuff I used in my app and found the
problem in the manifest file. The problem is the landscape mode:
android:screenOrientation=“landscape” .

Adding this to the tests:

    • HTC One Mini -> works great.
    • Xperia E -> shows an black screen

I think thats a bug or not?
Thanks for the great support!

Yes, thanks :), it works now. Xperia E do what it should i think.
When im looking to the test code there is nothing special on the
first look. Tommorow I will have enougth time to take a closer
look.

May be there is an wrong project setup. I will check and hopefully
find the problem and then report it to you. Or did you have
another idea what I could do?

Thanks!

Am 10.11.2013 02:42, schrieb Gabriel Jacobo:

Ops, yes, you need to put the bmp file manually in assets so it
gets put in the apk. It seems SDL is working fine though , which
of course makes finding the reason for the black screen more
complex :slight_smile: El nov 9, 2013 10:27 p.m., “Daniel Knobe”
escribi?:

On the Xperia E the testgles works. There is a rotating cube on
the right of the screen. The testrendercopyex crashes. Logcat:
http://pastebin.com/MUzn0xg7

Thanks for support :).

Am 10.11.2013 00:35, schrieb Gabriel Jacobo:

Could you try running testgles or testrendercopyex on the
phone? If that doesn’t work it will rule out a problem in
your app (to build those quickly you can use the script in
build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe

I don’t really know, put maybe you see the problem if i
post it. Please ignore the java.io.FileNotFoundException.
This is app-specific and isn’t the problem.

Xperia z: http://pastebin.com/5npt18An

Am 10.11.2013 00:11, schrieb Gabriel Jacobo:

Do you see anything suspicious in “adb logcat” ?

2013/11/9 Daniel Knobe

Hallo Developers, I’m working on a project which
should run on win/linux/macosX … and android now.

First of all the new SDL is really great and do what
it should… mostly.

Until I did my job on the PC ports I started a port
to android, which was pretty easy. Testet everything
on Nexus and HTC Smartphones, it worked out of the
box. Great!

But than I testet everything on a Sony Phone: Sony
Xperia E Stock 4.1.1 -> Blackscreen Sony Xperia Z
Omnirim 4.3 -> Drawing, but touch doesn’t work.

So because of the problem I compiled somthing really
simple like the example code on
http://wiki.libsdl.org/SDL_RenderPresent and tested
it on the Xperia E. The result: Backscreen. On HTC
and Nexus: Works!

So it seems to be a devicespecific SDL-Problem. Is
there somebody how have the problem too (and may
solved it)? Should I open a bugreport on bugzilla?
Can I help the android-sdl developers with
informations to get it fixed?

Best regards :slight_smile:


SDL mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSf1h1AAoJEKgQxhH98B0TX4gH/R5IbBX4j/hmKlvy7T3OTnBr
ZrtE4vldFHydvvwXc6V8o+d1Dxro1eyl62ri+IornwEiBWl1ARzlzm6D9JK7Vbu6
qIgAD0aGjAuvlFI4UZTT7yQvlqUhuMGaaswfEppGbggaNiOYSUG653pQExzyph04
Q7uVtxnH1acj0sxnX0ty5Om0UpACOVZicMf7CdQ8oethNwRpL73e+tLHFaKYbt16
trBhhSGObPksUvRIfhMQMKSbW25r0QLeYjSypZSpCw6TxHF4vTUJdQlgL+9K0qZP
asEsxp648CmzGvW3wjbZqP04q9MwRFkfdy/A4wpMcRS1l07v/WlmQ2uFVo/27hE=
=PFZN
-----END PGP SIGNATURE-----


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Sylvain Becker


Sylvain Becker


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Gabriel.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Gabriel,
the SDL-Test doesn’t work in landscape mode. Like in the Apps of
Sylvain und mine, a black screen occures in landscape mode.

The only thing to change in testrendercopyex and testgles to make this
test not working is to add in the AndroidManifest.xml this line in the
Activity-Tag:
android:screenOrientation=“landscape”

Orientationchange during initialisation (onCreate-method) with:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
doesn’t make a difference. Both variants are leading to a black screen
in the Xperia E.

Thanks for your help.

Best regards,
Daniel

Without access to the device and no meaningful information on the
log it can be tricky to figure out the problem. Even more so
because testrendercopyex and testgles appear to work fine. You
mentioned these apps work fine in portrait but not on landscape, is
it also the case with SDL’s tests? Or do these work in either
orientation? Anything in particular that you are doing during
initialization, any other specifics about these apps that you can
share, settings in AndroidManifest.xml, etc?

2013/11/12 Sylvain Becker <sylvain.becker at gmail.com>

Hello,

With Daniel, we have confirmation the problem occurs because of
the common EGL code for X11/Android (
https://hg.libsdl.org/SDL/rev/ac4ce59c40e7 ) An .APK based on the
prior version was working whereas the one after was not.

Cheers,

Sylvain

Hello !

I talked with Daniel to know a little more about this, and
asked him to do different tests.

The problem appears also my applications, on his device Xperia
E.

What I can say :

It only appears in Landscape Mode : screen is black, but
application seems to work underneath. Portrait is always
working.

Logcat shows no error : (after Init, SDL Error -> empty).

V/SDL ( 5134): onResume() V/SDL ( 5134):
surfaceCreated() V/SDL ( 5134): surfaceChanged() V/SDL
( 5134): pixel format RGB_565 V/SDL ( 5134): Window
size:480x320 I/SDL ( 5134): SDL_Android_Init() I/SDL (
5134): SDL_Android_Init() finished! E/int SDL_main(int,
char**)( 5134): **********************************************
E/int SDL_main(int, char**)( 5134): Main is starting … E/int
SDL_main(int, char**)( 5134):


E/SlWorld::SlWorld()( 5134): Language is set to : German
E/SlWorld::SlWorld()( 5134): Is SDL Error : D/dalvikvm( 435):
WAIT_FOR_CONCURRENT_GC blocked 0ms D/dalvikvm( 435):
GC_EXPLICIT freed 66K, 29% free 15789K/22087K, paused
30ms+27ms, total 296ms I/ActivityManager( 435): Displayed
net.game.mygame/.MainActivity: +1s619ms D/dalvikvm( 5134):
GC_CONCURRENT freed 339K, 6% free 8143K/8647K, paused
16ms+36ms, total 91ms V/SDL ( 5134):
onWindowFocusChanged(): true

Trying different versions. It appears that My app of August
9th 2013 was working. My app of August 30th 2013 was Not
working.

I believe I was pretty much synchronised with head for each
update.

Hope this helps !

Cheers,

Sylvain

Ok, ich did some fast tests and found the problem! Don’t know if
its a big thing. The tests work great out of the box on the HTC and
the Xperia E. So I changed the stuff I used in my app and found
the problem in the manifest file. The problem is the landscape
mode: android:screenOrientation=“landscape” .

Adding this to the tests: - HTC One Mini -> works great. - Xperia E
-> shows an black screen

I think thats a bug or not? Thanks for the great support!

Yes, thanks :), it works now. Xperia E do what it should
i think. When im looking to the test code there is
nothing special on the first look. Tommorow I will have
enougth time to take a closer look.

May be there is an wrong project setup. I will check and
hopefully find the problem and then report it to you. Or
did you have another idea what I could do?

Thanks!

Ops, yes, you need to put the bmp file manually in
assets so it gets put in the apk. It seems SDL is
working fine though , which of course makes finding the
reason for the black screen more complex :slight_smile: El nov 9,
2013 10:27 p.m., “Daniel Knobe” <@Daniel_Knobe>
escribi?:

On the Xperia E the testgles works. There is a rotating
cube on the right of the screen. The testrendercopyex
crashes. Logcat: http://pastebin.com/MUzn0xg7

Thanks for support :).

Could you try running testgles or
testrendercopyex on the phone? If that doesn’t
work it will rule out a problem in your app (to
build those quickly you can use the script in
build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe <@Daniel_Knobe>

I don’t really know, put maybe you see the
problem if i post it. Please ignore the
java.io.FileNotFoundException. This is
app-specific and isn’t the problem.

Xperia z: http://pastebin.com/5npt18An

Do you see anything suspicious in “adb
logcat” ?

2013/11/9 Daniel Knobe
<@Daniel_Knobe>

Hallo Developers, I’m working on a project
which should run on win/linux/macosX …
and android now.

First of all the new SDL is really great
and do what it should… mostly.

Until I did my job on the PC ports I
started a port to android, which was pretty
easy. Testet everything on Nexus and HTC
Smartphones, it worked out of the box.
Great!

But than I testet everything on a Sony
Phone: Sony Xperia E Stock 4.1.1 ->
Blackscreen Sony Xperia Z Omnirim 4.3 ->
Drawing, but touch doesn’t work.

So because of the problem I compiled
somthing really simple like the example
code on
http://wiki.libsdl.org/SDL_RenderPresent
and tested it on the Xperia E. The result:
Backscreen. On HTC and Nexus: Works!

So it seems to be a devicespecific
SDL-Problem. Is there somebody how have the
problem too (and may solved it)? Should I
open a bugreport on bugzilla? Can I help
the android-sdl developers with
informations to get it fixed?

Best regards :slight_smile:


SDL mailing list SDL at lists.libsdl.org

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing

list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

– Sylvain Becker

– Sylvain Becker

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSghp5AAoJEKgQxhH98B0TfaoH/Rur747aJg+PEzRHdzUd9Myx
kauQiSGpvPGikPQKTmKtZKtflPn26DkkpGzPcg3fe+kgYaz15K9mMvKCcchAFgj/
mKMuDw9HNgA6r3nsvATCpf779VKDohAr1Fidb2bTWjVg45oOXHxKqlZ9YLP6uthv
HiwhtQaNKmmmqZwL0nW8Ts3apWWvGby/Ivt1KJKidahnJsIcq8S62Dzq5bl4ymOG
ILMto6LTt38qkMo1/IPwx7LaPmaw1nNFWSm+99lzvx1GFjBTTj/1Tw1Mv17B/uUw
FCx/2FVVVMqF1P9tH/dUz5AKSXfeadbzux8c7PhJSne1G6LeILJHS+N2E+2LNqc=
=IQBk
-----END PGP SIGNATURE-----Am 12.11.2013 12:51, schrieb Gabriel Jacobo:

On Mon, Nov 11, 2013 at 10:30 AM, Sylvain Becker <sylvain.becker at gmail.com wrote:

On Sun, Nov 10, 2013 at 10:57 AM, Daniel Knobe <@Daniel_Knobe>wrote:

Am 10.11.2013 02:42, schrieb Gabriel Jacobo:

Am 10.11.2013 00:35, schrieb Gabriel Jacobo:

Am 10.11.2013 00:11, schrieb Gabriel Jacobo:

Related? https://bugzilla.libsdl.org/show_bug.cgi?id=2043

Though the report is pre common EGL code.

2013/11/12 Daniel Knobe > -----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1

Hi Gabriel,
the SDL-Test doesn’t work in landscape mode. Like in the Apps of
Sylvain und mine, a black screen occures in landscape mode.

The only thing to change in testrendercopyex and testgles to make this
test not working is to add in the AndroidManifest.xml this line in the
Activity-Tag:
android:screenOrientation=“landscape”

Orientationchange during initialisation (onCreate-method) with:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
doesn’t make a difference. Both variants are leading to a black screen
in the Xperia E.

Thanks for your help.

Best regards,
Daniel

Am 12.11.2013 12:51, schrieb Gabriel Jacobo:

Without access to the device and no meaningful information on the
log it can be tricky to figure out the problem. Even more so
because testrendercopyex and testgles appear to work fine. You
mentioned these apps work fine in portrait but not on landscape, is
it also the case with SDL’s tests? Or do these work in either
orientation? Anything in particular that you are doing during
initialization, any other specifics about these apps that you can
share, settings in AndroidManifest.xml, etc?

2013/11/12 Sylvain Becker <sylvain.becker at gmail.com>

Hello,

With Daniel, we have confirmation the problem occurs because of
the common EGL code for X11/Android (
https://hg.libsdl.org/SDL/rev/ac4ce59c40e7 ) An .APK based on the
prior version was working whereas the one after was not.

Cheers,

Sylvain

On Mon, Nov 11, 2013 at 10:30 AM, Sylvain Becker <sylvain.becker at gmail.com wrote:

Hello !

I talked with Daniel to know a little more about this, and
asked him to do different tests.

The problem appears also my applications, on his device Xperia
E.

What I can say :

It only appears in Landscape Mode : screen is black, but
application seems to work underneath. Portrait is always
working.

Logcat shows no error : (after Init, SDL Error -> empty).

V/SDL ( 5134): onResume() V/SDL ( 5134):
surfaceCreated() V/SDL ( 5134): surfaceChanged() V/SDL
( 5134): pixel format RGB_565 V/SDL ( 5134): Window
size:480x320 I/SDL ( 5134): SDL_Android_Init() I/SDL (
5134): SDL_Android_Init() finished! E/int SDL_main(int,
char**)( 5134): **********************************************
E/int SDL_main(int, char**)( 5134): Main is starting … E/int
SDL_main(int, char**)( 5134):


E/SlWorld::SlWorld()( 5134): Language is set to : German
E/SlWorld::SlWorld()( 5134): Is SDL Error : D/dalvikvm( 435):
WAIT_FOR_CONCURRENT_GC blocked 0ms D/dalvikvm( 435):
GC_EXPLICIT freed 66K, 29% free 15789K/22087K, paused
30ms+27ms, total 296ms I/ActivityManager( 435): Displayed
net.game.mygame/.MainActivity: +1s619ms D/dalvikvm( 5134):
GC_CONCURRENT freed 339K, 6% free 8143K/8647K, paused
16ms+36ms, total 91ms V/SDL ( 5134):
onWindowFocusChanged(): true

Trying different versions. It appears that My app of August
9th 2013 was working. My app of August 30th 2013 was Not
working.

I believe I was pretty much synchronised with head for each
update.

Hope this helps !

Cheers,

Sylvain

On Sun, Nov 10, 2013 at 10:57 AM, Daniel Knobe wrote:

Ok, ich did some fast tests and found the problem! Don’t know if
its a big thing. The tests work great out of the box on the HTC and
the Xperia E. So I changed the stuff I used in my app and found
the problem in the manifest file. The problem is the landscape
mode: android:screenOrientation=“landscape” .

Adding this to the tests: - HTC One Mini -> works great. - Xperia E
-> shows an black screen

I think thats a bug or not? Thanks for the great support!

Yes, thanks :), it works now. Xperia E do what it should
i think. When im looking to the test code there is
nothing special on the first look. Tommorow I will have
enougth time to take a closer look.

May be there is an wrong project setup. I will check and
hopefully find the problem and then report it to you. Or
did you have another idea what I could do?

Thanks!

Am 10.11.2013 02:42, schrieb Gabriel Jacobo:

Ops, yes, you need to put the bmp file manually in
assets so it gets put in the apk. It seems SDL is
working fine though , which of course makes finding the
reason for the black screen more complex :slight_smile: El nov 9,
2013 10:27 p.m., “Daniel Knobe”
escribi?:

On the Xperia E the testgles works. There is a rotating
cube on the right of the screen. The testrendercopyex
crashes. Logcat: http://pastebin.com/MUzn0xg7

Thanks for support :).

Am 10.11.2013 00:35, schrieb Gabriel Jacobo:

Could you try running testgles or
testrendercopyex on the phone? If that doesn’t
work it will rule out a problem in your app (to
build those quickly you can use the script in
build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe

I don’t really know, put maybe you see the
problem if i post it. Please ignore the
java.io.FileNotFoundException. This is
app-specific and isn’t the problem.

Xperia z: http://pastebin.com/5npt18An

Am 10.11.2013 00:11, schrieb Gabriel Jacobo:

Do you see anything suspicious in “adb
logcat” ?

2013/11/9 Daniel Knobe

Hallo Developers, I’m working on a project
which should run on win/linux/macosX …
and android now.

First of all the new SDL is really great
and do what it should… mostly.

Until I did my job on the PC ports I
started a port to android, which was pretty
easy. Testet everything on Nexus and HTC
Smartphones, it worked out of the box.
Great!

But than I testet everything on a Sony
Phone: Sony Xperia E Stock 4.1.1 ->
Blackscreen Sony Xperia Z Omnirim 4.3 ->
Drawing, but touch doesn’t work.

So because of the problem I compiled
somthing really simple like the example
code on
http://wiki.libsdl.org/SDL_RenderPresent
and tested it on the Xperia E. The result:
Backscreen. On HTC and Nexus: Works!

So it seems to be a devicespecific
SDL-Problem. Is there somebody how have the
problem too (and may solved it)? Should I
open a bugreport on bugzilla? Can I help
the android-sdl developers with
informations to get it fixed?

Best regards :slight_smile:


SDL mailing list SDL at lists.libsdl.org

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing

list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

– Sylvain Becker

– Sylvain Becker

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSghp5AAoJEKgQxhH98B0TfaoH/Rur747aJg+PEzRHdzUd9Myx
kauQiSGpvPGikPQKTmKtZKtflPn26DkkpGzPcg3fe+kgYaz15K9mMvKCcchAFgj/
mKMuDw9HNgA6r3nsvATCpf779VKDohAr1Fidb2bTWjVg45oOXHxKqlZ9YLP6uthv
HiwhtQaNKmmmqZwL0nW8Ts3apWWvGby/Ivt1KJKidahnJsIcq8S62Dzq5bl4ymOG
ILMto6LTt38qkMo1/IPwx7LaPmaw1nNFWSm+99lzvx1GFjBTTj/1Tw1Mv17B/uUw
FCx/2FVVVMqF1P9tH/dUz5AKSXfeadbzux8c7PhJSne1G6LeILJHS+N2E+2LNqc=
=IQBk
-----END PGP SIGNATURE-----


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Gabriel.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Gabriel,
the bug I found is a bit different. Changing the initialisation like
described ( SDL_Init(SDL_INIT_EVERYTHING) ) didn’t make a difference.

On the Xperia E the app didn’t crashes. It seems that it runs well in
the background but the screen is black.

Did some more tests and found a strange thing (see the videos I send
you). When i’m starting the app a black screen occures. Things which
are not written in SDL will be drawn like ads. When im pressing the
power-button twice and slide to unlock the app will be drawn in wrong
way and is unusable. It seems that the x-y scaling is inverted and the
rotation is wrong (see end of the second vid).

The same occures when i’m using the tests of the sdl test suite. So
it’s reproduceable :).

May be this helps a bit :-/… hopefully.

Best regards,
Daniel

Related? https://bugzilla.libsdl.org/show_bug.cgi?id=2043

Though the report is pre common EGL code.

2013/11/12 Daniel Knobe <@Daniel_Knobe>

Hi Gabriel, the SDL-Test doesn’t work in landscape mode. Like in
the Apps of Sylvain und mine, a black screen occures in landscape
mode.

The only thing to change in testrendercopyex and testgles to make
this test not working is to add in the AndroidManifest.xml this
line in the Activity-Tag: android:screenOrientation=“landscape”

Orientationchange during initialisation (onCreate-method) with:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

doesn’t make a difference. Both variants are leading to a black screen

in the Xperia E.

Thanks for your help.

Best regards, Daniel

Without access to the device and no meaningful information on
the log it can be tricky to figure out the problem. Even more
so because testrendercopyex and testgles appear to work fine.
You mentioned these apps work fine in portrait but not on
landscape, is it also the case with SDL’s tests? Or do these
work in either orientation? Anything in particular that you
are doing during initialization, any other specifics about
these apps that you can share, settings in
AndroidManifest.xml, etc?

2013/11/12 Sylvain Becker <sylvain.becker at gmail.com>

Hello,

With Daniel, we have confirmation the problem occurs
because of the common EGL code for X11/Android (
https://hg.libsdl.org/SDL/rev/ac4ce59c40e7 ) An .APK based
on the prior version was working whereas the one after was
not.

Cheers,

Sylvain

Hello !

I talked with Daniel to know a little more about this,
and asked him to do different tests.

The problem appears also my applications, on his device
Xperia E.

What I can say :

It only appears in Landscape Mode : screen is black, but
application seems to work underneath. Portrait is always
working.

Logcat shows no error : (after Init, SDL Error ->
empty).

V/SDL ( 5134): onResume() V/SDL ( 5134):
surfaceCreated() V/SDL ( 5134): surfaceChanged()
V/SDL ( 5134): pixel format RGB_565 V/SDL ( 5134):
Window size:480x320 I/SDL ( 5134): SDL_Android_Init()
I/SDL ( 5134): SDL_Android_Init() finished! E/int
SDL_main(int, char**)( 5134):
********************************************** E/int
SDL_main(int, char**)( 5134): Main is starting … E/int
SDL_main(int, char**)( 5134):


E/SlWorld::SlWorld()( 5134): Language is set to : German
E/SlWorld::SlWorld()( 5134): Is SDL Error : D/dalvikvm(
435): WAIT_FOR_CONCURRENT_GC blocked 0ms D/dalvikvm(
435): GC_EXPLICIT freed 66K, 29% free 15789K/22087K,
paused 30ms+27ms, total 296ms I/ActivityManager( 435):
Displayed net.game.mygame/.MainActivity: +1s619ms
D/dalvikvm( 5134): GC_CONCURRENT freed 339K, 6% free
8143K/8647K, paused 16ms+36ms, total 91ms V/SDL (
5134): onWindowFocusChanged(): true

Trying different versions. It appears that My app of
August 9th 2013 was working. My app of August 30th 2013
was Not working.

I believe I was pretty much synchronised with head for
each update.

Hope this helps !

Cheers,

Sylvain

Ok, ich did some fast tests and found the problem! Don’t know
if its a big thing. The tests work great out of the box on
the HTC and the Xperia E. So I changed the stuff I used in my
app and found the problem in the manifest file. The problem
is the landscape mode: android:screenOrientation=“landscape”
.

Adding this to the tests: - HTC One Mini -> works great. -
Xperia E -> shows an black screen

I think thats a bug or not? Thanks for the great support!

Yes, thanks :), it works now. Xperia E do what it
should i think. When im looking to the test code
there is nothing special on the first look.
Tommorow I will have enougth time to take a closer
look.

May be there is an wrong project setup. I will
check and hopefully find the problem and then
report it to you. Or did you have another idea what
I could do?

Thanks!

Ops, yes, you need to put the bmp file manually
in assets so it gets put in the apk. It seems SDL
is working fine though , which of course makes
finding the reason for the black screen more
complex :slight_smile: El nov 9, 2013 10:27 p.m., “Daniel
Knobe” <@Daniel_Knobe> escribi?:

On the Xperia E the testgles works. There is a
rotating cube on the right of the screen. The
testrendercopyex crashes. Logcat:
http://pastebin.com/MUzn0xg7

Thanks for support :).

Could you try running testgles or
testrendercopyex on the phone? If that
doesn’t work it will rule out a problem in
your app (to build those quickly you can
use the script in
build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe
<@Daniel_Knobe>

I don’t really know, put maybe you see the
problem if i post it. Please ignore the
java.io.FileNotFoundException. This is
app-specific and isn’t the problem.

Xperia z: http://pastebin.com/5npt18An

Am 10.11.2013 00:11, schrieb Gabriel
Jacobo:

Do you see anything suspicious in
"adb logcat" ?

2013/11/9 Daniel Knobe
<@Daniel_Knobe>

Hallo Developers, I’m working on a
project which should run on
win/linux/macosX … and android
now.

First of all the new SDL is really
great and do what it should…
mostly.

Until I did my job on the PC ports I
started a port to android, which was
pretty easy. Testet everything on
Nexus and HTC Smartphones, it worked
out of the box. Great!

But than I testet everything on a
Sony Phone: Sony Xperia E Stock 4.1.1
-> Blackscreen Sony Xperia Z Omnirim
4.3 -> Drawing, but touch doesn’t
work.

So because of the problem I compiled
somthing really simple like the
example code on
http://wiki.libsdl.org/SDL_RenderPresent

and tested it on the Xperia E. The result:

Backscreen. On HTC and Nexus: Works!

So it seems to be a devicespecific
SDL-Problem. Is there somebody how
have the problem too (and may solved
it)? Should I open a bugreport on
bugzilla? Can I help the android-sdl
developers with informations to get
it fixed?

Best regards :slight_smile:


SDL mailing list SDL at lists.libsdl.org

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing

list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing

list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

– Sylvain Becker

– Sylvain Becker

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSgiiYAAoJEKgQxhH98B0TgRsH/1yMuCT/YrR7FyIIyrNp1pv7
YmBBnOPelaX0PmiGc4RrIN4AW5AkLfzEZIJpvn2+4t8TRKbY6cDPNSASOTY12W8z
9M1p9EBMsHqNoboFz0jlzaZU07+NWo36L1NeCZTAMNmFVO+PuWd9o+ZMQzyuDG5l
Cd85UZ/o83sWOpniTi/kpEaOe9TtFKSe1xcjBe8/7wro7EhlwXLDf/CG05/4VQ3T
O/+PQlCmNhcmOiYaPkxNwPGfrQih0o8L8Sep08SrF8resYT7qzp2WptOhmgL9C10
IDX1j23z05LbSLQ2tiZHxrmq2sEDkdNZr64LmOwx4o4KMyIDpLH+cbJlU0/ii6E=
=K7kq
-----END PGP SIGNATURE-----Am 12.11.2013 13:22, schrieb Gabriel Jacobo:

Am 12.11.2013 12:51, schrieb Gabriel Jacobo:

On Mon, Nov 11, 2013 at 10:30 AM, Sylvain Becker <sylvain.becker at gmail.com wrote:

On Sun, Nov 10, 2013 at 10:57 AM, Daniel Knobe <@Daniel_Knobe>wrote:

Am 10.11.2013 02:42, schrieb Gabriel Jacobo:

Am 10.11.2013 00:35, schrieb Gabriel Jacobo:

I did give this bug a fighting chance :slight_smile: I tried testgles with
android:screenOrientation=“landscape” on my Nexus 4 (Android 4.3), on a
Genymotion VM for Android 4.1.1, and on my Asus TF101 tablet, it seems to
work just fine.

So, it looks like I need a test case that fails on these devices, or a VM
that can reproduce this somehow in order to figure out this issue.

2013/11/12 Daniel Knobe > -----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1

Hi Gabriel,
the bug I found is a bit different. Changing the initialisation like
described ( SDL_Init(SDL_INIT_EVERYTHING) ) didn’t make a difference.

On the Xperia E the app didn’t crashes. It seems that it runs well in
the background but the screen is black.

Did some more tests and found a strange thing (see the videos I send
you). When i’m starting the app a black screen occures. Things which
are not written in SDL will be drawn like ads. When im pressing the
power-button twice and slide to unlock the app will be drawn in wrong
way and is unusable. It seems that the x-y scaling is inverted and the
rotation is wrong (see end of the second vid).

The same occures when i’m using the tests of the sdl test suite. So
it’s reproduceable :).

May be this helps a bit :-/… hopefully.

Best regards,
Daniel

Am 12.11.2013 13:22, schrieb Gabriel Jacobo:

Related? https://bugzilla.libsdl.org/show_bug.cgi?id=2043

Though the report is pre common EGL code.

2013/11/12 Daniel Knobe

Hi Gabriel, the SDL-Test doesn’t work in landscape mode. Like in
the Apps of Sylvain und mine, a black screen occures in landscape
mode.

The only thing to change in testrendercopyex and testgles to make
this test not working is to add in the AndroidManifest.xml this
line in the Activity-Tag: android:screenOrientation=“landscape”

Orientationchange during initialisation (onCreate-method) with:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

doesn’t make a difference. Both variants are leading to a black screen

in the Xperia E.

Thanks for your help.

Best regards, Daniel

Am 12.11.2013 12:51, schrieb Gabriel Jacobo:

Without access to the device and no meaningful information on
the log it can be tricky to figure out the problem. Even more
so because testrendercopyex and testgles appear to work fine.
You mentioned these apps work fine in portrait but not on
landscape, is it also the case with SDL’s tests? Or do these
work in either orientation? Anything in particular that you
are doing during initialization, any other specifics about
these apps that you can share, settings in
AndroidManifest.xml, etc?

2013/11/12 Sylvain Becker <sylvain.becker at gmail.com>

Hello,

With Daniel, we have confirmation the problem occurs
because of the common EGL code for X11/Android (
https://hg.libsdl.org/SDL/rev/ac4ce59c40e7 ) An .APK based
on the prior version was working whereas the one after was
not.

Cheers,

Sylvain

On Mon, Nov 11, 2013 at 10:30 AM, Sylvain Becker <sylvain.becker at gmail.com wrote:

Hello !

I talked with Daniel to know a little more about this,
and asked him to do different tests.

The problem appears also my applications, on his device
Xperia E.

What I can say :

It only appears in Landscape Mode : screen is black, but
application seems to work underneath. Portrait is always
working.

Logcat shows no error : (after Init, SDL Error ->
empty).

V/SDL ( 5134): onResume() V/SDL ( 5134):
surfaceCreated() V/SDL ( 5134): surfaceChanged()
V/SDL ( 5134): pixel format RGB_565 V/SDL ( 5134):
Window size:480x320 I/SDL ( 5134): SDL_Android_Init()
I/SDL ( 5134): SDL_Android_Init() finished! E/int
SDL_main(int, char**)( 5134):
********************************************** E/int
SDL_main(int, char**)( 5134): Main is starting … E/int
SDL_main(int, char**)( 5134):


E/SlWorld::SlWorld()( 5134): Language is set to : German
E/SlWorld::SlWorld()( 5134): Is SDL Error : D/dalvikvm(
435): WAIT_FOR_CONCURRENT_GC blocked 0ms D/dalvikvm(
435): GC_EXPLICIT freed 66K, 29% free 15789K/22087K,
paused 30ms+27ms, total 296ms I/ActivityManager( 435):
Displayed net.game.mygame/.MainActivity: +1s619ms
D/dalvikvm( 5134): GC_CONCURRENT freed 339K, 6% free
8143K/8647K, paused 16ms+36ms, total 91ms V/SDL (
5134): onWindowFocusChanged(): true

Trying different versions. It appears that My app of
August 9th 2013 was working. My app of August 30th 2013
was Not working.

I believe I was pretty much synchronised with head for
each update.

Hope this helps !

Cheers,

Sylvain

On Sun, Nov 10, 2013 at 10:57 AM, Daniel Knobe wrote:

Ok, ich did some fast tests and found the problem! Don’t know
if its a big thing. The tests work great out of the box on
the HTC and the Xperia E. So I changed the stuff I used in my
app and found the problem in the manifest file. The problem
is the landscape mode: android:screenOrientation=“landscape”
.

Adding this to the tests: - HTC One Mini -> works great. -
Xperia E -> shows an black screen

I think thats a bug or not? Thanks for the great support!

Yes, thanks :), it works now. Xperia E do what it
should i think. When im looking to the test code
there is nothing special on the first look.
Tommorow I will have enougth time to take a closer
look.

May be there is an wrong project setup. I will
check and hopefully find the problem and then
report it to you. Or did you have another idea what
I could do?

Thanks!

Am 10.11.2013 02:42, schrieb Gabriel Jacobo:

Ops, yes, you need to put the bmp file manually
in assets so it gets put in the apk. It seems SDL
is working fine though , which of course makes
finding the reason for the black screen more
complex :slight_smile: El nov 9, 2013 10:27 p.m., “Daniel
Knobe” escribi?:

On the Xperia E the testgles works. There is a
rotating cube on the right of the screen. The
testrendercopyex crashes. Logcat:
http://pastebin.com/MUzn0xg7

Thanks for support :).

Am 10.11.2013 00:35, schrieb Gabriel Jacobo:

Could you try running testgles or
testrendercopyex on the phone? If that
doesn’t work it will rule out a problem in
your app (to build those quickly you can
use the script in
build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe

I don’t really know, put maybe you see the
problem if i post it. Please ignore the
java.io.FileNotFoundException. This is
app-specific and isn’t the problem.

Xperia z: http://pastebin.com/5npt18An

Am 10.11.2013 00:11, schrieb Gabriel
Jacobo:

Do you see anything suspicious in
"adb logcat" ?

2013/11/9 Daniel Knobe

Hallo Developers, I’m working on a
project which should run on
win/linux/macosX … and android
now.

First of all the new SDL is really
great and do what it should…
mostly.

Until I did my job on the PC ports I
started a port to android, which was
pretty easy. Testet everything on
Nexus and HTC Smartphones, it worked
out of the box. Great!

But than I testet everything on a
Sony Phone: Sony Xperia E Stock 4.1.1
-> Blackscreen Sony Xperia Z Omnirim
4.3 -> Drawing, but touch doesn’t
work.

So because of the problem I compiled
somthing really simple like the
example code on
http://wiki.libsdl.org/SDL_RenderPresent

and tested it on the Xperia E. The result:

Backscreen. On HTC and Nexus: Works!

So it seems to be a devicespecific
SDL-Problem. Is there somebody how
have the problem too (and may solved
it)? Should I open a bugreport on
bugzilla? Can I help the android-sdl
developers with informations to get
it fixed?

Best regards :slight_smile:


SDL mailing list SDL at lists.libsdl.org

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing

list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing

list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

– Sylvain Becker

– Sylvain Becker

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSgiiYAAoJEKgQxhH98B0TgRsH/1yMuCT/YrR7FyIIyrNp1pv7
YmBBnOPelaX0PmiGc4RrIN4AW5AkLfzEZIJpvn2+4t8TRKbY6cDPNSASOTY12W8z
9M1p9EBMsHqNoboFz0jlzaZU07+NWo36L1NeCZTAMNmFVO+PuWd9o+ZMQzyuDG5l
Cd85UZ/o83sWOpniTi/kpEaOe9TtFKSe1xcjBe8/7wro7EhlwXLDf/CG05/4VQ3T
O/+PQlCmNhcmOiYaPkxNwPGfrQih0o8L8Sep08SrF8resYT7qzp2WptOhmgL9C10
IDX1j23z05LbSLQ2tiZHxrmq2sEDkdNZr64LmOwx4o4KMyIDpLH+cbJlU0/ii6E=
=K7kq
-----END PGP SIGNATURE-----


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Gabriel.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is there a way I can help you? If you did some changes you can send me
a test apk. I will test it immediately on my device :).

I did give this bug a fighting chance :slight_smile: I tried testgles with
android:screenOrientation=“landscape” on my Nexus 4 (Android 4.3),
on a Genymotion VM for Android 4.1.1, and on my Asus TF101 tablet,
it seems to work just fine.

So, it looks like I need a test case that fails on these devices,
or a VM that can reproduce this somehow in order to figure out this
issue.

2013/11/12 Daniel Knobe <@Daniel_Knobe>

Hi Gabriel, the bug I found is a bit different. Changing the
initialisation like described ( SDL_Init(SDL_INIT_EVERYTHING) )
didn’t make a difference.

On the Xperia E the app didn’t crashes. It seems that it runs well
in the background but the screen is black.

Did some more tests and found a strange thing (see the videos I
send you). When i’m starting the app a black screen occures. Things
which are not written in SDL will be drawn like ads. When im
pressing the power-button twice and slide to unlock the app will be
drawn in wrong way and is unusable. It seems that the x-y scaling
is inverted and the rotation is wrong (see end of the second vid).

The same occures when i’m using the tests of the sdl test suite.
So it’s reproduceable :).

May be this helps a bit :-/… hopefully.

Best regards, Daniel

Related? https://bugzilla.libsdl.org/show_bug.cgi?id=2043

Though the report is pre common EGL code.

2013/11/12 Daniel Knobe <@Daniel_Knobe>

Hi Gabriel, the SDL-Test doesn’t work in landscape mode. Like
in the Apps of Sylvain und mine, a black screen occures in
landscape mode.

The only thing to change in testrendercopyex and testgles to
make this test not working is to add in the
AndroidManifest.xml this line in the Activity-Tag:
android:screenOrientation=“landscape”

Orientationchange during initialisation (onCreate-method)
with:
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

doesn’t make a difference. Both variants are leading to a black screen

in the Xperia E.

Thanks for your help.

Best regards, Daniel

Without access to the device and no meaningful
information on the log it can be tricky to figure out
the problem. Even more so because testrendercopyex and
testgles appear to work fine. You mentioned these apps
work fine in portrait but not on landscape, is it also
the case with SDL’s tests? Or do these work in either
orientation? Anything in particular that you are doing
during initialization, any other specifics about these
apps that you can share, settings in
AndroidManifest.xml, etc?

2013/11/12 Sylvain Becker <sylvain.becker at gmail.com>

Hello,

With Daniel, we have confirmation the problem occurs
because of the common EGL code for X11/Android (
https://hg.libsdl.org/SDL/rev/ac4ce59c40e7 ) An .APK
based on the prior version was working whereas the
one after was not.

Cheers,

Sylvain

Hello !

I talked with Daniel to know a little more about
this, and asked him to do different tests.

The problem appears also my applications, on his
device Xperia E.

What I can say :

It only appears in Landscape Mode : screen is
black, but application seems to work underneath.
Portrait is always working.

Logcat shows no error : (after Init, SDL Error ->
empty).

V/SDL ( 5134): onResume() V/SDL ( 5134):
surfaceCreated() V/SDL ( 5134):
surfaceChanged() V/SDL ( 5134): pixel format
RGB_565 V/SDL ( 5134): Window size:480x320
I/SDL ( 5134): SDL_Android_Init() I/SDL (
5134): SDL_Android_Init() finished! E/int
SDL_main(int, char**)( 5134):


E/int SDL_main(int, char**)( 5134): Main is
starting … E/int SDL_main(int, char**)( 5134):


E/SlWorld::SlWorld()( 5134): Language is set to :
German E/SlWorld::SlWorld()( 5134): Is SDL Error :
D/dalvikvm( 435): WAIT_FOR_CONCURRENT_GC blocked
0ms D/dalvikvm( 435): GC_EXPLICIT freed 66K, 29%
free 15789K/22087K, paused 30ms+27ms, total 296ms
I/ActivityManager( 435): Displayed
net.game.mygame/.MainActivity: +1s619ms D/dalvikvm(
5134): GC_CONCURRENT freed 339K, 6% free
8143K/8647K, paused 16ms+36ms, total 91ms V/SDL
( 5134): onWindowFocusChanged(): true

Trying different versions. It appears that My app
of August 9th 2013 was working. My app of August
30th 2013 was Not working.

I believe I was pretty much synchronised with head
for each update.

Hope this helps !

Cheers,

Sylvain

Ok, ich did some fast tests and found the problem!
Don’t know if its a big thing. The tests work great out
of the box on the HTC and the Xperia E. So I changed
the stuff I used in my app and found the problem in the
manifest file. The problem is the landscape mode:
android:screenOrientation=“landscape” .

Adding this to the tests: - HTC One Mini -> works
great. - Xperia E -> shows an black screen

I think thats a bug or not? Thanks for the great
support!

Yes, thanks :), it works now. Xperia E do
what it should i think. When im looking to
the test code there is nothing special on the
first look. Tommorow I will have enougth time
to take a closer look.

May be there is an wrong project setup. I
will check and hopefully find the problem and
then report it to you. Or did you have
another idea what I could do?

Thanks!

Ops, yes, you need to put the bmp file
manually in assets so it gets put in the
apk. It seems SDL is working fine though ,
which of course makes finding the reason
for the black screen more complex :slight_smile: El nov
9, 2013 10:27 p.m., “Daniel Knobe”
<@Daniel_Knobe> escribi?:

On the Xperia E the testgles works. There
is a rotating cube on the right of the
screen. The testrendercopyex crashes.
Logcat: http://pastebin.com/MUzn0xg7

Thanks for support :).

Am 10.11.2013 00:35, schrieb Gabriel
Jacobo:

Could you try running testgles or
testrendercopyex on the phone? If
that doesn’t work it will rule out a
problem in your app (to build those
quickly you can use the script in
build-scripts/androidbuild.sh)

2013/11/9 Daniel Knobe
<@Daniel_Knobe>

I don’t really know, put maybe you
see the problem if i post it. Please
ignore the
java.io.FileNotFoundException. This
is app-specific and isn’t the
problem.

Xperia z:
http://pastebin.com/5npt18An

Am 10.11.2013 00:11, schrieb Gabriel
Jacobo:

Do you see anything suspicious
in “adb logcat” ?

2013/11/9 Daniel Knobe
<@Daniel_Knobe>

Hallo Developers, I’m working
on a project which should run
on win/linux/macosX … and
android now.

First of all the new SDL is
really great and do what it
should… mostly.

Until I did my job on the PC
ports I started a port to
android, which was pretty easy.
Testet everything on Nexus and
HTC Smartphones, it worked out
of the box. Great!

But than I testet everything on
a Sony Phone: Sony Xperia E
Stock 4.1.1 -> Blackscreen Sony
Xperia Z Omnirim 4.3 ->
Drawing, but touch doesn’t
work.

So because of the problem I
compiled somthing really simple
like the example code on
http://wiki.libsdl.org/SDL_RenderPresent

and tested it on the Xperia E. The result:

Backscreen. On HTC and Nexus:
Works!

So it seems to be a
devicespecific SDL-Problem. Is
there somebody how have the
problem too (and may solved
it)? Should I open a bugreport
on bugzilla? Can I help the
android-sdl developers with
informations to get it fixed?

Best regards :slight_smile:


SDL mailing list SDL at lists.libsdl.org

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing

list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL

mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing

list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

  • – Sylvain Becker

– Sylvain Becker

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL
mailing list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing
list SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________ SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSgjfnAAoJEKgQxhH98B0TBlQH/RVi8A0EWgQYnpFK5wnlUzcK
12nGBGI2EYKdQEK0blEgYu87GRs/2F+XibazLMcKaSjh0wm58z3hCP/dh0KgYstE
XLqatPxJ83exhsspTlzICrgDhWqg1DaV1D3wAvALCKxHXFoG8FES7QB8sH70YHf2
XavhvWLzGu/p3Qati+f4ZBzDFw2WnlhcX55ZIetgMfKbF8QjwnPJDJT98BMWKx9k
eh1q/xnl2vXdR3BLOOEIyRAKzElsxLL/v2Aw5FtXKraHO4dMPifxRTgd4fZa6jB8
eDWIiBFbmyRLOjesviaCD984a+FmwqnuaIOmiXqpoCIv2qSTsVVZi4+25XaS1ys=
=aukZ
-----END PGP SIGNATURE-----> Am 12.11.2013 13:22, schrieb Gabriel Jacobo:

Am 12.11.2013 12:51, schrieb Gabriel Jacobo:

On Mon, Nov 11, 2013 at 10:30 AM, Sylvain Becker <sylvain.becker at gmail.com wrote:

On Sun, Nov 10, 2013 at 10:57 AM, Daniel Knobe <@Daniel_Knobe>wrote:

Am 10.11.2013 02:42, schrieb Gabriel Jacobo:

Chances may be slim but, maybe it is related to the following old bug
report (pre common EGL code)?

https://bugzilla.libsdl.org/show_bug.cgi?id=1895On 11/12/2013 04:11 PM, Gabriel Jacobo wrote:

I did give this bug a fighting chance :slight_smile: I tried testgles with
android:screenOrientation=“landscape” on my Nexus 4 (Android 4.3), on a
Genymotion VM for Android 4.1.1, and on my Asus TF101 tablet, it seems
to work just fine.

So, it looks like I need a test case that fails on these devices, or a
VM that can reproduce this somehow in order to figure out this issue.

2013/11/12 Daniel Knobe <daniel-knobe at web.de <mailto:daniel-knobe at web.de>>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Gabriel,
the bug I found is a bit different. Changing the initialisation like
described ( SDL_Init(SDL_INIT_EVERYTHING) ) didn't make a difference.

On the Xperia E the app didn't crashes. It seems that it runs well in
the background but the screen is black.

Did some more tests and found a strange thing (see the videos I send
you). When i'm starting the app a black screen occures. Things which
are not written in SDL will be drawn like ads. When im pressing the
power-button twice and slide to unlock the app will be drawn in wrong
way and is unusable. It seems that the x-y scaling is inverted and the
rotation is wrong (see end of the second vid).

The same occures when i'm using the tests of the sdl test suite. So
it's reproduceable :).

May be this helps a bit :-/... hopefully.

Best regards,
Daniel


Am 12.11.2013 13:22, schrieb Gabriel Jacobo:
 > Related? https://bugzilla.libsdl.org/show_bug.cgi?id=2043
 >
 > Though the report is pre common EGL code.
 >
 >
 > 2013/11/12 Daniel Knobe <daniel-knobe at web.de
<mailto:daniel-knobe at web.de>>
 >
 > Hi Gabriel, the SDL-Test doesn't work in landscape mode. Like in
 > the Apps of Sylvain und mine, a black screen occures in landscape
 > mode.
 >
 > The only thing to change in testrendercopyex and testgles to make
 > this test not working is to add in the AndroidManifest.xml this
 > line in the Activity-Tag: android:screenOrientation="landscape"
 >
 > Orientationchange during initialisation (onCreate-method) with:
 > setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
 >
 >
doesn't make a difference. Both variants are leading to a black screen
 > in the Xperia E.
 >
 > Thanks for your help.
 >
 > Best regards, Daniel
 >
 >
 > Am 12.11.2013 12:51, schrieb Gabriel Jacobo:
 >>>> Without access to the device and no meaningful information on
 >>>> the log it can be tricky to figure out the problem. Even more
 >>>> so because testrendercopyex and testgles appear to work fine.
 >>>> You mentioned these apps work fine in portrait but not on
 >>>> landscape, is it also the case with SDL's tests? Or do these
 >>>> work in either orientation? Anything in particular that you
 >>>> are doing during initialization, any other specifics about
 >>>> these apps that you can share, settings in
 >>>> AndroidManifest.xml, etc?
 >>>>
 >>>>
 >>>> 2013/11/12 Sylvain Becker <sylvain.becker at gmail.com
<mailto:sylvain.becker at gmail.com>>
 >>>>
 >>>>> Hello,
 >>>>>
 >>>>> With Daniel, we have confirmation the problem occurs
 >>>>> because of the common EGL code for X11/Android (
 >>>>> https://hg.libsdl.org/SDL/rev/ac4ce59c40e7 ) An .APK based
 >>>>> on the prior version was working whereas the one after was
 >>>>> not.
 >>>>>
 >>>>> Cheers,
 >>>>>
 >>>>> Sylvain
 >>>>>
 >>>>>
 >>>>> On Mon, Nov 11, 2013 at 10:30 AM, Sylvain Becker <sylvain.becker at gmail.com <mailto:sylvain.becker at gmail.com> wrote:
 >>>>>
 >>>>>> Hello !
 >>>>>>
 >>>>>> I talked with Daniel to know a little more about this,
 >>>>>> and asked him to do different tests.
 >>>>>>
 >>>>>> The problem appears also my applications, on his device
 >>>>>> Xperia E.
 >>>>>>
 >>>>>> What I can say :
 >>>>>>
 >>>>>> It only appears in Landscape Mode : screen is black, but
 >>>>>> application seems to work underneath. Portrait is always
 >>>>>> working.
 >>>>>>
 >>>>>> Logcat shows no error : (after Init, SDL Error ->
 >>>>>> empty).
 >>>>>>
 >>>>>> V/SDL     ( 5134): onResume() V/SDL     ( 5134):
 >>>>>> surfaceCreated() V/SDL     ( 5134): surfaceChanged()
 >>>>>> V/SDL ( 5134): pixel format RGB_565 V/SDL     ( 5134):
 >>>>>> Window size:480x320 I/SDL     ( 5134): SDL_Android_Init()
 >>>>>> I/SDL     ( 5134): SDL_Android_Init() finished! E/int
 >>>>>> SDL_main(int, char**)( 5134):
 >>>>>> ********************************************** E/int
 >>>>>> SDL_main(int, char**)( 5134): Main is starting ... E/int
 >>>>>> SDL_main(int, char**)( 5134):
 >>>>>> **********************************************
 >>>>>> E/SlWorld::SlWorld()( 5134): Language is set to : German
 >>>>>> E/SlWorld::SlWorld()( 5134): Is SDL Error : D/dalvikvm(
 >>>>>> 435): WAIT_FOR_CONCURRENT_GC blocked 0ms D/dalvikvm(
 >>>>>> 435): GC_EXPLICIT freed 66K, 29% free 15789K/22087K,
 >>>>>> paused 30ms+27ms, total 296ms I/ActivityManager(  435):
 >>>>>> Displayed net.game.mygame/.MainActivity: +1s619ms
 >>>>>> D/dalvikvm( 5134): GC_CONCURRENT freed 339K, 6% free
 >>>>>> 8143K/8647K, paused 16ms+36ms, total 91ms V/SDL     (
 >>>>>> 5134): onWindowFocusChanged(): true
 >>>>>>
 >>>>>>
 >>>>>> Trying different versions. It appears that My app of
 >>>>>> August 9th 2013 was working. My app of August 30th 2013
 >>>>>> was Not working.
 >>>>>>
 >>>>>> I believe I was pretty much synchronised with head for
 >>>>>> each update.
 >>>>>>
 >>>>>> Hope this helps !
 >>>>>>
 >>>>>> Cheers,
 >>>>>>
 >>>>>> Sylvain
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>> On Sun, Nov 10, 2013 at 10:57 AM, Daniel Knobe <daniel-knobe at web.de <mailto:daniel-knobe at web.de>>wrote:
 >>>>>>
 >>>> Ok, ich did some fast tests and found the problem! Don't know
 >>>> if its a big thing. The tests work great out of the box on
 >>>> the HTC and the Xperia E. So I changed the stuff I used in my
 >>>> app and found the problem in the manifest file. The problem
 >>>> is the landscape mode: android:screenOrientation="landscape"
 >>>> .
 >>>>
 >>>> Adding this to the tests: - HTC One Mini -> works great. -
 >>>> Xperia E -> shows an black screen
 >>>>
 >>>> I think thats a bug or not? Thanks for the great support!
 >>>>
 >>>>
 >>>>>>>>> Yes, thanks :), it works now. Xperia E do what it
 >>>>>>>>> should i think. When im looking to the test code
 >>>>>>>>> there is nothing special on the first look.
 >>>>>>>>> Tommorow I will have enougth time to take a closer
 >>>>>>>>> look.
 >>>>>>>>>
 >>>>>>>>> May be there is an wrong project setup. I will
 >>>>>>>>> check and hopefully find the problem and then
 >>>>>>>>> report it to you. Or did you have another idea what
 >>>>>>>>> I could do?
 >>>>>>>>>
 >>>>>>>>> Thanks!
 >>>>>>>>>
 >>>>>>>>> Am 10.11.2013 02:42, schrieb Gabriel Jacobo:
 >>>>>>>>>> Ops, yes, you need to put the bmp file manually
 >>>>>>>>>> in assets so it gets put in the apk. It seems SDL
 >>>>>>>>>> is working fine though , which of course makes
 >>>>>>>>>> finding the reason for the black screen more
 >>>>>>>>>> complex :) El nov 9, 2013 10:27 p.m., "Daniel
 >>>>>>>>>> Knobe" <daniel-knobe at web.de
<mailto:daniel-knobe at web.de>> escribi?:
 >>>>>>>>>
 >>>>>>>>>> On the Xperia E the testgles works. There is a
 >>>>>>>>>> rotating cube on the right of the screen. The
 >>>>>>>>>> testrendercopyex crashes. Logcat:
 >>>>>>>>>> http://pastebin.com/MUzn0xg7
 >>>>>>>>>
 >>>>>>>>>> Thanks for support :).
 >>>>>>>>>
 >>>>>>>>>
 >>>>>>>>>
 >>>>>>>>>> Am 10.11.2013 00:35, schrieb Gabriel Jacobo:
 >>>>>>>>>>>>> Could you try running testgles or
 >>>>>>>>>>>>> testrendercopyex on the phone? If that
 >>>>>>>>>>>>> doesn't work it will rule out a problem in
 >>>>>>>>>>>>> your app (to build those quickly you can
 >>>>>>>>>>>>> use the script in
 >>>>>>>>>>>>> build-scripts/androidbuild.sh)
 >>>>>>>>>>>>>
 >>>>>>>>>>>>>
 >>>>>>>>>>>>> 2013/11/9 Daniel Knobe
 >>>>>>>>>>>>> <daniel-knobe at web.de <mailto:daniel-knobe at web.de>>
 >>>>>>>>>>>>>
 >>>>>>>>>>>>> I don't really know, put maybe you see the
 >>>>>>>>>>>>> problem if i post it. Please ignore the
 >>>>>>>>>>>>> java.io.FileNotFoundException. This is
 >>>>>>>>>>>>> app-specific and isn't the problem.
 >>>>>>>>>>>>>
 >>>>>>>>>>>>> Xperia z: http://pastebin.com/5npt18An
 >>>>>>>>>>>>>
 >>>>>>>>>>>>> Am 10.11.2013 00:11, schrieb Gabriel
 >>>>>>>>>>>>> Jacobo:
 >>>>>>>>>>>>>>>> Do you see anything suspicious in
 >>>>>>>>>>>>>>>> "adb logcat" ?
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>> 2013/11/9 Daniel Knobe
 >>>>>>>>>>>>>>>> <daniel-knobe at web.de <mailto:daniel-knobe at web.de>>
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>> Hallo Developers, I'm working on a
 >>>>>>>>>>>>>>>> project which should run on
 >>>>>>>>>>>>>>>> win/linux/macosX ... and android
 >>>>>>>>>>>>>>>> now.
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>> First of all the new SDL is really
 >>>>>>>>>>>>>>>> great and do what it should...
 >>>>>>>>>>>>>>>> mostly.
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>> Until I did my job on the PC ports I
 >>>>>>>>>>>>>>>> started a port to android, which was
 >>>>>>>>>>>>>>>> pretty easy. Testet everything on
 >>>>>>>>>>>>>>>> Nexus and HTC Smartphones, it worked
 >>>>>>>>>>>>>>>> out of the box. Great!
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>> But than I testet everything on a
 >>>>>>>>>>>>>>>> Sony Phone: Sony Xperia E Stock 4.1.1
 >>>>>>>>>>>>>>>> -> Blackscreen Sony Xperia Z Omnirim
 >>>>>>>>>>>>>>>> 4.3 -> Drawing, but touch doesn't
 >>>>>>>>>>>>>>>> work.
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>> So because of the problem I compiled
 >>>>>>>>>>>>>>>> somthing really simple like the
 >>>>>>>>>>>>>>>> example code on
 >>>>>>>>>>>>>>>> http://wiki.libsdl.org/SDL_RenderPresent
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>>
and tested it on the Xperia E. The result:
 >>>>>>>>>>>>>>>> Backscreen. On HTC and Nexus: Works!
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>> So it seems to be a devicespecific
 >>>>>>>>>>>>>>>> SDL-Problem. Is there somebody how
 >>>>>>>>>>>>>>>> have the problem too (and may solved
 >>>>>>>>>>>>>>>> it)? Should I open a bugreport on
 >>>>>>>>>>>>>>>> bugzilla? Can I help the android-sdl
 >>>>>>>>>>>>>>>> developers with informations to get
 >>>>>>>>>>>>>>>> it fixed?
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>> Best regards :)
 >>>>>>>>>>>>>>>>> _______________________________________________
 >>>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>>>
 >
 >>>>>>>>>>>>>>>>>
SDL mailing list SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
 >>>>>>>>>>>>>>>>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
 >>>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>>>
 >>>>
 >>>>>>>>>>>>>>>>>
 >
 >>>>>>>>>>>>>>>>>
_______________________________________________ SDL
 >>>>>>>>>>>>>>>> mailing list SDL at lists.libsdl.org
<mailto:SDL at lists.libsdl.org>
 >>>>>>>>>>>>>>>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
 >>>>>>>>>>>>>>>>
 >>>>>>>>>>>>>
 >>>>>>>>>>>>>>
 >>>>>>>>>>>>>>>>
 >
 >>>>>>>>>>>>>>>>
_______________________________________________ SDL
 >>>>>>>>>>>>>> mailing list SDL at lists.libsdl.org
<mailto:SDL at lists.libsdl.org>
 >>>>>>>>>>>>>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
 >>>>>>>>>>>>>>
 >>>>>>>>>>>>>
 >>>>>>>>>>>>>
 >>>>>>>>>>>>>
 >>>>>>>>>>>>>
 >>>>>>>>>>>>>
 >>>>>>>>>>>>>
 >>>>>>>>>>>>>>
 >
 >>>>>>>>>>>>>>
_______________________________________________ SDL
 >>>>>>>>>>>>> mailing list SDL at lists.libsdl.org
<mailto:SDL at lists.libsdl.org>
 >>>>>>>>>>>>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
 >>>>>>>>>>>>>
 >>>>>>>>>
 >>>>>>>>>>>
 >>>>>>>>>>>>>
 >
 >>>>>>>>>>>>>
_______________________________________________ SDL mailing
 >>>>>>>>>>> list SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
 >>>>>>>>>>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
 >>>>>>>>>>>
 >>>>>>>>>
 >>>>>>>>>
 >>>>>>>>>
 >>>>>>>>>>
 >>>>>>>>>>>
_______________________________________________ SDL
 >>>>>>>>>> mailing list SDL at lists.libsdl.org
<mailto:SDL at lists.libsdl.org>
 >>>>>>>>>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
 >>>>>>>>>
 >>>>>>>>>
 >>>>>>>>>
 >>>>>>>>>>
_______________________________________________ SDL
 >>>>>>>>> mailing list SDL at lists.libsdl.org
<mailto:SDL at lists.libsdl.org>
 >>>>>>>>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
 >>>>>>>>>
 >>>>
 >>>>>>>
 >>>>>>>>>
_______________________________________________ SDL mailing
 >>>>>>> list SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
 >>>>>>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
 >>>>>>>
 >>>>>>
 >>>>>>
 >>>>>>
 >>>>>> -- Sylvain Becker
 >>>>>>
 >>>>>
 >>>>>
 >>>>>
 >>>>> -- Sylvain Becker
 >>>>>
 >>>>> _______________________________________________ SDL mailing
 >>>>> list SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
 >>>>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
 >>>>>
 >>>>>
 >>>>
 >>>>
 >>>>
 >>>>
 >>>> _______________________________________________ SDL mailing
 >>>> list SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
 >>>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
 >>>>
 >
 >> _______________________________________________ SDL mailing list
 >> SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
 >> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
 >>
 >
 >
 >
 >
 >
 > _______________________________________________ SDL mailing list
 > SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
 > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
 >

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSgiiYAAoJEKgQxhH98B0TgRsH/1yMuCT/YrR7FyIIyrNp1pv7
YmBBnOPelaX0PmiGc4RrIN4AW5AkLfzEZIJpvn2+4t8TRKbY6cDPNSASOTY12W8z
9M1p9EBMsHqNoboFz0jlzaZU07+NWo36L1NeCZTAMNmFVO+PuWd9o+ZMQzyuDG5l
Cd85UZ/o83sWOpniTi/kpEaOe9TtFKSe1xcjBe8/7wro7EhlwXLDf/CG05/4VQ3T
O/+PQlCmNhcmOiYaPkxNwPGfrQih0o8L8Sep08SrF8resYT7qzp2WptOhmgL9C10
IDX1j23z05LbSLQ2tiZHxrmq2sEDkdNZr64LmOwx4o4KMyIDpLH+cbJlU0/ii6E=
=K7kq
-----END PGP SIGNATURE-----
_______________________________________________
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Gabriel.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

We tried the patch (https://bugzilla.libsdl.org/show_bug.cgi?id=1895) but
with no success.

We tried also to force the window resize by sending RESIZE events,
Grabbing/Raising the Window, with no success.

Also try a call to “android_egl_context_restore()”.

Any idea to debug that ? why would the landscape fail, but not the portrait
? Any idea to unactive the screen rotation while being in landscape ?

Thanks,

Sylvain