Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-1470

String.format with L and parameters application crashes on SDK 3.5.0

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: None
    • Component/s: None
    • Environment:

      Titanium SDK 3.5.0.GA
      iOS 8.1
      iPad 2 (8.1) Simulator

      Description

      Description

      When using String.format with L and parameters application crashes on SDK 3.5.0 simulator

      This bug seems to have been introduced by the following commit to make the SDK 64-bit safe:
      TIMOB-17876 Work around va_list issue

      This issue is related to TIMOB-18279

      Test Case

      app.js

      var win = Ti.UI.createWindow({
      	backgroundColor: 'AAA'
      });
       
      var button = Ti.UI.createButton({
      	title: 'Start test',
      	font: {
      		fontSize: 18
      	}
      });
       
      button.addEventListener('click', function (event) {
      	alert(String.format(L('test'),'alpha','beta', 'gamma', 'delta'));
      });
       
      win.add(button);
       
      win.open();
      

      strings.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <resources>
           <string name="test">Cases: %s %s %s %s</string>
      </resources>
      

      Console Log

      – Start simulator log -------------------------------------------------------
      [INFO] : Application started
      [DEBUG] : Reading stylesheet from: /Users/Roberto/Library/Developer/CoreSimulator/Devices/34F2EF68-4B08-4E7D-B222-04A79008D6CC/data/Containers/Bundle/Application/C658F12D-B86A-45DB-93EF-C8C66408E1DF/test.app/stylesheet.plist
      [DEBUG] : 2015-01-23 10:13:42.750 test[3073:26272939] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
      [DEBUG] : 2015-01-23 10:13:42.751 test[3073:26272939] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
      [INFO] : test/1.0 (3.5.0.0014f83)
      [DEBUG] : Loading: /Users/Roberto/Library/Developer/CoreSimulator/Devices/34F2EF68-4B08-4E7D-B222-04A79008D6CC/data/Containers/Bundle/Application/C658F12D-B86A-45DB-93EF-C8C66408E1DF/test.app/app.js, Resource: app_js
      [DEBUG] : Loading: /Users/Roberto/Library/Developer/CoreSimulator/Devices/34F2EF68-4B08-4E7D-B222-04A79008D6CC/data/Containers/Bundle/Application/C658F12D-B86A-45DB-93EF-C8C66408E1DF/test.app/app_props.json, Resource: app_props_json
      [DEBUG] : Application booted in 175.959945 ms
      [DEBUG] : [ioslib] [ios-sim] [DEBUG] Session did end with error (null)
      [DEBUG] : [ioslib] [ios-sim] [DEBUG] Removing named pipe at `/var/folders/np/ylnn5y7x42n2v8g85jg9vfg40000gq/T//ios-sim-stderr-pipe-1422004397'
      [DEBUG] : [ioslib] [ios-sim] [DEBUG] Removing named pipe at `/var/folders/np/ylnn5y7x42n2v8g85jg9vfg40000gq/T//ios-sim-stdout-pipe-1422004397'
      [DEBUG] : [ioslib] [ios-sim] Exited with code: 0
      – End simulator log ---------------------------------------------------------

        Attachments

          Activity

            People

            • Assignee:
              sliang Shuo Liang
              Reporter:
              Roberto Roberto Zaratin
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code