Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11887] Android: Media - Application crashes on Motorola RAZR i

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2013-04-02T01:22:49.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-and100112, triage
ReporterTamila Smolich
AssigneeIngo Muschenetz
Created2012-11-28T23:30:12.000+0000
Updated2017-03-20T22:42:35.000+0000

Description

Description: App crashes after attempt to use/save a taken picture on Motorola RAZR i (Intel inside). Crash log is attached. Tested on a device with the same Android version (Samsung Galaxy SIII 4.0.4) and on Nexus 10 (4.2) - the app does not crash. This is not a regression, the same behavior occurs on 2.1.4 as well. Steps: 1. Run the following code on Motorola RAZR i:
var win1 = Ti.UI.createWindow(
{
    title: "window 1"
});
 
var button1 = Titanium.UI.createButton(
{
    color: '#999',
    title: 'Launch Modal',
    width: '200dp',
    height: '60dp'
});
 
win1.add(button1);
 
button1.addEventListener("click", function()
{
    modal = Ti.UI.createWindow(
    {
        modal: true,
        title: "modal"
    });
 
    var cameraButton = Ti.UI.createButton(
    {
        title: "camera",
        top: "50dp",
        width: "150dp",
        height: "60dp"
    });
    modal.add(cameraButton);
    imageViewResize = Ti.UI.createImageView(
    {
        top: "200dp",
        height: "200dp",
        width: "200dp"
    });
    modal.add(imageViewResize);
 
    cameraButton.addEventListener("click", function()
    {
        Titanium.Media.showCamera(
        {
            success: function(event)
            {
                imageViewResize.image = event.media;
            },
 
            error: function()
            {
            },
 
            cancel: function()
            {
            },
 
            saveToPhotoGallery: true,
            allowEditing: true,
            mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO],
            showControls: true
        });
    });
    modal.open();
});
 
win1.open();
2. Click "Launch Model" then click "Camera" button 3. Take a picture and press "use/save" button Actual result: The app crashes Expected: Image should appear on the screen and app should not crash

Attachments

FileDateSize
log.txt2012-11-28T23:30:12.000+00006029

Comments

  1. jithinpv 2013-03-15

    device specific
  2. Daniel Sefton 2013-04-02

    Please watch TIMOB-12848. Let us know if you still have the issue after we solve 12848.
  3. Lee Morris 2017-03-20

    Closing ticket as duplicate.

JSON Source