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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
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
I have attached the complete log - I don;t see anything significant but it might make sense to you.
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
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?
Hi Kaarigar
Try deploy your app in Release mode (not debug mode) on the simulator.
Regards
Tried this as well - has no effect - it still crashes and log is very short (dur to release mode).
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
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!
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
I will try and do that -
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
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.
The app crashes at line 1917 in DPF.iOS.UITableView.pas where it calls tableView.cellForRowAtIndexPath(...) - sorry can't attach image.
Please see Ticket # 106.
I found one more issue: please see Ticket # 119.