Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25458] Android ActionBar causes App Crash - Titanium sdk 6.2.2

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2017-11-01T17:39:11.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsactionbar, android, regression
ReporterZarir Bhesania
AssigneeJoshua Quick
Created2017-10-30T11:42:24.000+0000
Updated2017-11-01T17:39:11.000+0000

Description

I am trying to build my existing Appcelerator Titanium application using sdk 6.2.2 and it throws the error attached below. I have not used action bar in my application but it still throws this error. I have attached the custom theme that is used which I feel might be causing this error. This app works fine with Titanium sdk 6.1.0.

Attachments

FileDateSize
custom_theme.xml2017-10-30T11:40:05.000+0000910
Screenshot_2017-10-30-17-05-42.png2017-10-30T11:39:38.000+0000112294
TXT.rtf2017-10-30T11:35:22.000+00002720

Comments

  1. Yordan Banev 2017-10-30

    [~zarirbhesania@gmail.com] Would you be able to provide a code sample that causes the crash?
  2. Zarir Bhesania 2017-10-31

    I figured out the crash. The below lines of code is causing this crash Ti.Android.currentActivity.setOnStart(function(e){ require('/utils/Console').info('on start: ' + JSON.stringify(e)); }); Ti.Android.currentActivity.addEventListener('newintent', function(e) { require('/utils/Console').info('inside newintent: ' + JSON.stringify(e)); win.open(); }); The JSON.stringify statement causes this "serialized[k] = this[k];" error and not the actionBar. Though if you read the error in the console it looks like its something related to actionBar. But still, this used to work with sdk 6.1.0.
  3. Yordan Banev 2017-10-31

  4. Zarir Bhesania 2017-11-01

    @Yordan Banev Yes its the same issue.
  5. Joshua Quick 2017-11-01

    Closed as duplicate. The fix for [TIMOB-25456] will resolve this issue.

JSON Source