Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26682

Android: ES6 template strings causing memory leak + crash

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: Release 7.5.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
      None

      Description

      When using the following example on Android (with ES6+ enabled), the app crashes:

      const stringVar = 'myString';
      const numberVar = 1.337;
      const myValue = `${stringVar}${numberVar.toFixed(2).toLocaleString()} €`;
      

      Error:

      [ERROR] TiExceptionHandler: (main) [428,32694] ti:/titanium.js:146
      [ERROR] TiExceptionHandler: 	value: function(property, value) {
      [ERROR] TiExceptionHandler:                 ^
      [ERROR] TiExceptionHandler: RangeError: Maximum call stack size exceeded
      [ERROR] TiExceptionHandler:     at Label.value (ti:/titanium.js:146:17)
      [ERROR] TiExceptionHandler:     at onSummaryChanged (/alloy/controllers/trip/detail/expenses/index.js:113:34)
      

      The whole thing works fine on iOS. Please provide a workaround, thx!

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                amukherjee Abir Mukherjee
                Reporter:
                hknoechel Hans Knöchel
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6795
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration