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

iOS: CGcontext errors, while using any background property on label

    Details

      Description

      When any of the background property is applied on the label, we see CGcontext errors in the console.

      source code:

      var win1 = Titanium.UI.createWindow({  
          backgroundColor:'white'
      });
       
      var l2 = Titanium.UI.createLabel({
          text:'Appcelerator',
          backgroundColor:'red',
          backgroundImage:'flower.jpg',
          height:'auto',
          width:'auto',
          color:'#900',
          font:{fontSize:48},
          textAlign:'center'
      });
      win1.add(l2);
      win1.open();
      

      Crash Log:

      GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov  3 21:59:02 UTC 2011)
      Copyright 2004 Free Software Foundation, Inc.
      GDB is free software, covered by the GNU General Public License, and you are
      welcome to change it and/or distribute copies of it under certain conditions.
      Type "show copying" to see the conditions.
      There is absolutely no warranty for GDB.  Type "show warranty" for details.
      This GDB was configured as "x86_64-apple-darwin".Attaching to process 10502.
      [DEBUG] reading stylesheet from: /Users/dgandhi/Library/Application Support/iPhone Simulator/5.0/Applications/D35A6348-7A0B-4279-87CF-2F268969C6CD/videplayer.app/stylesheet.plist
      [INFO] test/1.0 (2.0.0.v20120321121811.9b41dde)
      [DEBUG] Analytics is enabled = YES
      [DEBUG] loading: /Users/dgandhi/Library/Application Support/iPhone Simulator/5.0/Applications/D35A6348-7A0B-4279-87CF-2F268969C6CD/videplayer.app/app.js, resource: app_js
      Mar 23 14:11:06 dgandhimbp test[10502] <Error>: CGContextConcatCTM: invalid context 0x0
      Mar 23 14:11:06 dgandhimbp test[10502] <Error>: CGContextSetInterpolationQuality: invalid context 0x0
      Mar 23 14:11:06 dgandhimbp test[10502] <Error>: CGContextDrawImage: invalid context 0x0
      Mar 23 14:11:06 dgandhimbp test[10502] <Error>: CGBitmapContextCreateImage: invalid context 0x0
      [DEBUG] application booted in 44.771016 ms
      

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              dgandhi Devang Gandhi
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code