Open registration is disabled at the moment due to spam.If you need a new account, please contact Keto on oftc.net IRC and provide your desired username and email.
This Bugzilla instance is no longer in active use, so you should only need an account if you wish to use the Sailfish OS community OBS.
Bug 618 - QML app using camera dumps core in ExoPC but works fine in N9
Summary: QML app using camera dumps core in ExoPC but works fine in N9
Status: TRIAGEDUPSTREAM
Alias: None
Product: Mer Core
Classification: Unclassified
Component: qt-mobility (show other bugs)
Version: unspecified
Hardware: i586 Mer
: Normal normal
Assignee: Not Taken
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-22 20:05 UTC by Remware
Modified: 2012-11-10 23:41 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Remware 2012-10-22 20:05:26 UTC
CRITICAL **: gst_photography_get_ev_compensation: assertion `photo != NULL' failed

** (HealthELiving:965): CRITICAL **: gst_photography_set_ev_compensation: assertion `photo != NULL' failed

** (HealthELiving:965): CRITICAL **: gst_photography_get_ev_compensation: assertion `photo != NULL' failed

** (HealthELiving:965): CRITICAL **: gst_photography_get_ev_compensation: assertion `photo != NULL' failed

Warning: ToolItem is deprecated, use ToolIcon instead
MAIN WINDOW COMPLETED -1
Segmentation fault (core dumped)
Comment 1 Remware 2012-10-22 20:31:19 UTC
Using build
 http://repository.maemo.org/meego/Nemo/0.20120920.1.NEMO.2012-10-07.1/

plus sw update except kernel  3.0.0-4.3-adaptation-pc

Installed additionally gst-plugins, libdeclarative-multimedia but bug persits and dumps core with segmentation fault,

In N9 compilation the application just runs fine and take pictures
Comment 2 Remware 2012-10-22 20:34:05 UTC
    import QtQuick 1.1
    import QtMultimediaKit 1.0
     
    Rectangle{
        id:yellowRect
        height: 300
        width: 300
        color:"yellow"
     
        Camera {
            id:cameraFeed
            focus : visible // to receive focus and capture key events when visible
            height: 300
            width: 300
     
            flashMode: Camera.FlashRedEyeReduction
            whiteBalanceMode: Camera.WhiteBalanceFlash
            exposureCompensation: -1.0
     
        }
     
    }
