Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1222

Seg fault when calling QCamera::setViewfinder (QCameraViewfinder) on a Symbian^3 phone

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.1.0
    • Multimedia, Other
    • None
    • Windows XP SP 3, Nokia Qt Creator, Qt SDK 1.1 TP, Symbian^3 phone

      Hello,

      I've built one of the Nokia's Qt Mobility Examples for the camera and found out that when you run it on a Symbian^3 phone the following call causes a "Segmentation fault" error:

      QCamera::setViewfinder (QCameraViewfinder)

      I discovered a partial workaround for that, which was to instantiate another dummy QCameraViewfinder object before initializing the UI and before calling setViewfinder(). Then I did not get any seg fault, but unfortunately no viewfinder video stream was visible, either (capture worked though).

      Total workaround was to pass QGraphicsVideoItem instead of QCameraViewfinder as the parameter to setViewfinder(). That displays a viewfinder video stream and doesn't generate any seg faults.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mgoddard Michael Goddard (closed Nokia identity) (Inactive)
            qmiricx Ben Glenn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes