Menu

App crashes on simulator but runs ok on device

Kaarigar
2013-08-31
2013-09-04
  • Kaarigar

    Kaarigar - 2013-08-31

    My app which I upgraded to the latest code now crashes on the simulator but runs ok on the device. The crash happens after the code exits from applicationDidFinishLaunchingWithOptions() in FMX.Platform.iOS.

    Any idea why this happens? I am really frustrated. The app uses TDPFUITableView in several forms and I had to force the update of the forms because the signature of the OnItemSelect has changed. Please help!

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-08-31

    Hi Kaarigar

    Download last source code from [code] section.

    On the your Mac run Finde->Applications->Utilities->Console.app
    select All messages.

    Then deploy your app on the simulator with debug mode and see what is the last log message.

    Or if you want send me your app for test.

    Regards

     

    Related

    Code: code


    Last edit: Babak Yaghoobi 2013-08-31
    • Kaarigar

      Kaarigar - 2013-08-31

      I have attached the complete log - I don;t see anything significant but it might make sense to you.

       
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-08-31

    Hi

    The last log message says: exited abnormally with exit status 231

    231 = Too many nested exceptions

    Sorry but i don't know what happen your app!, must be trace, to find the problem.

    Regards

     
    • Kaarigar

      Kaarigar - 2013-08-31

      I did trace - there is no clue because the exception comes from the guts somewhere.
      BTW, there is a long list of numbers in the log - are they being logged by the DPF?

       
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-08-31

    Hi Kaarigar

    Try deploy your app in Release mode (not debug mode) on the simulator.

    Regards

     
    • Kaarigar

      Kaarigar - 2013-08-31

      Tried this as well - has no effect - it still crashes and log is very short (dur to release mode).

       
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-09-01

    Hi

    You can delete portions of your program, then try, to find the problem.
    If the problem still remains, then delete another portions of the app and so on.

    regards

     
  • Kaarigar

    Kaarigar - 2013-09-01

    I recreated the form and the unit that had TDPFUIViewController and was able to bring some consistency in behavior - now it crashes on both, simulator and device as well. I also found out that if I do not implement the OnItemSelect handler, then the app doesn't crash. Does that give any more ideas to think about to help you investigate this further? Thanks!

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-09-01

    Hi Kaarigar

    can you send me your project for testing.(you can remove all your self functions and private units, stay only forms with UI).

    Regards

     
    • Kaarigar

      Kaarigar - 2013-09-01

      I will try and do that -

       
  • Fenistil

    Fenistil - 2013-09-01

    Kaarigar: I had the same problem when I clicked a TableViewItem. The problem was, that I implemented the OnClick handler before v4.0.0 and because the TableItemSelect event changed in that version, my app crashed if I touch an Item (the Delphi didn't recognized that the parameter list has changed :/ ). So I removed the old event handler, created a new one and copied the source to it. Then the problem has gone. I hope it helps.

    Greetings

     
    • Kaarigar

      Kaarigar - 2013-09-01

      I knew that the OnItemClick signature has changed - and I have already removed the old signature and replaced with a new one already (see my post above). It still crashes both on device and simulator.

       
  • Kaarigar

    Kaarigar - 2013-09-01

    The app crashes at line 1917 in DPF.iOS.UITableView.pas where it calls tableView.cellForRowAtIndexPath(...) - sorry can't attach image.

     
  • Kaarigar

    Kaarigar - 2013-09-02

    Please see Ticket # 106.

     
  • Kaarigar

    Kaarigar - 2013-09-04

    I found one more issue: please see Ticket # 119.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.