| Summary: | SDL stops drawing after a short time (android) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | raincomplex |
| Component: | render | Assignee: | Sylvain <sylvain.becker> |
| Status: | RESOLVED ABANDONED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | philipp.wiesemann, sylvain.becker |
| Version: | 2.0.3 | ||
| Hardware: | All | ||
| OS: | Android (All) | ||
| Attachments: | android project exhibiting bug | ||
|
Description
raincomplex
2015-09-29 20:43:47 UTC
Hi, I don't have the problem with a Samsung S5, android 5.0, using the latest SDL Hg version.
(I only took your main.c)
I had to re-write your
SDL_RenderFillRect(renderer, &(SDL_Rect){0, 0, scrw, scrh});
SDL_RenderFillRect(renderer, &(SDL_Rect){x, y, size, size});
in
SDL_Rect r1 = {0, 0, scrw, scrh};
SDL_Rect r2 = {x, y, size, size};
SDL_RenderFillRect(renderer, &r1);
SDL_RenderFillRect(renderer, &r2);
Because it didn't fit my compilation flags ...
A few things to try:
- use lastest SDL Hg (you said you used SDL 2.0.4, I know it's almost the latest..)
- update to the latest NDK (r10e) + in the AndroidManitest.xml, set android:targetSdkVersion="23".
- provide a "log cat".
- Also, did you run the binary as "arm", or "arm-v7a" ? (in jni/Android.mk) you could try to reduce the number of architecture targeted ...
Thanks for the response. I did a lot of log searching before and didn't find anything relevant (the S6 spits out a ton of irrelevant debug info compared to the Nexus 4). I was using NDK r10d. I'm not sure which architecture was used; I stuck with the defaults in jni/Application.mk of armeabi armeabi-v7a x86. I believe the S6 is ARMv8-A. I don't know that much about that aspect of Android. I'll try your suggestions as soon as I can and report back. Yes, sorry this is in "jni/Application.mk", try with only one architecture. The most basic is: APP_ABI := armeabi might be a way to narrow down the issue. The renderer is activated and deactivated by window events (e.g. to stop drawing while the window is not visible). Maybe this is broken on some Android devices and a problem similar to the one in bug 3202. @Raincomplex : have you solved your issue ? Hello, and sorry if you're getting dozens of copies of this message by email. We are closing out bugs that appear to be abandoned in some form. This can happen for lots of reasons: we couldn't reproduce it, conversation faded out, the bug was noted as fixed in a comment but we forgot to mark it resolved, the report is good but the fix is impractical, we fixed it a long time ago without realizing there was an associated report, etc. Individually, any of these bugs might have a better resolution (such as WONTFIX or WORKSFORME or INVALID) but we've added a new resolution of ABANDONED to make this easily searchable and make it clear that it's not necessarily unreasonable to revive a given bug report. So if this bug is still a going concern and you feel it should still be open: please feel free to reopen it! But unless you respond, we'd like to consider these bugs closed, as many of them are several years old and overwhelming our ability to prioritize recent issues. (please note that hundred of bug reports were sorted through here, so we apologize for any human error. Just reopen the bug in that case!) Thanks, --ryan. |