locked
IOS crash log RRS feed

  • Question

  • User389768 posted

    Hello, my app rejected after review , i have try to symbolicate with a tool on windows. But it wasn't that successful i couldn't understand completely and last part is still hexadecimal . I couldn't find any crash at simulators. Only thing i noticed ( I am not sure that is it cause of simulator or my app ), sometimes when i debug/deploy my app to simulator it is not opening directly, it closes after launch screen and i click then it runs normally.

    Part of crash log (I use EntityFrameworkCore.Sqlite) :

    AppStoreTools: 11E707 Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: com.fmgyazilim.speadread [3928]

    Date/Time: 2020-08-04 16:18:26.4069 -0700 Launch Time: 2020-08-04 14:43:53.6244 -0700 OS Version: iPhone OS 13.6 (17G68) Release Type: User Baseband Version: n/a Report Version: 104

    Exception Type: EXCCRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXCCORPSE_NOTIFY Triggered by Thread: 0

    Thread 0 name: tid407 Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystemkernel.dylib 0x0000000189b3edf0 0x189b18000 + 159216 1 libsystempthread.dylib 0x0000000189a5e948 0x189a5c000 + 10568 2 libsystemc.dylib 0x00000001899edc24 0x189978000 + 482340 3 libsystemc.dylib 0x00000001899edbb0 0x189978000 + 482224 4 SpeedRead.iOS 0x00000001022e7498 undefined 5 SpeedRead.iOS 0x00000001022dcbbc _xamaringetblockdescriptor 6 SpeedRead.iOS 0x00000001021a25c8 sqlite3rekeyv2 7 SpeedRead.iOS 0x0000000102137600 _sqlite3rekeyv2 8 SpeedRead.iOS 0x0000000102135fe8 _sqlite3rekeyv2 9 SpeedRead.iOS 0x000000010212bdc8 _sqlite3rekeyv2 10 SpeedRead.iOS 0x00000001006a26ac _sqlite3rekeyv2 11 SpeedRead.iOS 0x00000001004121bc _sqlite3rekeyv2 12 SpeedRead.iOS 0x00000001004199e4 _sqlite3rekeyv2 13 SpeedRead.iOS 0x00000001007690cc _sqlite3rekeyv2 14 SpeedRead.iOS 0x0000000100662390 _sqlite3rekeyv2 15 SpeedRead.iOS 0x0000000102149200 _sqlite3rekeyv2 16 SpeedRead.iOS 0x00000001022046dc _sqlite3rekeyv2 17 SpeedRead.iOS 0x0000000102207f40 _sqlite3rekeyv2 18 SpeedRead.iOS 0x000000010027fa14 _sqlite3rekeyv2 19 SpeedRead.iOS 0x0000000100280744 _sqlite3rekeyv2 20 Foundation 0x000000018a15cf94 0x18a01b000 + 1318804 21 CoreFoundation 0x0000000189cd2d14 0x189c26000 + 707860 22 CoreFoundation 0x0000000189cd2c68 0x189c26000 + 707688 23 CoreFoundation 0x0000000189cd23c4 0x189c26000 + 705476 24 CoreFoundation 0x0000000189ccd1fc 0x189c26000 + 684540 25 CoreFoundation 0x0000000189cccbc8 0x189c26000 + 682952 26 GraphicsServices 0x00000001940ae5cc 0x1940ab000 + 13772 27 UIKitCore 0x000000018de7f744 0x18d411000 + 10938180 28 SpeedRead.iOS 0x00000001007b1a28 _sqlite3rekeyv2 29 SpeedRead.iOS 0x00000001007200c0 _sqlite3rekeyv2 30 SpeedRead.iOS 0x0000000100720044 _sqlite3rekeyv2 31 SpeedRead.iOS 0x00000001002a5044 _sqlite3rekeyv2 32 SpeedRead.iOS 0x0000000100662390 _sqlite3rekeyv2 33 SpeedRead.iOS 0x0000000102149200 _sqlite3rekeyv2 34 SpeedRead.iOS 0x00000001022046dc _sqlite3rekeyv2 35 SpeedRead.iOS 0x000000010220a934 _sqlite3rekeyv2 36 SpeedRead.iOS 0x00000001021277b8 _sqlite3rekeyv2 37 SpeedRead.iOS 0x00000001022e45bc undefined 38 SpeedRead.iOS 0x00000001002a4fa4 _sqlite3rekey_v2 39 libdyld.dylib 0x0000000189b49384 0x189b48000 + 4996 . . some other threads here . . Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000 x4: 0x0000000000000000 x5: 0x0000000000989680 x6: 0x0000000000000032 x7: 0x0000000000000600 x8: 0x00000000000005b9 x9: 0x2de21d8023b87b13 x10: 0x00000000000003e8 x11: 0x0000000000bf3d01 x12: 0x0000000150024000 x13: 0x0000000000004009 x14: 0x0000000150020000 x15: 0x0000000000003fff x16: 0x0000000000000148 x17: 0x00000001caad2a48 x18: 0x0000000000000000 x19: 0x0000000000000006 x20: 0x0000000000000407 x21: 0x0000000102acd960 x22: 0x0000000151b04720 x23: 0x0000000153020350 x24: 0x000000015002cf80 x25: 0x00000001028b24e8 x26: 0x000000015301ea00 x27: 0x0000000000000009 x28: 0x000000010066238f fp: 0x000000016fcc04c0 lr: 0x0000000189a5e948 sp: 0x000000016fcc04a0 pc: 0x0000000189b3edf0 cpsr: 0x40000000 esr: 0x56000080 Address size fault

    Codes at AppDelegate.cs

    ``` [Register("AppDelegate")]

    public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
    {
    
        // You have 17 seconds to return from this method, or iOS will terminate your application.
    
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            SQLitePCL.Batteries_V2.Init();
    
            global::Xamarin.Forms.Forms.Init();
            var libPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments),
                "..",
                "Library",
                "data");
    
            if (!Directory.Exists(libPath))
            {
                Directory.CreateDirectory(libPath);   
            }
            var dbPath = Path.Combine(libPath,"database.sqllite");
            LoadApplication(new App(dbPath));
            return base.FinishedLaunching(app, options);
        }
    }
    

    ```

    Sunday, August 9, 2020 8:29 PM

