Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Error loading module 'gameNetwork' on some devices
Started by Gent Sep 03 2019 10:47 PM

23 replies to this topic
android gamenetwork libgamenetwork.so arm64 libcorona.so
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Gent

[GLOBAL: userInfoPane.html]
Gent
  • Observer

  • 17 posts
  • Corona SDK

On our devices app is work fine but some users get that error.

How we can fix it?

 

plugins: https://pastebin.com/1XhJHa7g

module gpgs.v2 / gameNetwork: https://pastebin.com/01drCUCw



[TOPIC: post.html]
#2

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,219 posts
  • Corona SDK

How do you know it is not loading? Do you have an example of the error?

 

Adrian



[TOPIC: post.html]
#3

Gent

[GLOBAL: userInfoPane.html]
Gent
  • Observer

  • 17 posts
  • Corona SDK

How do you know it is not loading? Do you have an example of the error?

 

Adrian

 

We have a backend for tracking errors.

Also our users says what can't run app.

 

 

Builded by Corona v2019.3521

 

errorMessage

 

error loading module 'gameNetwork' from file '/data/app/ru.gmsoft.magazines.skanword_krepost-1/lib/arm64/libgameNetwork.so':

 

stackTrace

 

stack traceback: dlopen failed: library "libcorona.so" not found at error (External Function)

at (Unknown Function) (?:0)

at (Unknown Function) ((tail call))

at gotoScene (?:0)

at ? (?:0)

at (Unknown Function) (?:0)

 

platformVersion: 5.1



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,068 posts
  • Enterprise

This is a really confusing error. .so files are Android NDK shared object library files. These are not part of the GPGS v2 plugin. It's only .jar files.

 

It's almost like where you're some how loading the old Android GameNetworking library (before we pulled it out into a plugin). But if that were the case it would load everywhere and you would have this error all the time.

 

I wonder if maybe you're hitting some rooted devices or something that's not returning "android" as the platform and it's trying to load the old gameNetworking for Android.

 

Can you get more logging on your server side that can get the platform , device name, etc.?

 

Rob



[TOPIC: post.html]
#5

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,219 posts
  • Corona SDK

Do you know what phone that is? The 5.1.



[TOPIC: post.html]
#6

Gent

[GLOBAL: userInfoPane.html]
Gent
  • Observer

  • 17 posts
  • Corona SDK

Can you get more logging on your server side that can get the platform , device name, etc.?
 
 
We are collect that data: appName, appVersionString, architectureInfo, build, model, platform, platformVersion, errorMessage, stackTrace. (by the system.getInfo )
 

 

Do you know what phone that is? The 5.1.

 

It is version code of Android Lollipop.



[TOPIC: post.html]
#7

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,068 posts
  • Enterprise

Hmmm. They all share Android 5.1 and an Unknown architecture information.

 

Let me share this with engineering.

 

Rob



[TOPIC: post.html]
#8

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 852 posts
  • Corona Staff

So, after hours of investigation, I realized that this issue is general, not specific to any native C++ plugin. It seems like Android 5 has some issue with loading native libraries. I am investigating fixes.


  • Gent likes this

[TOPIC: post.html]
#9

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 852 posts
  • Corona Staff

By the way, does anyone here actually have a device which has this issue reliably reproducing? This is Android bug when it fails to load very valid existing libraries. It would be very hard to fix, because code is correct, it just system functions fail when it shouldn't (basically opening library fails, even if library is in place and accessible).

If anyone has a device which has error reproducible and can test APK here and there it would be amazing



[TOPIC: post.html]
#10

Gent

[GLOBAL: userInfoPane.html]
Gent
  • Observer

  • 17 posts
  • Corona SDK

We have only two test devices on 4.1 and 6.0.1 versions of Android.



[TOPIC: post.html]
#11

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 852 posts
  • Corona Staff

I tried on 4 android 5.1/5.1.1 devices (Huawei P8 lite, OnePlus One, Nexus 6 and Galaxy J1), they seem to work fine, so no repro :(

 

Fortunately, this is not only my issue: it seems like lots of people on internet have this, so I may have some idea how to fix it. Bad thing that I didn't find any code which solves same issue: there are several libraries but they all solve Java related issue, not one we have in Corona ( we're using dlopen/dlsym system calls directly from C++).

 

Long story short, we're working on it. Would be easier with a way to test it.



