-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on iOS Device #139
Comments
Hi @michitosh, Could you provide more details on the iOS version and device used? And how the plugin has been initialized and is being used in the code? We might not be getting into this debug right now but a PR with the necessary fixes will be most welcome and greatly appreciated. Thanks, |
Hi @azharbeebeejaun , Cordova v10.0.0 The Plugin is initialized in the device ready listener: `document.addEventListener('deviceready', function () { [...] });` The payload is added like this: db.executeSql('SELECT * FROM XXXX WHERE draft_id=?', [SQLiteId], function (rs) { |
I've just got the same issue. The iOS version is the 16.1.1 on a iPhone 13 Pro Max. Here's the error and how is initialized and used. Error:
Init:
How is used:
The upload works fine, but at the end, the error message is presented and the app freezes/crashes. |
Hello @matheuscas , Can you send me your version of background upload you are using. |
Hey @zfir , thanks for asking, here my dependencies:
|
Hello @matheuscas, You should install this version : Also make sure the version is |
Hey @zfir , one more information that maybe can help you, I believe. Here the steps:
I hope that this helps you. |
Hello @matheuscas, Can you try this and let me know if you have the same error |
@zfir Problem solved. Since I'm using Capacitor, I npm installed
|
The App crashes on iOS when FileUpload Instance tries to start more then one payload at once.
If only one payload is started or if I wait 10 Secunds until I init the second payload everything works fine.
Uploader is set to {parallelUploadsLimit: 5}
Below I've added the log from XCode.
I verified that the Files are stored and can be accessed.
This is an example file path:
file:///var/mobile/Containers/Data/Application/54190526-4123-40BC-AC1C-80914BF94EEA/Library/files/my_folder/1619733997937.jpg
2021-04-29 18:08:46.639513+0200 GEOPLORE[5587:1210933] will start <FileUpload: 0x28080fc60> {stopped, DA931839-EC8C-435C-9B8C-754F4472DAE8}
2021-04-29 18:08:46.645780+0200 GEOPLORE[5587:1210933] will save mutable info for <FileUpload: 0x28080fc60> {started, DA931839-EC8C-435C-9B8C-754F4472DAE8}
2021-04-29 18:08:46.647102+0200 GEOPLORE[5587:1210933] did start <FileUpload: 0x28080fc60> {started, DA931839-EC8C-435C-9B8C-754F4472DAE8}
2021-04-29 18:08:46.647147+0200 GEOPLORE[5587:1210933] THREAD WARNING: ['FileTransferBackground'] took '89.150879' ms. Plugin should use a background thread.
2021-04-29 18:08:46.647807+0200 GEOPLORE[5587:1210933] -[__NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0xa14ceb37ed38b2c9
2021-04-29 18:08:46.649332+0200 GEOPLORE[5587:1210933] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0xa14ceb37ed38b2c9'
*** First throw call stack:
(0x18d1d3128 0x1a0ee6480 0x18d0e2138 0x18d1d5784 0x18d1d79ac 0x1047bbe4c 0x1047b8e34 0x104948070 0x10494f784 0x104950aac 0x198de0300 0x198fdd0e4 0x199237774 0x199236e58 0x198bdc2ec 0x198f2f8f4 0x198bbe7a4 0x198bbe0b8 0x196c85478 0x196c86270 0x18d152780 0x18d152680 0x18d1519d4 0x18d14bef0 0x18d14b6a8 0x1a37fb570 0x18fa69370 0x18fa6e8ec 0x104655f6c 0x18ce2a140)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0xa14ceb37ed38b2c9'
terminating with uncaught exception of type NSException
The text was updated successfully, but these errors were encountered: