×

Discussion Board

Results 1 to 3 of 3

Threaded View

  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    445

    Camera captureImage crash (Symbian)

    Hi,

    I try to capture a picture from the camera element in Symbian Belle:
    Code:
    import QtQuick 1.1
    import Qt 4.7
    import com.nokia.symbian 1.1
    import QtMultimediaKit 1.1
    
    PageStackWindow {
        initialPage: cameraPage
        showStatusBar: false
        showToolBar: true
        
        Page {
            id: cameraPage
            tools: mainToolBar
            anchors.fill: parent
            orientationLock: PageOrientation.LockLandscape
            Camera {
                id: camera
                anchors.fill: parent
                focus: visible 
                
                onImageCaptured: {
                    console.log("onImageCaptured");
                }
                
                onImageSaved: {
                    console.log("Saved to " + path);
                }
                MouseArea {
                    anchors.fill: parent
                    onClicked: camera.captureImage();
                }
            }   
            
            ToolBarLayout {
                id: mainToolBar
                visible: true
        
                ToolButton {
                    id: simpleBackButtonToolbar_BackButton
                    iconSource: "toolbar-back"
                    onClicked: {
                        onClicked: pageStack.pop();
                    }
                }
            }
        }
    }
    The preview is shown but when "camera.captureImage()" is called I get this error on the Nokia 701:
    [Qt Message] Camera state changed: QCamera::UnloadedState
    [Qt Message] Camera state changed: QCamera::ActiveState
    Thread has crashed: Thread 0x6b1 has panicked. Category: KERN-EXEC; Reason: 0
    Thread has crashed: Thread 0x6b2 has panicked. Category: KERN-EXEC; Reason: 0
    Thread has crashed: Thread 0x6b4 has panicked. Category: KERN-EXEC; Reason: 0
    Process has finished.
    On the N8 capturing stalls the app.

    How can I capture a picture?

    Regards,
    Last edited by pixsta; 2012-04-06 at 08:04.

Similar Threads

  1. QML + Camera from Mobility = Crash on N8
    By joe789joe789 in forum [Archived] Qt Quick
    Replies: 2
    Last Post: 2011-02-07, 13:26
  2. Change Camera::CaptureImage() Resolution
    By neelesh_a1 in forum Symbian
    Replies: 2
    Last Post: 2010-01-27, 20:20
  3. N93 native camera crash the application
    By binli120 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-11-22, 06:44
  4. N93 native camera crash the application
    By binli120 in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-11-20, 21:01
  5. Camera Crash - KErrPathNotFound (Please)
    By psousa in forum Symbian
    Replies: 0
    Last Post: 2003-09-03, 01:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×