[TOPIC: post.html]
#12

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,219 posts
  • Corona SDK

Vlad i am looking for a phone. I went to 3 pawn shop yesterday with no luck. I also looked on Ebay (for a cheap one) and asked my Indian friends. I don't think the phones you have you will be able to reproduce the issue. These OnePlus One, Nexus 6 and Galaxy J1 are 32bit and this one Huawei P8 lite is using a second gen 64 bit. 

 

Every report so far has been a first generation 64 bit phone running a processor with ARMv8-A. Most of them are running MediaTek processors. At least that is my current theory. I am probably wrong, but I suspect that those phones were working fine in 32 bit mode. Once they switched over to 64 bit they can't load the libraries.

 

I also looked at a way to force 32 bit mode on a specific android version during install. Although you can do it from the command line, I didn't find a way to do it from Google Play store.

 

From the reports that Gent provided:

Lenovo A7020. MediaTek ARMv8-A

Meizu M3 Note. MediaTek ARMv8-A

Cubot X17. MediaTek ARMv8-A

Xiaomi Mi 4C. Snapdragon S808. ARMv8-A

Huawei Tag-L21 MediaTek ARMv8-A


  • vlads likes this

[TOPIC: post.html]
#13

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 852 posts
  • Corona Staff

OK. Attempting to buy one of this bad boys. Shouldn't be too hard.



[TOPIC: post.html]
#14

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 852 posts
  • Corona Staff

OK. I have a bad news/good news situation: first, I bought Meizu M3 Note, with MT6755M and processor and android 5.1. Bad news - everything seems to be working fine if installed from the APK via ADB.

Does anyone have link to the store, so I can test their store bought APK? Also, this device doesn't NOT come with Google Play Store. Or is this just my firmware? I'm not an Android person, how this suppose to work? Do you want to try sending me your APKs to test? You can upload them to mega.nz or something and PM.

dKW1mn9.jpg



[TOPIC: post.html]
#15

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,219 posts
  • Corona SDK

Wow Vlad you went all out with that great phone. I can't find one yet. Did you see this link? It looks like this issue goes way back:

 

https://stackoverflow.com/questions/31978714/android-5-1-load-64-bits-shared-library-failed-due-to-its-depend-library-not-fou

 

Or it might be the same issue.



[TOPIC: post.html]
#16

perflubron

[GLOBAL: userInfoPane.html]
perflubron
  • Contributor

  • 145 posts
  • Corona SDK

Hi Vlad, I sent you version 223.apk in Slack on Friday September 6th. That one was downloaded from Play Store



[TOPIC: post.html]
#17

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 852 posts
  • Corona Staff

Quick update: I bought a device and able to reproduce the crash with provided project. Will try to fix it. Also, I seem to get nasty cold, so it will delay working on it a little.



[TOPIC: post.html]
#18

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,219 posts
  • Corona SDK

Vlad I'll leave it in your capable hands since you are now a few steps ahead of me. I got 2 similar phones but hey had all been upgraded to newer versions of Android, i had been trying to downgrade them with no luck. Good job in finding the phone and being able to replicate it. And hope you feel better soon.



[TOPIC: post.html]
#19

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 852 posts
  • Corona Staff

So... I tried my fix I made yesterday, and it worked. Look out for daily build in next hour or two.



[TOPIC: post.html]
#20

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,068 posts
  • Enterprise

WooHoo!



[TOPIC: post.html]
#21

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,219 posts
  • Corona SDK

awesome



[TOPIC: post.html]
#22

Gent

[GLOBAL: userInfoPane.html]
Gent
  • Observer

  • 17 posts
  • Corona SDK

Thank you Vlad!

 

We are published app on 10% and waiting for logs.



[TOPIC: post.html]
#23

Gent

[GLOBAL: userInfoPane.html]
Gent
  • Observer

  • 17 posts
  • Corona SDK

We are still get errors at our crash logs but users don't write bad reviews.

App was builded at Corona 2019.3525.

 

Logs: https://imgur.com/h5n5sEP



[TOPIC: post.html]
#24

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 852 posts
  • Corona Staff

 I didn't push my changes before making a build (well, I pushed them, but into wrong branch it seems).

New build 3527 is up, but I don't have an access to my Meizu Note 3 to test for several days. If you could push another 10% rollout, that would be wonderful.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: android, gamenetwork, libgamenetwork.so, arm64, libcorona.so