Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Zip plugin error
Started by davidgmonical Aug 08 2019 08:32 PM

19 replies to this topic

Best Answer vlads , 06 September 2019 - 11:16 PM

Hello! After hours of investigation I realized that this is not a zip plugin issue. It seems we've hit Android 5 issues with loading arm64 libraries in general. I'm working on a fix, but lets move this conversation to this topic https://forums.coronalabs.com/topic/76166-error-loading-module-gamenetwork-on-some-devices/

[TOPIC CONTROLS]
This topic is locked This topic is locked
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

davidgmonical

[GLOBAL: userInfoPane.html]
davidgmonical
  • Enthusiast

  • 98 posts
  • Corona SDK

After upgrading to the latest build (3512), I'm seeing a new error on app startup. It seems to have to do with the zip plugin.

 

Here's the error log:

https://pastebin.com/MWFradLr

 

And the build.settings:

https://pastebin.com/69TDYtrv

 

Thanks!



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,393 posts
  • Enterprise

What device are you testing this on?

 

Rob



[TOPIC: post.html]
#3

davidgmonical

[GLOBAL: userInfoPane.html]
davidgmonical
  • Enthusiast

  • 98 posts
  • Corona SDK

The device is a Galaxy S3 (4.4.2 and API level 19)



[TOPIC: post.html]
#4

davidgmonical

[GLOBAL: userInfoPane.html]
davidgmonical
  • Enthusiast

  • 98 posts
  • Corona SDK

Any follow up on this?



[TOPIC: post.html]
#5

akao

[GLOBAL: userInfoPane.html]
akao
  • Contributor

  • 372 posts
  • Corona SDK

For what it's worth. We just tested with the latest 2019.3515 build and zip is working for us on our Samsung S8 test device. 



[TOPIC: post.html]
#6

davidgmonical

[GLOBAL: userInfoPane.html]
davidgmonical
  • Enthusiast

  • 98 posts
  • Corona SDK

So is this another issue with older devices? The last issue I had was also occurring only on older devices.



[TOPIC: post.html]
#7

perflubron

[GLOBAL: userInfoPane.html]
perflubron
  • Contributor

  • 149 posts
  • Corona SDK

I published a small rollout yesterday and started getting various crash reports for the zip plugin. I only have a small snippets logged, but they all complain about missing symbol "srand".

error loading module plugin.zip from file dataapp-libse.appfamily.dinoadventure-1libplugin.zip.so:
    dlopen failed: cannot locate symbol srand referenced by libplugin.zip.so...

Corona build 2019.3516

 

Out of 62 reports so far, the affected versions are:

 

7.0
4.4.4
4.4.2
4.1.2
4.0.4
 
Of which the majority of reports are from version 4.4.4.
 
The affected versions represent roughly a third of the active installs for the app (170K), so it is a significant amount of users.
 
Most of my apps use the zip plugin, so for me this issue is a showstopper for 64-bit adoption.
 
Hope it is an easy fix :)


[TOPIC: post.html]
#8

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,393 posts
  • Enterprise

srand, is the standard Unix C library call to seed a random number generator. It's very odd that would be missing because it either means a corrupt standard C library on that device or it's missing, but if it was missing, just about every other C-lib call would be blowing up.

 

Very odd. And if it was a code issue, it would blow up everywhere.

 

Rob



[TOPIC: post.html]
#9

akao

[GLOBAL: userInfoPane.html]
akao
  • Contributor

  • 372 posts
  • Corona SDK

@RobMiracle Seems like I spoke too soon. We recently did a release using Corona 2019.3515 where we released the AAB bundle, and very quickly we started receiving complaints from users about the zip. Attached is a screenshot of the error msg, 

 

https://www.dropbox.com/s/ek70b1u4oylh2x4/ZipError.png?dl=0

```

Runtime Error

error loading module `plugin.zip` from file `/data/app-lib/com.sx.puzzingo-1/libplugin.zip.so`:

```

 

We are trying to get more info on devices & OS, but I don't have that info right now. We do use zip files extensively within our app, so this is a showstopper for us as well. It definitely seems like a real issue with bundle build. Can you investigate? 



[TOPIC: post.html]
#10

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,393 posts
  • Enterprise

There was a discussion this morning on the community slack. The plugin has been fixed. You can try building again.

 

