Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1487] crash TiBase : TiThreadProcessPendingMainThreadBlocks

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2015-02-03T15:16:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsTCSupportTriage, crash, ios, iphone
ReporterJonathan
AssigneeMauro Parra-Miranda
Created2014-09-10T16:50:59.000+0000
Updated2016-03-08T07:37:56.000+0000

Description

We have a recurring error and we cannot reproduce this bug, 90% of errors coming from Crashlytics are this one for iOS platform : {quote} TiBase.m line 279 __destroy_helper_block_187 Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0xc0000010 0 libobjc.A.dylib 0x3b2ca7ea objc_release + 9 1 libsystem_blocks.dylib 0x3b7f2ac5 _Block_release + 216 2 MyApp 0x000dd697 __destroy_helper_block_187 (TiBase.m:279) 3 libsystem_blocks.dylib 0x3b7f2ac5 _Block_release + 216 4 MyApp 0x000dd839 TiThreadProcessPendingMainThreadBlocks (TiBase.m:366) {quote} To fix this error we change TiBase.m and TiThreadProcessPendingMainThreadBlocks method https://github.com/appcelerator/titanium_mobile/pull/6045 : We use autorelease for "thisAction" and we replace NSAutoreleasePool with new syntax : @autoreleasepool. Do you think this fix is appropriate? Thanks for your help

Comments

  1. Mauro Parra-Miranda 2014-09-10

    Hello, do you have any code that can reproduces it? How large is your installation and how many crashes do you have? Best Regards!
  2. Jonathan 2014-09-11

    Hello and thanks for your help. We cannot reproduce this bug but this error is level 1 on Crashlytics : 1330 crashes for 994 users Our fix doesn't work (https://github.com/appcelerator/titanium_mobile/pull/6045) because we have a new crash with the same error.
  3. Mauro Parra-Miranda 2015-02-03

    We haven't seen this. If you are able to come up with a testcase that reproduces the issue, we can reopen this one.

JSON Source