Comment 3 Iekku Pylkka 2012-10-29 12:29:48 UTC
Triaged: normal 
14:28 < lbt> that looks like a QtMultimediaKit bug
14:28 < Stskeeps> it might be
14:28 < lbt> not deteciting correct gstreamer response
14:28 < Stskeeps> ok, then normal
14:28 < lbt> the minimal case is pure mer :)
Comment 4 Robin Burchell 2012-11-08 12:47:45 UTC
can you please get a full backtrace with gdb? (run "bt full" in gdb's prompt when it crashes) with debug symbols installed
Comment 5 Remware 2012-11-09 05:42:44 UTC
(In reply to comment #4)
> can you please get a full backtrace with gdb? (run "bt full" in gdb's prompt
> when it crashes) with debug symbols installed

HI, I am trying to reinstall that version as latest kernel version bricked my device again. By the way the delta between packages in latest image and package update is 242, so exoPC goes to sleep before finishing the update. 
Let you know as soon as I have something.
Comment 6 Remware 2012-11-09 21:25:52 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > can you please get a full backtrace with gdb? (run "bt full" in gdb's prompt
> > when it crashes) with debug symbols installed
> 
> HI, I am trying to reinstall that version as latest kernel version bricked my
> device again. By the way the delta between packages in latest image and package
> update is 242, so exoPC goes to sleep before finishing the update. 
> Let you know as soon as I have something.

Hi, here I got something inside gdb, I will try to get more info soon:
(gdb) bt full
#0  0xfffffff8 in ?? ()
No symbol table info available.
#1  0xb7cbab82 in QDeclarativeView::continueExecute() ()
   from /usr/lib/libQtDeclarative.so.4
No symbol table info available.
#2  0xb7cbafe0 in ?? () from /usr/lib/libQtDeclarative.so.4
No symbol table info available.
#3  0x0806a26b in ?? ()
No symbol table info available.
#4  0xb6a1d7b4 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#5  0xb7ffefcc in ?? () from /lib/ld-linux.so.2
No symbol table info available.
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Comment 7 Remware 2012-11-09 21:30:28 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > can you please get a full backtrace with gdb? (run "bt full" in gdb's prompt
> > > when it crashes) with debug symbols installed
> > 
> > HI, I am trying to reinstall that version as latest kernel version bricked my
> > device again. By the way the delta between packages in latest image and package
> > update is 242, so exoPC goes to sleep before finishing the update. 
> > Let you know as soon as I have something.
> 
> Hi, here I got something inside gdb, I will try to get more info soon:
> (gdb) bt full
> #0  0xfffffff8 in ?? ()
> No symbol table info available.
> #1  0xb7cbab82 in QDeclarativeView::continueExecute() ()
>    from /usr/lib/libQtDeclarative.so.4
> No symbol table info available.
> #2  0xb7cbafe0 in ?? () from /usr/lib/libQtDeclarative.so.4
> No symbol table info available.
> #3  0x0806a26b in ?? ()
> No symbol table info available.
> #4  0xb6a1d7b4 in __libc_start_main () from /lib/libc.so.6
> No symbol table info available.
> #5  0xb7ffefcc in ?? () from /lib/ld-linux.so.2
> No symbol table info available.
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Now after setting: ulimit -c unlimited, it gives a bit more information ....
(gdb) bt full
#0  0xfffffff8 in ?? ()
No symbol table info available.
#1  0xb7cbab82 in QDeclarativeView::continueExecute() ()
   from /usr/lib/libQtDeclarative.so.4
No symbol table info available.
#2  0xb7cbafe0 in ?? () from /usr/lib/libQtDeclarative.so.4
No symbol table info available.
#3  0x0806a26b in ?? ()
No symbol table info available.
#4  0xb6a1d7b4 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#5  0xb7ffefcc in ?? () from /lib/ld-linux.so.2
No symbol table info available.
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
Comment 8 Remware 2012-11-09 21:31:46 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > (In reply to comment #4)
> > > > can you please get a full backtrace with gdb? (run "bt full" in gdb's prompt
> > > > when it crashes) with debug symbols installed
> > > 
> > > HI, I am trying to reinstall that version as latest kernel version bricked my
> > > device again. By the way the delta between packages in latest image and package
> > > update is 242, so exoPC goes to sleep before finishing the update. 
> > > Let you know as soon as I have something.
> > 
> > Hi, here I got something inside gdb, I will try to get more info soon:
> > (gdb) bt full
> > #0  0xfffffff8 in ?? ()
> > No symbol table info available.
> > #1  0xb7cbab82 in QDeclarativeView::continueExecute() ()
> >    from /usr/lib/libQtDeclarative.so.4
> > No symbol table info available.
> > #2  0xb7cbafe0 in ?? () from /usr/lib/libQtDeclarative.so.4
> > No symbol table info available.
> > #3  0x0806a26b in ?? ()
> > No symbol table info available.
> > #4  0xb6a1d7b4 in __libc_start_main () from /lib/libc.so.6
> > No symbol table info available.
> > #5  0xb7ffefcc in ?? () from /lib/ld-linux.so.2
> > No symbol table info available.
> > Backtrace stopped: previous frame inner to this frame (corrupt stack?)
> 
> Now after setting: ulimit -c unlimited, it gives a bit more information ....
> (gdb) bt full
> #0  0xfffffff8 in ?? ()
> No symbol table info available.
> #1  0xb7cbab82 in QDeclarativeView::continueExecute() ()
>    from /usr/lib/libQtDeclarative.so.4
> No symbol table info available.
> #2  0xb7cbafe0 in ?? () from /usr/lib/libQtDeclarative.so.4
> No symbol table info available.
> #3  0x0806a26b in ?? ()
> No symbol table info available.
> #4  0xb6a1d7b4 in __libc_start_main () from /lib/libc.so.6
> No symbol table info available.
> #5  0xb7ffefcc in ?? () from /lib/ld-linux.so.2
> No symbol table info available.
> Backtrace stopped: previous frame inner to this frame (corrupt stack?)

One more thing, after running outside gdb I got this:
(gdb) bt full
#0  0xfffffff8 in ?? ()
No symbol table info available.
#1  0xb7529b82 in QDeclarativeView::continueExecute() ()
   from /usr/lib/libQtDeclarative.so.4
No symbol table info available.
#2  0xb7529fe0 in ?? () from /usr/lib/libQtDeclarative.so.4
No symbol table info available.
#3  0x0806a26b in QmlApplicationViewer::setMainQmlFile(QString const&) ()
No symbol table info available.
#4  0x0804dec0 in main ()
No symbol table info available.
Comment 9 Remware 2012-11-09 22:15:33 UTC
I tried also to compile with debug information so here is stack now:
(gdb) bt full
#0  0xfffffff8 in ?? ()
No symbol table info available.
#1  0xb752bb82 in QDeclarativeView::continueExecute() ()
   from /usr/lib/libQtDeclarative.so.4
No symbol table info available.
#2  0xb752bfe0 in ?? () from /usr/lib/libQtDeclarative.so.4
No symbol table info available.
#3  0x0805c450 in QmlApplicationViewer::setMainQmlFile (this=0xbfa44f78, 
    file=...) at ../qtheli/qmlapplicationviewer/qmlapplicationviewer.cpp:105
No locals.
#4  0x0804de23 in main (argc=1, argv=0xbfa45054) at ../qtheli/main.cpp:20
        app = {d = 0x82498c8}
        viewer = {<QDeclarativeView> = {<No data fields>}, 
          static staticMetaObject = {d = {
              superdata = 0x8068400 <QDeclarativeView::staticMetaObject>, 
              stringdata = 0x806089c <qt_meta_stringdata_QmlApplicationViewer> "QmlApplicationViewer", data = 0x8060860 <qt_meta_data_QmlApplicationViewer>, 
              extradata = 0x0}}, d = 0x82ce970}
Comment 10 Robin Burchell 2012-11-09 22:22:06 UTC
zypper search for the declarative debuginfo packages and install them, this isn't terribly useful as-is
Comment 11 Remware 2012-11-10 09:51:52 UTC
(In reply to comment #10)
> zypper search for the declarative debuginfo packages and install them, this
> isn't terribly useful as-is
Hi I searched for libdeclarative 4 but the only development packages are qt5:

 qt5-qtdeclarative-qtquick qt5-qtdeclarative-qtquick-devel qt5-qtgui pkgconfig qt5-qtcore qt5-qtdeclarative qt5-qtdeclarative-devel qt5-qtnetwork qt5-qtnetwork-devel qt5-qtsql qt5-qtsql-devel qt5-qtv8

From where I get debug info for declarative 4 ?
Comment 12 Robin Burchell 2012-11-10 11:07:50 UTC
you want libqtdeclarative4-debuginfo, iirc
Comment 13 Remware 2012-11-10 17:40:40 UTC
(In reply to comment #12)
> you want libqtdeclarative4-debuginfo, iirc
In my mer SDK:

zypper in libqtdeclarative4-debuginfo
Loading repository data...
Reading installed packages...
Package 'libqtdeclarative4-debuginfo' not found.
Resolving package dependencies...

zypper ls
# | Alias                     | Name                      | Enabled | Refresh | Type  
--+---------------------------+---------------------------+---------+---------+-------
1 | mer-core                  | mer-core                  | Yes     | No      | rpm-md
2 | mer-core-debuginfo        | mer-core-debuginfo        | No      | No      | NONE  
3 | mer-cross-tools           | mer-cross-tools           | Yes     | No      | rpm-md
4 | mer-cross-tools-debuginfo | mer-cross-tools-debuginfo | No      | No      | NONE  
5 | mer-tools-i486            | mer-tools-i486            | Yes     | No      | rpm-md
6 | mer-tools-i486-debuginfo  | mer-tools-i486-debuginfo  | No      | No      | NONE 

And now in my ExoPC:
zypper ls
# | Alias                     | Name                      | Enabled | Refresh | Type  
--+---------------------------+---------------------------+---------+---------+-------
1 | ce-adaptation-x86-generic | ce-adaptation-x86-generic | Yes     | No      | rpm-md
2 | ce-apps                   | ce-apps                   | Yes     | No      | rpm-md
3 | ce-mw-shared              | ce-mw-shared              | Yes     | No      | rpm-md
4 | ce-ux-mtf                 | ce-ux-mtf                 | Yes     | No      | rpm-md
5 | mer-core                  | mer-core                  | Yes     | No      | rpm-md
6 | mer-core-debuginfo        | mer-core-debuginfo        | Yes     | No      | rpm-md
7 | mer-tools                 | mer-tools                 | Yes     | No      | rpm-md

and of course 
zypper  in libqtdeclarative4-debuginfo
Loading repository data...
Reading installed packages...
Package 'libqtdeclarative4-debuginfo' not found.
Resolving package dependencies...

Nothing to do.
Comment 14 Robin Burchell 2012-11-10 18:08:34 UTC
> 2 | mer-core-debuginfo        | mer-core-debuginfo        | No      | No      |
NONE  

you need to enable that (see /etc/zypp/repos.d), then zypper ref
the package you want is qt-debuginfo, sorry for the confusion.
Comment 15 Remware 2012-11-10 23:41:15 UTC
(In reply to comment #14)
> > 2 | mer-core-debuginfo        | mer-core-debuginfo        | No      | No      |
> NONE  
> 
> you need to enable that (see /etc/zypp/repos.d), then zypper ref
> the package you want is qt-debuginfo, sorry for the confusion.

Very interesting that now the crash do not dump core ...
Here is the output while running inside gdb:

(gdb) bt full
#0  0xfffffff8 in ?? ()
No symbol table info available.
#1  0xb7cb9b82 in QDeclarativeView::continueExecute (this=0xbffff9c8)
    at util/qdeclarativeview.cpp:563
        d = 0x80c9678
        obj = 0x810b980
#2  0xb7cb9fe0 in QDeclarativeViewPrivate::execute (this=0x80c9678)
    at util/qdeclarativeview.cpp:175
No locals.
#3  0x0805c450 in QmlApplicationViewer::setMainQmlFile (this=0xbffff9c8, file=...)
    at ../qtheli/qmlapplicationviewer/qmlapplicationviewer.cpp:105
No locals.
#4  0x0804de23 in main (argc=1, argv=0xbffffaa4) at ../qtheli/main.cpp:20
        app = {d = 0x806b8c8}
        viewer = {<QDeclarativeView> = {<QGraphicsView> = {<QAbstractScrollArea> = {
    <QFrame> = {<QWidget> = {<QObject> = {
                      _vptr.QObject = 0x80608c8 <vtable for QmlApplicationViewer+8>, 
                      static staticMetaObject = {d = {superdata = 0x0, 
                          stringdata = 0xb6fcf6a0 <qt_meta_stringdata_QObject> "QObject", 
---Type <return> to continue, or q <return> to quit---
                          data = 0xb6fcf740 <qt_meta_data_QObject>, 
                          extradata = 0xb704b2a8 <QObject::staticMetaObjectExtraData>}}, 
                      static staticMetaObjectExtraData = {objects = 0x0, 
                        static_metacall = 0xb6f09a50 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, d_ptr = {d = 0x80c9678}, static staticQtMetaObject = {
                        d = {superdata = 0x0, 
                          stringdata = 0xb6fd8480 <qt_meta_stringdata_Qt> "Qt", 
                          data = 0xb6fdba20 <qt_meta_data_Qt>, extradata = 0x0}}}, 
    <QPaintDevice> = {
                      _vptr.QPaintDevice = 0x80609bc <vtable for QmlApplicationViewer+252>, painters = 0}, static staticMetaObject = {d = {
                        superdata = 0x8068470 <QObject::staticMetaObject>, 
                        stringdata = 0xb79f0080 <qt_meta_stringdata_QWidget> "QWidget", 
                        data = 0xb79f05c0 <qt_meta_data_QWidget>, 
                        extradata = 0xb7c1964c <QWidget::staticMetaObjectExtraData>}}, 
                    static staticMetaObjectExtraData = {objects = 0x0, 
                      static_metacall = 0xb734d150 <QWidget::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, data = 0x80c972c}, static staticMetaObject = {d = {
                      superdata = 0xb7c1963c <QWidget::staticMetaObject>, 
                     stringdata = 0xb7a43ea0 <qt_meta_stringdata_QFrame> "QFrame", 
                      data = 0xb7a43f60 <qt_meta_data_QFrame>, 
                      extradata = 0xb7c2d3ec <QFrame::staticMetaObjectExtraData>}}, 
                  static staticMetaObjectExtraData = {objects = 0x0, 
                    static_metacall = 0xb79dfc00 <QFrame::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}}, static staticMetaObject = {d = {
                    superdata = 0xb7c2d3dc <QFrame::staticMetaObject>, 
                    stringdata = 0xb7a1e8c0 <qt_meta_stringdata_QAbstractScrollArea> "QAbstractScrollArea", data = 0xb7a1e9e0 <qt_meta_data_QAbstractScrollArea>, 
                    extradata = 0xb7c21340 <QAbstractScrollArea::staticMetaObjectExtraData>}}, static staticMetaObjectExtraData = {objects = 0x0, 
                  static_metacall = 0xb77b60c0 <QAbstractScrollArea::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}}, static staticMetaObject = {d = {
                  superdata = 0xb7c21330 <QAbstractScrollArea::staticMetaObject>, 
                  stringdata = 0xb7a3ae40 <qt_meta_stringdata_QGraphicsView> "QGraphicsView", data = 0xb7a3b1e0 <qt_meta_data_QGraphicsView>, 
                  extradata = 0xb7c29940 <QGraphicsView::staticMetaObjectExtraData>}}, 
              static staticMetaObjectExtraData = {
                objects = 0xb7c3b928 <qt_meta_extradata_QGraphicsView>, 
                static_metacall = 0xb797c630 <QGraphicsView::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}}, static staticMetaObject = {d = {
                superdata = 0xb7c29930 <QGraphicsView::staticMetaObject>, 
                stringdata = 0xb7f05fe0 <qt_meta_stringdata_QDeclarativeView> "QDeclarativeView", data = 0xb7f060c0 <qt_meta_data_QDeclarativeView>, 
                extradata = 0xb7fc6ae4 <QDeclarativeView::staticMetaObjectExtraData>}}, 
            static staticMetaObjectExtraData = {objects = 0x0, 
              static_metacall = 0xb7ecd690 <QDeclarativeView::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}}, static staticMetaObject = {d = {
              superdata = 0x8068400 <QDeclarativeView::staticMetaObject>, 
              stringdata = 0x806089c <qt_meta_stringdata_QmlApplicationViewer> "QmlApplicationViewer", data = 0x8060860 <qt_meta_data_QmlApplicationViewer>, extradata = 0x0}}, 
          d = 0x80f09d8}