fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Fresco not coexisting with GDX

Open xiangdev opened this issue 11 years ago • 15 comments

With fresco 0.5.0 I found that images are not displayed on certain Samsung devices with Android 5.0.2.

On similar devices such as LG Nexus 4 (Android 5.1) or Sony Xperia Z1 (Android 5.0.2) images are loaded just fine with the same app (exactly the same apk binary). This issue is not reproducible on Samsung Galaxy S4 (Android 4.4.2) or older devices either.

I could not see much debug info rather than this info log: 05-28 14:38:04.781 13750-14917/ I/art﹕ Rejecting re-init on previously-failed class java.lang.Class<com.facebook.imagepipeline.memory.NativeMemoryChunk> 05-28 14:38:04.791 13750-20869/ I/art﹕ Rejecting re-init on previously-failed class java.lang.Class<com.facebook.imagepipeline.memory.NativeMemoryChunk>

Following is the spec for one of the phones:

Galaxy S6 edge SM-G925I 5.0.2

Please let me know if there is any other information I can provide to help investigate. Thanks.

xiangdev avatar May 28 '15 04:05 xiangdev

Thanks for reporting. We are aware of this and it would be fixed in the next release.

TarangS avatar May 29 '15 11:05 TarangS

There was a known problem with the S6's 64-bit hardware that has been fixed in v0.5.1.

tyronen avatar Jun 04 '15 10:06 tyronen

Facing the same problem with com.facebook.fresco:fresco:0.5.2

Rejecting re-init on previously-failed class java.lang.Class<com.facebook.imagepipeline.memory.NativeMemoryChunk>

Any ideas how to fix this? I have tried on a Nexus 5, Android 5.1.1 and HTC one X, Android 4.2.2, with no success, nothing appears, except the placeholder.

Also I have tried with version 0.5.0 and 0.5.1 but nothing changed.

Laces avatar Jun 16 '15 16:06 Laces

I have created a separate activity for this to try out, and now the "Rejecting re-init..." message is missing, but there is another message: W/dalvikvm﹕ Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/facebook/imagepipeline/memory/NativeMemoryChunk; and the image is still missing.

Laces avatar Jun 16 '15 16:06 Laces

Laces, your issue is different from the original as it occurs on non-S6 devices.

What kind of images fail to appear?

tyronen avatar Jun 16 '15 16:06 tyronen

Then sorry to post in the wrong thread. I have tried with the tutorial found here: http://frescolib.org/docs/getting-started.html Everything was exactly the same, the url was: https://raw.githubusercontent.com/facebook/fresco/gh-pages/static/fresco-logo.png

Tomorrow I'll start a new & clean project to try this out...

Laces avatar Jun 16 '15 16:06 Laces

I think I have found the problem, I wanted to use Fresco with libGDX on Android, and in my gradle file I have this:

// needed to add JNI shared libraries to APK when compiling on CLI tasks.withType(com.android.build.gradle.tasks.PackageApplication) { pkgTask -> pkgTask.jniFolders = new HashSet() pkgTask.jniFolders.add(new File(projectDir, 'libs')) }

If I remove these lines, the Fresco works, but the GDX doesn't... Do you have any idea how can I fix this? Thanks!

Laces avatar Jun 17 '15 13:06 Laces

Running into the same issue, however not using the GDX library or an S6.

I am running on a nexus 6, however issue is seen on a nexus 7, galaxy tab 2, and a sony xperia more details in #746

JorisBolsens avatar Nov 11 '15 18:11 JorisBolsens

Is there some workaround I can try so it will work? because right now no images are loading at all from the network.

JorisBolsens avatar Nov 11 '15 21:11 JorisBolsens

I got this issue when I updated my Same here.... com.google.gms:google-services:1.3.1 on the project build.gradle to 1.5.0-beta2... when I rolled back fresco got back to working

githubdoramon avatar Nov 18 '15 17:11 githubdoramon

Same problem on sumsung galaxy s4 i9295

dmitriigaidarji avatar Nov 29 '15 15:11 dmitriigaidarji

Anyone have any luck? Same issue on Nexus 6

peterchappy avatar Dec 22 '15 20:12 peterchappy

@githubdoramon - Thanks. Your suggestion helped me to solve the issue.

aslamhirani avatar Jan 09 '16 09:01 aslamhirani

This seems like it's still an issue with Fresco 0.9.0. Genymotion Nexus 5 with API21 5.0.0.

UPDATE This appears related to https://github.com/facebook/fresco/issues/410 and was resolved for me when I updated my gradle build tools.

knitterb-razzle avatar Feb 09 '16 19:02 knitterb-razzle

No new reports of this for more than a year, closing issue.

erikandre avatar Apr 24 '17 15:04 erikandre