maliit-server crashes when starting because qtubuntu cannot create the application instance

Bug #1240793 reported by Ricardo Salveti
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtubuntu (Ubuntu)
Confirmed
Undecided
Unassigned
ubuntu-touch-session (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

From following report:
http://reports.qa.ubuntu.com/smokeng/saucy/touch_mir/mako/100:20131017:20131015/4765/mediaplayer-app-autopilot/

Image #100, tested with mako, maliit-server crashes when starting because qtubuntu cannot create the application instance.

Stacktrace:
Program terminated with signal 6, Aborted.
#0 __libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:44
44 ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S: No such file or directory.
(gdb) bt full
#0 __libc_do_syscall () at ../ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:44
No locals.
#1 0x40c0a5fe in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
        _a1 = <optimized out>
        _a3tmp = 6
        _a1tmp = 0
        _a3 = <optimized out>
        _nametmp = 268
        _a2tmp = 2068
        _a2 = <optimized out>
        _name = <optimized out>
        _sys_result = <optimized out>
        pd = 0x43718000
        pid = 0
        selftid = 2068
#2 0x40c0ce1a in __GI_abort () at abort.c:90
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x40c3a7b1 <__GI___libc_realloc+160>, sa_sigaction = 0x40c3a7b1 <__GI___libc_realloc+160>}, sa_mask = {__val = {16658432, 48, 3203552376, 8, 0, 3203552376, 63, 1131213992, 1131511808, 0, 213668, 1131513024, 0,
              3203552508, 1, 1074780109, 1131213992, 1, 1, 0, 0, 1086237544, 1081032125, 212992, 1081032125, 3, 3203552360, 3, 3203552488, 1074798132, 54, 0}}, sa_flags = 1131513024, sa_restorer = 0x41406911 <_pthread_cleanup_pop_restore>}
        sigs = {__val = {32, 0 <repeats 31 times>}}
#3 0x00013998 in (anonymous namespace)::outputMessagesToStdErr (type=QtFatalMsg, context=..., msg=...) at main.cpp:80
        utf_text = {d = 0xfe3000}
        raw = 0xfe3010 "QUbuntu: Could not create application instance"
#4 0x406f2644 in qt_message_print (msgType=1131511808, msgType@entry=QtFatalMsg, context=..., message=...) at global/qlogging.cpp:835
No locals.
#5 0x406f2714 in qt_message (msgType=msgType@entry=QtFatalMsg, context=..., msg=msg@entry=0x4002a104 "QUbuntu: Could not create application instance", ap=ap@entry=..., buf=...) at global/qlogging.cpp:217
No locals.
#6 0x406f2a4a in QMessageLogger::fatal (this=this@entry=0xbef254fc, msg=0x4002a104 "QUbuntu: Could not create application instance") at global/qlogging.cpp:353
        message = {static null = {<No data fields>}, d = 0xfe3410}
        ap = {__ap = 0xbef254e8}
#7 0x4001a0e0 in QUbuntuIntegration::QUbuntuIntegration (this=0x40859710 <QArrayData::shared_null>, input_factory=0x40037824 <(anonymous namespace)::InputAdaptorFactory::instance()::global_instance>) at integration.cc:75
        args = {<QList<QString>> = {{p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0xfe4ad0}, d = 0xfe4ad0}}, <No data fields>}
        id = <optimized out>
        delegate = <optimized out>
        __PRETTY_FUNCTION__ = "QUbuntuIntegration::QUbuntuIntegration(QUbuntuInputAdaptorFactory*)"
