Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24060] iOS crashing without any log on SDK 6.0.0

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2016-11-11T20:42:27.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sn/a
ComponentsiOS
LabelsCLI, SDK6.0.0, Titanium, iOS, listView, netw
ReporterCaio Perdona
AssigneeHans Knöchel
Created2016-10-20T21:41:43.000+0000
Updated2017-03-24T18:37:42.000+0000

Description

Hi guys. My app has a listView that has 3 sections. Each section has a button to trigger a request that populates the list with specific data. It was working fine on SDK 5.X.X, but now it is crashing kind of randomly without showing any logs on Titanium CLI using SDK 6.0.0 beta. Attached is the log report I exported from Xcode, but logs are not symbolicated (it appears only titanium logs are not symbolicated). Any help on this issue? Thanks in advance!

Attachments

FileDateSize
PiniOn 01-11-16 13-32.crash2016-11-02T07:00:24.000+000067473
PiniOn 20-10-16 19-06.crash2016-10-20T21:34:55.000+000053619
PiniOn 28-10-16 18-12.crash2016-11-02T07:00:13.000+000053532
PiniOn 28-10-16 19-09.crash2016-11-02T07:00:22.000+000061166

Comments

  1. Hans Knöchel 2016-10-21

    Reading the crash data, it looks like something to do with http requests (Ti.Network.HTTPClient) or remote images in your list view. - Do you have those? - Does this only happen on device? - Does this work with other iOS versions? - Do you use kroll-thread or main-thread? And please provide a demo-code to reproduce. Otherwise it will be hard to track down your use-case. Thx!
  2. Caio Perdona 2016-10-21

    Hi Hans. No, I don't have remote images in my listView. This happens on simulator and on iOS 9.3 as well. I'm not sure if I run main-thread. How can I be sure of that? I will build a demo code for since I don't have permission to share the actual code with you, but it is a simple listView with template, populated via a json response from a endpoint in our API. It was working fine until we bumped to 6.0.0. Thanks in advance.
  3. Hans Knöchel 2016-10-21

    Yes, you said that before. So what we need is the snippet of code that is causing it. Usually you just isolate the issue and recreate a reproducible test-case fir that. You can check whether you use main-thread in your tiapp.xml by checking if you have the run-on-main-thread property set to true.
  4. Caio Perdona 2016-10-21

    I don't even have this property on my tiapp.xml. Will write a test-case and send you asap.
  5. Chee Kiat Ng 2016-10-26

    [~perdona] any updates? :) actually i'm pretty sure there's dSYM file generated. did you check inside the generated build folder?
  6. Caio Perdona 2016-10-26

    @Chee Hi! I'm trying to isolate the issue using the less code possible. Still couldn't reproduce outside the app. Where exactly inside the generated build folder?
  7. Chee Kiat Ng 2016-10-27

    [~perdona] <your project folder>/build/iphone/build/Products/Debug-iphonesimulator/
  8. Caio Perdona 2016-10-27

    Yeah, found it. How do I upload it to you guys?
  9. Chee Kiat Ng 2016-10-27

    Oh please don't upload it to us. you have to use it in combination with your crash file to symbolicate it. check out this link: https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/AnalyzingCrashReports/AnalyzingCrashReports.html https://developer.apple.com/library/content/technotes/tn2151/_index.html
  10. Caio Perdona 2016-10-27

    Thanks Chee. Will update you guys asap.
  11. Caio Perdona 2016-10-28

    Guys, I got a fully symbolicated log. Should I upload it to you?
  12. Chee Kiat Ng 2016-10-29

    [~perdona] sure, I don't think there's any private information in the log. If there is, you can blanko them somehow.
  13. Caio Perdona 2016-10-31

    How can I attach files on comments?
  14. Chee Kiat Ng 2016-11-01

    [~perdona] you should be able to attach it to the ticket itself rather than comments. otherwise, you can email to me.
  15. Caio Perdona 2016-11-01

    @Chee Kiat Ng Just emailed them to you.
  16. Hans Knöchel 2016-11-01

    [~perdona] Have you been able to isolate the issue so far? Without that, we won't be able to do anything. Thx!
  17. Caio Perdona 2016-11-01

    @Hans Knoechel Actually I haven't. App is crashing in several circumstances, not only on the listView. I thought the logs would be enough and more accurate for you. I tried to isolate the issue, but I couldn't get it to crash in a generic snippet... If you really need it, I can work on that.
  18. Chee Kiat Ng 2016-11-02

    I have attached the crash logs. It's going to be mostly guess work, so if [~perdona] you can isolate the issue, it'll be incredibly helpful. We haven't seen something like this from other folks.
  19. Hans Knöchel 2016-11-11

    Resolving as a duplicate of TIMOB-24139 which has been fixed just today. Just found out that the log
        5   PiniOn                        	0x100171978 -[ImageCacheEntry imageForSize:scalingStyle:] (ImageLoader.m:157)
        6   PiniOn                        	0x100102d38 +[TiUtils loadBackgroundImage:forProxy:] (TiUtils.m:1994)
        7   PiniOn                        	0x100140a3c -[TiUIButton setBackgroundImage_:] (TiUIButton.m:268)
        
    was exactly what occurred in the other ticket as well. Please try the latest 6.0.0 build which will already include the fix. Thx!
  20. Lee Morris 2017-03-24

    Closing ticket as duplicate with reference to the linked issues.

JSON Source