All replies

  • User369979 posted

    Only thing i noticed ( I am not sure that is it cause of simulator or my app ), sometimes when i debug/deploy my app to simulator it is not opening directly This closing means it crashes. Try to uninstall the application before debugging. It appears that maybe you are trying to store data on a non-existed path. Moreover, we could get the library path directly like:

    var libaryPath = NSSearchPath.GetDirectories(NSSearchPathDirectory.LibraryDirectory, NSSearchPathDomain.User, true).FirstOrDefault();
    
    Monday, August 10, 2020 7:24 AM
  • User389768 posted

    @LandLu said:

    Only thing i noticed ( I am not sure that is it cause of simulator or my app ), sometimes when i debug/deploy my app to simulator it is not opening directly This closing means it crashes. Try to uninstall the application before debugging. It appears that maybe you are trying to store data on a non-existed path. Moreover, we could get the library path directly like:

    var libaryPath = NSSearchPath.GetDirectories(NSSearchPathDirectory.LibraryDirectory, NSSearchPathDomain.User, true).FirstOrDefault();
    

    i think i am already checking that if path exist or not with statement . i tried to get path like you suggested but it still crashes. Do you have any suggestions, how can i find the problem ?

    Tuesday, August 11, 2020 3:22 PM
  • User369979 posted

    Can you reproduce it in debug mode? All I guess what could cause the crash from the code is that you may try to access or write to an empty file. It's better to stably reproduce this issue in debug mode and post the exception here. I can't spot the issue from the code/messages you posted above.

    Wednesday, August 12, 2020 9:21 AM
  • User389768 posted

    @LandLu said: Can you reproduce it in debug mode? All I guess what could cause the crash from the code is that you may try to access or write to an empty file. It's better to stably reproduce this issue in debug mode and post the exception here. I can't spot the issue from the code/messages you posted above.

    Thank for your answering, I can't see error message at debug mode it doesn't give me an exception, I record a video for explain the situation : https://streamable.com/rufqie Codes here : https://github.com/fatihmgenc/SpeedRead Also i added Debug.WriteLine in cstor of app for observe dbPath but it doesn't print anything.

    Thursday, August 13, 2020 5:32 PM
  • User369979 posted

    I tried your sample on my side but the crash didn't happen: Could you please post the specific steps to reproduce the error? However, I found your application hasn't stopped yet from your videos. Try to click the continue button: to reveal the exception.

    Friday, August 14, 2020 7:12 AM
  • User389768 posted

    @LandLu said: I tried your sample on my side but the crash didn't happen: Could you please post the specific steps to reproduce the error? However, I found your application hasn't stopped yet from your videos. Try to click the continue button: to reveal the exception.

    The debugging mode is not stopping , continue button is not active. It is like picture you send. That is why actually i write at the beginning that i am not sure it is an crash or not or just a problem of my simulator. I am not sure if i understood this "specific steps" you asked. :( .

    Friday, August 14, 2020 9:40 AM
  • User369979 posted

    You could try to test this with another simulator. But what you demonstrated in the video is so weird. The simulator should not return to the home desk without any errors.

    Friday, August 14, 2020 9:45 AM
  • User389768 posted

    I find why it backs to home screen. somehow it is because of Xamarin hot reload. I disabled, now it is normal.

    The point is still there is not crash at the app, idknw how apple succeed that but at the explanation : "Your app crashed on iPhone and iPad running iOS 13.6 on WiFi when we tap on “Metin Duzenle” and “Egzersiz” buttons."

    At the crash log files(files they send) , "thread 0" looks crashed

    Friday, August 14, 2020 1:25 PM
  • User389768 posted

    Operations at the pages while opening :

    At DbContext ("Metins" is DbSet) :

    ``` public async Task> GetAllMetinAsync(bool forceRefresh = false) { var AllMetins = await Metins.ToListAsync().ConfigureAwait(false); return AllMetins;

        }
    

    ```

    Friday, August 14, 2020 2:05 PM
  • User369979 posted

    I still have to say you need to reproduce it first on your side. And then we could talk about what causes this.

    Tuesday, August 18, 2020 8:33 AM