Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

different compile options cause different behavior in TextureView #389

Closed
JNYoung opened this issue Feb 27, 2017 · 7 comments
Closed

different compile options cause different behavior in TextureView #389

JNYoung opened this issue Feb 27, 2017 · 7 comments
Labels

Comments

@JNYoung
Copy link

JNYoung commented Feb 27, 2017

As I used GifTextureView in the ListView and found that may not work for some kinds of phones in release. It stops on the first frame.
After changed to the debug config it works fine, so I suspect the build config cause this problem.

And here is the CPU message for the unworking phone

Processor : ARMv7 Processor rev 5 (v7l)
processor : 0
BogoMIPS : 12.80

processor : 1
BogoMIPS : 12.80

processor : 2
BogoMIPS : 12.80

processor : 3
BogoMIPS : 12.80

processor : 4
BogoMIPS : 38.40

processor : 5
BogoMIPS : 38.40

processor : 6
BogoMIPS : 38.40

processor : 7
BogoMIPS : 38.40

Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0 & 0x3
CPU part : 0xc07 & 0xc0f
CPU revision : 5 & 3

Hardware : Kirin920
Revision : 0000
Serial : 0000000000000000

@koral--
Copy link
Owner

koral-- commented Feb 27, 2017

What is the API level (Android version) of that affected device?
Are you using proguard (minifyEnabled true) in release build?
If so what is your default proguard file (''proguard-android-optimize.txt'or'proguard-android.txt'`)?

@JNYoung
Copy link
Author

JNYoung commented Feb 27, 2017

the api level of device is 4.4
the minifyEnabled is false

p.s: after changed Os to O0, it works fine
so I think is the c compiler problem

and which part may be affected by the option

@koral--
Copy link
Owner

koral-- commented Feb 27, 2017

OK, I'll try to reproduce it.

@koral-- koral-- added bug and removed needs info labels Feb 27, 2017
@koral--
Copy link
Owner

koral-- commented Feb 28, 2017

Indeed, even -O1 causes this issue. I'll try to figure out ASAP what option exactly what exact option is the reason.

koral-- added a commit that referenced this issue Mar 3, 2017
@koral--
Copy link
Owner

koral-- commented Mar 3, 2017

Optimization flags work in cmake build system. Commit with changes linked above.

@JNYoung
Copy link
Author

JNYoung commented Mar 3, 2017

thx, I'll try it

@koral--
Copy link
Owner

koral-- commented Mar 5, 2017

All ndk-build stuff has been ported to cmake in 34d4e76

@koral-- koral-- closed this as completed Mar 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants