-----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 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
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: