# Error loading module 'gameNetwork' on some devices

**URL:** <https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903>\
**Category:** Android 64-bit testing\
**Created:** [September 4, 2019, 6:47am UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903 "2019-09-04T06:47:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gent](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/g/a183cd/32.png) [@Gent](https://forums.solar2d.com/u/Gent)\
**Post date:** [September 4, 2019, 6:47am UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/1 "2019-09-04T06:47:09Z")

</div>

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

How we can fix it?

plugins: [https://pastebin.com/1XhJHa7g](https://pastebin.com/1XhJHa7g)

module gpgs.v2 / gameNetwork: [https://pastebin.com/01drCUCw](https://pastebin.com/01drCUCw)

---

<div class="post-metadata">

**Author:** ![agramonte](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@agramonte](https://forums.solar2d.com/u/agramonte)\
**Post date:** [September 4, 2019, 12:40pm UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/2 "2019-09-04T12:40:28Z")

</div>

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

Adrian

---

<div class="post-metadata">

**Author:** ![Gent](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/g/a183cd/32.png) [@Gent](https://forums.solar2d.com/u/Gent)\
**Post date:** [September 5, 2019, 4:00am UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/3 "2019-09-05T04:00:06Z")

</div>

> [@agramonte](#):
>
> 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

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [September 5, 2019, 6:56pm UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/4 "2019-09-05T18:56:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![agramonte](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@agramonte](https://forums.solar2d.com/u/agramonte)\
**Post date:** [September 5, 2019, 11:15pm UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/5 "2019-09-05T23:15:46Z")

</div>

Do you know what phone that is? The 5.1.

---

<div class="post-metadata">

**Author:** ![Gent](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/g/a183cd/32.png) [@Gent](https://forums.solar2d.com/u/Gent)\
**Post date:** [September 6, 2019, 2:26am UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/6 "2019-09-06T02:26:26Z")

</div>

> [@rob](#):
>
> Can you get more logging on your server side that can get the platform , device name, etc.?

app #1: [https://imgur.com/zVmgBj8](https://imgur.com/zVmgBj8)

app #2: [https://imgur.com/lOwOzWc](https://imgur.com/lOwOzWc)

app #3: [https://imgur.com/tLkSDwh](https://imgur.com/tLkSDwh)

We are collect that data: appName, appVersionString, architectureInfo, build, model, platform, platformVersion, errorMessage, stackTrace. (by the **system.getInfo** )

> [@agramonte](#):
>
> Do you know what phone that is? The 5.1.

It is version code of Android Lollipop.

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [September 6, 2019, 3:34am UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/7 "2019-09-06T03:34:35Z")

</div>

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

Let me share this with engineering.

Rob

---

<div class="post-metadata">

**Author:** ![vlads](https://forums.solar2d.com/user_avatar/forums.solar2d.com/vlads/32/29_2.png) [@vlads](https://forums.solar2d.com/u/vlads)\
**Post date:** [September 7, 2019, 7:18am UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/8 "2019-09-07T07:18:39Z")

</div>

So, after hours of investigation, I realized that this issue is general, [not](https://forums.coronalabs.com/topic/76018-zip-plugin-error/#entry401738) specific to any native C++ plugin. It seems like Android 5 has some issue with loading native libraries. I am investigating fixes.

---

<div class="post-metadata">

**Author:** ![vlads](https://forums.solar2d.com/user_avatar/forums.solar2d.com/vlads/32/29_2.png) [@vlads](https://forums.solar2d.com/u/vlads)\
**Post date:** [September 10, 2019, 8:44am UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/9 "2019-09-10T08:44:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Gent](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/g/a183cd/32.png) [@Gent](https://forums.solar2d.com/u/Gent)\
**Post date:** [September 10, 2019, 8:59am UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/10 "2019-09-10T08:59:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vlads](https://forums.solar2d.com/user_avatar/forums.solar2d.com/vlads/32/29_2.png) [@vlads](https://forums.solar2d.com/u/vlads)\
**Post date:** [September 10, 2019, 9:58am UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/11 "2019-09-10T09:58:20Z")

</div>

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](https://github.com/KeepSafe/ReLinker) [libraries](https://github.com/KeepSafe/ReLinker) 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.

---

<div class="post-metadata">

**Author:** ![agramonte](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@agramonte](https://forums.solar2d.com/u/agramonte)\
**Post date:** [September 10, 2019, 1:43pm UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/12 "2019-09-10T13:43:26Z")

</div>

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&nbsp;OnePlus One, Nexus 6 and Galaxy J1 are 32bit and this one&nbsp;Huawei P8 lite is using a second gen 64 bit.&nbsp;

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&nbsp;ARMv8-A

Meizu M3 Note.&nbsp;MediaTek&nbsp;ARMv8-A

Cubot X17.&nbsp;MediaTek&nbsp;ARMv8-A

Xiaomi Mi 4C. Snapdragon S808.&nbsp;ARMv8-A

Huawei Tag-L21&nbsp;MediaTek&nbsp;ARMv8-A

---

<div class="post-metadata">

**Author:** ![vlads](https://forums.solar2d.com/user_avatar/forums.solar2d.com/vlads/32/29_2.png) [@vlads](https://forums.solar2d.com/u/vlads)\
**Post date:** [September 11, 2019, 9:24am UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/13 "2019-09-11T09:24:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vlads](https://forums.solar2d.com/user_avatar/forums.solar2d.com/vlads/32/29_2.png) [@vlads](https://forums.solar2d.com/u/vlads)\
**Post date:** [September 11, 2019, 8:11pm UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/14 "2019-09-11T20:11:22Z")

</div>

OK. I have a bad news/good news situation: first, I bought [Meizu M3 Note](https://i.imgur.com/zVmgBj8.png), 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](https://i.imgur.com/dKW1mn9.jpg)

---

<div class="post-metadata">

**Author:** ![agramonte](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@agramonte](https://forums.solar2d.com/u/agramonte)\
**Post date:** [September 11, 2019, 10:38pm UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/15 "2019-09-11T22:38:01Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![perflubron](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/e56c9b/32.png) [@perflubron](https://forums.solar2d.com/u/perflubron)\
**Post date:** [September 12, 2019, 6:49am UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/16 "2019-09-12T06:49:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vlads](https://forums.solar2d.com/user_avatar/forums.solar2d.com/vlads/32/29_2.png) [@vlads](https://forums.solar2d.com/u/vlads)\
**Post date:** [September 12, 2019, 8:22am UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/17 "2019-09-12T08:22:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![agramonte](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/a/bc79bd/32.png) [@agramonte](https://forums.solar2d.com/u/agramonte)\
**Post date:** [September 12, 2019, 12:31pm UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/18 "2019-09-12T12:31:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vlads](https://forums.solar2d.com/user_avatar/forums.solar2d.com/vlads/32/29_2.png) [@vlads](https://forums.solar2d.com/u/vlads)\
**Post date:** [September 12, 2019, 6:11pm UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/19 "2019-09-12T18:11:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rob](https://forums.solar2d.com/user_avatar/forums.solar2d.com/rob/32/4_2.png) [@rob](https://forums.solar2d.com/u/rob)\
**Post date:** [September 12, 2019, 6:15pm UTC](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903/20 "2019-09-12T18:15:49Z")

</div>

WooHoo!

[Next page](https://forums.solar2d.com/t/error-loading-module-gamenetwork-on-some-devices/149903.md?page=2)