#8 0x40019aaa in QUbuntuMirIntegration::QUbuntuMirIntegration (this=0xfe37a0) at integration.cc:39
No locals.
#9 0x40019536 in QUbuntuMirClientIntegrationPlugin::create (this=<optimized out>, system=..., paramList=...) at main.cc:41
No locals.
#10 0x40406ba8 in init_platform (platformPluginPath=..., pluginArgument=...) at kernel/qguiapplication.cpp:772
        arguments = {<QList<QString>> = {{p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0xfce520}, d = 0xfce520}}, <No data fields>}
        name = {static null = {<No data fields>}, d = 0xfce4e8}
        themeNames = {<QList<QString>> = {{p = {static shared_null = {ref = {atomic = {_q_value = -1}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0xfce408}, d = 0xfce408}}, <No data fields>}
#11 QGuiApplicationPrivate::createPlatformIntegration (this=<optimized out>) at kernel/qguiapplication.cpp:895
        platformPluginPath = {static null = {<No data fields>}, d = 0x408596e0 <qt_array>}
        platformName = {d = 0xfce4c0}
        platformNameEnv = {d = 0xfce4c0}
        j = 1
#12 0x404071da in QGuiApplicationPrivate::createEventDispatcher (this=0xfcda60) at kernel/qguiapplication.cpp:902
No locals.
#13 0x407f9c86 in QCoreApplication::init (this=this@entry=0xbef2566c) at kernel/qcoreapplication.cpp:612
        d = 0xfcda60
#14 0x407f9cca in QCoreApplication::QCoreApplication (this=0xbef2566c, p=...) at kernel/qcoreapplication.cpp:549
No locals.
#15 0x4040787a in QGuiApplication::QGuiApplication (this=0xbef2566c, argc=@0xbef25644: 1, argv=0xbef25824, flags=327682) at kernel/qguiapplication.cpp:369
No locals.
#16 0x00013b0e in main (argc=1, argv=0xbef25824) at main.cpp:139
        allRecognized = true
        app = {<QCoreApplication> = {<QObject> = {_vptr.QObject = 0x40970808 <vtable for QCoreApplication+8>, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x408e93e8 <qt_meta_stringdata_QObject>, data = 0x408e9acc <qt_meta_data_QObject>,
                  static_metacall = 0x408154a5 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0xfcda60}, static staticQtMetaObject = {d = {superdata = 0x0,
                  stringdata = 0x40931d30 <qt_meta_stringdata_Qt>, data = 0x4092f794 <qt_meta_data_Qt>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x34564 <QObject::staticMetaObject>,
                stringdata = 0x4094083c <qt_meta_stringdata_QCoreApplication>, data = 0x40940948 <qt_meta_data_QCoreApplication>, static_metacall = 0x40854629 <QCoreApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0,
                extradata = 0x0}}, static self = 0xbef2566c}, static staticMetaObject = {d = {superdata = 0x40970840 <QCoreApplication::staticMetaObject>, stringdata = 0x4059c1d4 <qt_meta_stringdata_QGuiApplication>, data = 0x4059c49c <qt_meta_data_QGuiApplication>,
              static_metacall = 0x4040b5f9 <QGuiApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}
        __PRETTY_FUNCTION__ = "int main(int, char**)"
        icConnection = {value = 0x47f, d = 0x0}
        serverCommonOptions = {showHelp = false}
        connectionOptions = {allowAnonymous = false, overriddenAddress = {static null = {<No data fields>}, d = 0x40859710 <QArrayData::shared_null>}}
        platform = {value = 0x40143c40, d = 0x40b80000}
        imServer = {<QObject> = {_vptr.QObject = 0x40be89e8, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x408e93e8 <qt_meta_stringdata_QObject>, data = 0x408e9acc <qt_meta_data_QObject>,
                static_metacall = 0x408154a5 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x7}, static staticQtMetaObject = {d = {superdata = 0x0,
                stringdata = 0x40931d30 <qt_meta_stringdata_Qt>, data = 0x4092f794 <qt_meta_data_Qt>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x34564 <QObject::staticMetaObject>,
              stringdata = 0x40243dc8 <qt_meta_stringdata_MImServer>, data = 0x40243de4 <qt_meta_data_MImServer>, static_metacall = 0x40237959 <MImServer::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}},
          d_ptr = {d = 0x0}}
        nativeInterface = 0x401128bc <_dl_argv>

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

We do have a sleep 2 in the upstart job already, it might not necessarily be enough:

cat /usr/share/upstart/sessions/maliit-server.conf
description "Maliit OSK Server"
author "Ricardo Mendoza <email address hidden>"

# nowadays, maliit-server needs to start *after* unity8, or it crashes while
# trying to poke geometry
start on started unity8
stop on stopping unity8

# needed to fix lp:1233550
env QML_BAD_GUI_RENDER_LOOP=1

respawn

pre-start script
    sleep 2
end script

exec maliit-server

Adding bugjob to qtubuntu as well to see if there's a better way to fail without crashing in abort (so we don't generate a crash report).

Paul Larson (pwlars)
Changed in qtubuntu (Ubuntu):
status: New → Confirmed
Changed in ubuntu-touch-session (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.