You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/11/18 20:25:42 UTC

[GitHub] [cordova-plugin-file] spinybeast opened a new issue #505: fileEntry.file caused app crash on iOS simulator

spinybeast opened a new issue #505:
URL: https://github.com/apache/cordova-plugin-file/issues/505


   # Bug Report
   
   ## Problem
   I record audio with Cordova-plugin-media and try to save it with Cordova-plugin-file. On real device it works correctly, but I need to run it on simulator. When I run my code on simulator, app crashes without any readable reason
   ### What is expected to happen?
   fileEntry.file works correctly and returns File object
   
   
   ### What does actually happen?
   simulator crashes, I can't debug my code
   
   ### Command or Code
   ```
           // stop recording and save file
           mediaRec.stopRecord()
           mediaRec.release()
   
           window.requestFileSystem(window.LocalFileSystem.TEMPORARY, 0, (fileSystem) => {
             fileSystem.root.getFile(src, {}, (fileEntry) => {
              // next string causes crash
               fileEntry.file((file) => {
                 changeHandler(file)
               })
             })
   
   ```
   ### Environment, Platform, Device
   iOS, MacBook Air 2020, Simulator iPhone SE 2020 (iOS 15)
   
   ### Version information
   Cordova: 10.0.0
   Cordova-plugin-file: 6.0.2
   
   ## Checklist
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org