Rob



[TOPIC: post.html]
#11

akao

[GLOBAL: userInfoPane.html]
akao
  • Contributor

  • 372 posts
  • Corona SDK

OK - I just see it. Thanks! Do I need to update my Corona version? Or is this just a server-side fix on your end? 



[TOPIC: post.html]
#12

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,393 posts
  • Enterprise

It should be a server-side fix.

 

Rob



[TOPIC: post.html]
#13

perflubron

[GLOBAL: userInfoPane.html]
perflubron
  • Contributor

  • 149 posts
  • Corona SDK

I published an AAB using 2019.3517. Good news and bad news. 

 

Good: No more srand complaints. 

 

Bad: I have so far 24 reports of zip plugin failures, all for versions 5.x. The error is now complaining about libcorona.so

 

error loading module plugin.zip from file dataappse.appfamily.puzzle.super2.free-1libarm64libplugin.zip.so:
dlopen failed: library libcorona.so not found

error loading module plugin.zip from file dataappse.appfamily.puzzle.super2.free-2libarm64libplugin.zip.so:
	dlopen failed: could not load library libcorona.so needed by dataappse.appfamily.puzzle.super2.free-2libarm64libplugin.zip.so caused by library libcorona.so not found
Android versions affected (so far):
5.0.1
5.0
5.1
5.0.2
 
 
These errors were generated by 5 device models:
Lenovo TAB 2 A8-50L
ALE-L21
HUAWEI ***-L01
A1601
vivo Y51L


[TOPIC: post.html]
#14

perflubron

[GLOBAL: userInfoPane.html]
perflubron
  • Contributor

  • 149 posts
  • Corona SDK

Tried uploading an APK instead of AAB on August 29. Update published today, Zip plugin still broken



[TOPIC: post.html]
#15

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 972 posts
  • Corona Staff

Is the problem same? Like, not working on 32bit devices?

[TOPIC: post.html]
#16

perflubron

[GLOBAL: userInfoPane.html]
perflubron
  • Contributor

  • 149 posts
  • Corona SDK

It's the same as what I reported in my post on August 26

 

The devices are reporting system.getInfo("architectureInfo") as "unknown"



[TOPIC: post.html]
#17

perflubron

[GLOBAL: userInfoPane.html]
perflubron
  • Contributor

  • 149 posts
  • Corona SDK

There are two models reporting the error thus far:

 

A37f

CPH1605

 

The A37f appears to have a Qualcomm Snapdragon 410:

https://www.mysmartprice.com/mobile/oppo-a37f-msp11047

 

Which supposedly has both 32 and 64-bit support:

https://www.qualcomm.com/products/snapdragon-processors-410



[TOPIC: post.html]
#18

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 972 posts
  • Corona Staff

Got it. Can you please do the following for both devices (make sure only 1 device is plugged in, no running Android Simulators etc)

1. Download google's bundle tool https://github.com/google/bundletool/releases

2. plug in a device and run following:

java -jar ~/Downloads/bundletool-all-0.10.2.jar get-device-spec --output=~/Desktop/device1.json

3. Repeat for other devices, replacin device1 with other number/names for different devices.

4. Upload new files from Desktop somewhere. I assumed macOS, but windows would have same command line, except path for jar and output dir.



[TOPIC: post.html]
#19

perflubron

[GLOBAL: userInfoPane.html]
perflubron
  • Contributor

  • 149 posts
  • Corona SDK

I'm sorry, these are not my devices. I have a crash-reporting system that logs Lua errors to my database. So, for example, for that device I just have what was reported, i.e.:

 

model: A37f  // system.getInfo("model")

platVersion: 5.1.1 // system.getInfo("platformVersion")

coronaVersion: 2019.3519 // system.getInfo("build")

arch: Unknown // system.getInfo("architectureInfo")



[TOPIC: post.html]
#20

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 972 posts
  • Corona Staff

  Best Answer

Hello! After hours of investigation I realized that this is not a zip plugin issue. It seems we've hit Android 5 issues with loading arm64 libraries in general. I'm working on a fix, but lets move this conversation to this topic https://forums.coronalabs.com/topic/76166-error-loading-module-gamenetwork-on-some-devices/




[topic_controls]
[/topic_controls]