Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

DocPicker Plugin crashes app after selecting a document
Started by norman.rozental Oct 03 2018 10:26 PM

6 replies to this topic
docpicker documentpicker crash
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

norman.rozental

[GLOBAL: userInfoPane.html]
norman.rozental
  • Enthusiast

  • 86 posts
  • Corona SDK

Hi all / Scott,

 

I'm trying to use the DocPicker Plugin with the sample code provided by Scott (located at https://github.com/scottrules44/docPicker-demo).

 

Tapping on the button to show the DocumentPicker works as expected.  However once a document has been selected and downloaded the app crashes once the DocumentPicker disappears.  The callback function is never called.

 

My iOS version is 11.4.1

 

I've set up the iCloud container and regenerated the provisioning profile as outlined in the plugin docs.

 

All seems to be set up fine.

 

See the 9 second video showing the demo and then crashing the app when I select a file to download:

 

 

 

 

It would be great if you had a chance to take a look and see the cause of the crash.

 

Or if anybody is using the plugin without crashing the app, what is your sample code?

 

Thanks and keep up the great work with your plugins Scott.

 

Norman.



[TOPIC: post.html]
#2

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,822 posts
  • Enterprise

This should be fixed



[TOPIC: post.html]
#3

solca

[GLOBAL: userInfoPane.html]
solca
  • Enthusiast

  • 59 posts
  • Corona SDK

Hi Scott:

 

"Doc Picker Plugin" was working well in my app (iOS 9 and 10) and today this error comes out after doing a build (Maybe for the update?):

 

https://www.phonemas.com/tmp/error-doc-picker.jpg

 

say: "Run time error  module 'plugin.docPicker.lu) does no exist in archive

no field package.preload ['plugin.docPicker'] no file ..........

 

 

Regards,

 

Solca



[TOPIC: post.html]
#4

solca

[GLOBAL: userInfoPane.html]
solca
  • Enthusiast

  • 59 posts
  • Corona SDK

Greetings from Colombia Scott,
 
I have been able to capture the log where the error is displayed (to complement the previously expressed):
Device] ERROR: Runtime error
[Device] APP SUSPENDED
[Device] *** Terminating app due to uncaught exception 'Corona Runtime Error', reason: 'module 'plugin.docPicker' not found:resource (plugin.docPicker.lu) does not exist in archive
[Device] 	no field package.preload['plugin.docPicker']
[Device] 	no file '/var/containers/Bundle/Application/E2C6CEE9-0C6C-4D94-8E87-F948359EBE76/Risk Hunter.app/corona-plugins/plugin/docPicker.lua'
[Device] 	no file '/var/containers/Bundle/Application/E2C6CEE9-0C6C-4D94-8E87-F948359EBE76/Risk Hunter.app/plugin/docPicker.lua'
[Device] 	no file '/var/containers/Bundle/Application/E2C6CEE9-0C6C-4D94-8E87-F948359EBE76/Risk Hunter.app/plugin/docPicker.lua'
[Device] 	no file '/var/containers/Bundle/Application/E2C6CEE9-0C6C-4D94-8E87-F948359EBE76/Risk Hunter.app/corona-plugins/plugin/docPicker.so'
[Device] 	no file './plugin/docPicker.so'
[Device] 	no file '/var/containers/Bundle/Application/E2C6CEE9-0C6C-4D94-8E87-F948359EBE76/Risk Hunter.app/plugin/docPicker.so'
[Device] 	no file '/var/containers/Bundle/Application/E2C6CEE9-0C6C-4D94-8E87-F948359EBE76/Risk Hunter.app/corona-plugins/plugin.so'
[Device] 	no file './<\M-b\M^@\M-&>


[TOPIC: post.html]
#5

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,822 posts
  • Enterprise

This has been patched



[TOPIC: post.html]
#6

solca

[GLOBAL: userInfoPane.html]
solca
  • Enthusiast

  • 59 posts
  • Corona SDK

Scott, Many many thanks.
 
I have examined the behavior in iOS 9.3.5 & 10.3.3 and it works perfectly !!! (Now i'm trying to get a device with iOS 11x)
 
Have you considered publishing this plugin in the marketplace commercially? It is an excellent job. It really is very good and easy to use.
 
Thanks again for the support.
 
Solca


[TOPIC: post.html]
#7

norman.rozental

[GLOBAL: userInfoPane.html]
norman.rozental
  • Enthusiast

  • 86 posts
  • Corona SDK

Thanks Scott.  When importing, does the file get copied to the system.TemporaryDirectory of the application?

 

This is an example output I get when calling the ev.urls:

file:///private/var/mobile/Containers/Data/Application/873-D309-4ECF-84CD-1CACFA54B60A/tmp/com.docpickertester.testing-Inbox/00000935419.zip

Is the above path the TemporaryDirectory of the application?




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: docpicker, documentpicker, crash