×

Discussion Board

Results 1 to 3 of 3
  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.

  2. #2
    Registered User
    Join Date
    Nov 2010
    Posts
    40

    Re: Camera captureImage crash (Symbian)

    Hi,
    The reson is raised when the Kernel cannot find an object in the object index for the current process or current thread using the specified object index number.
    Check this samples
    http://doc.qt.nokia.com/qtmobility/d...ve-camera.html
    http://doc.qt.nokia.com/4.7-snapshot...ample-cpp.html
    http://doc.qt.nokia.com/qtmobility-1...racapture.html
    Last edited by debjit.roy; 2012-04-06 at 08:21.

  3. #3
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: Camera captureImage crash (Symbian)

    Hi,

    I tried the same code in N8 and in N701.. i didnt face any problem, the image got saved in both the phones.

Similar Threads

  1. QML + Camera from Mobility = Crash on N8
    By joe789joe789 in forum [Archived] Qt Quick
    Replies: 2
    Last Post: 2011-02-07, 14:26
  2. Change Camera::CaptureImage() Resolution
    By neelesh_a1 in forum Symbian
    Replies: 2
    Last Post: 2010-01-27, 21:20
  3. N93 native camera crash the application
    By binli120 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-11-22, 07:44
  4. N93 native camera crash the application
    By binli120 in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-11-20, 22: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
  •  
×