Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Zip plugin hanging with no information shown
Started by davida6 Apr 15 2017 11:49 AM

3 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

davida6

[GLOBAL: userInfoPane.html]
davida6
  • Enthusiast

  • 62 posts
  • Corona SDK

Is there anything new with the zip plugin?

 

I have used it before, with success, now it just hangs.

I'm using 2017.3025

 

The plugin is identified in build.settings

    plugins =
        {
            ["plugin.zip"] =
            {
                publisherId = "com.coronalabs"
            },
            ["plugin.OneSignal"] =
            {
                publisherId = "com.onesignal",
            },
            ["plugin.google.play.services"] =
            {
                publisherId = "com.coronalabs",
                supportedPlatforms = { android=true }
            },
       },

and

 

called in the source:

			local options = {
				zipFile = event.response.filename,
				zipBaseDir = system.TemporaryDirectory,
				dstBaseDir = system.DocumentsDirectory,
				listener = unzipAppIcon,
			}

			stopSpinner()
print("downloadAppIcon: got file: going unzip")
			zip.uncompress( options )
print("downloadAppIcon: back from uncompress")			

I get the first print - going unzip, but never the 2nd.

I also never get into the listener.

 

thoughts?

 

thanks in advance



[TOPIC: post.html]
#2

davida6

[GLOBAL: userInfoPane.html]
davida6
  • Enthusiast

  • 62 posts
  • Corona SDK

boy do I feel stupid.   

if you dont require it - it wont run.

 

a suggestion for the engineers: could we get a message in logcat (tied to I/Corona) that shows when a runtime error is thrown.  This didnt stop the app, other areas kept working. I'm assuming that it is running in a background task and when dying, doesnt impact the ui thread.

 

thanks



[TOPIC: post.html]
#3

Sphere Game Studios

[GLOBAL: userInfoPane.html]
Sphere Game Studios
  • Contributor

  • 970 posts
  • Corona SDK

You should of got a message like attempt to index global 'zip' (a nil value) if you hadn't required it



[TOPIC: post.html]
#4

davida6

[GLOBAL: userInfoPane.html]
davida6
  • Enthusiast

  • 62 posts
  • Corona SDK

I thought so too.  Usually you see something like that.  This time, though, it only showed in the logcat after the last labeled Corona message - which I found by capturing the entire logcat stream and walking it.  That's why I thought it had something to do with being in the plugin.




[topic_controls]
[/topic_controls]