When running several camera-app tests in a sequence, randomly we have the application crash.
Tracing the crash leads to a fatal error in qtubuntu when trying to connect to MIR. The stack trace follows below.
According to elopio this might be because the app has not exited yet from the previous tests when running the next one.
I am attaching the AP log as well.
#0 0xb62298e6 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#1 0xb6237e5e in raise () from /lib/arm-linux-gnueabihf/libc.so.6
#2 0xb6238b4e in abort () from /lib/arm-linux-gnueabihf/libc.so.6
#3 0xb6bfe7d6 in qt_message_fatal (context=..., message=...) at global/qlogging.cpp:1340
#4 QMessageLogger::fatal (this=<optimized out>,
msg=0xb3f7a02c "UbuntuClientIntegration: connection to Mir server failed. Check that a Mir server is\nrunning, and the correct socket is being used and is accessible. The shell may have\nrejected the incoming connectio"...) at global/qlogging.cpp:669
#5 0xb3f67356 in ?? () from /usr/lib/arm-linux-gnueabihf/qt5/plugins/platforms/libqpa-ubuntumirclient.so
#6 0xb3f69bc4 in ?? () from /usr/lib/arm-linux-gnueabihf/qt5/plugins/platforms/libqpa-ubuntumirclient.so
#7 0xb670620a in loadIntegration (argv=0xbeeed2a4, argc=@0xbeeed12c: 1, parameters=..., key=..., loader=<optimized out>) at kernel/qplatformintegrationfactory.cpp:64
#8 QPlatformIntegrationFactory::create (platform=..., paramList=..., argc=@0xbeeed12c: 1, argv=argv@entry=0xbeeed2a4, platformPluginPath=...) at kernel/qplatformintegrationfactory.cpp:81
#9 0xb670dc34 in init_platform (argv=0xbeeed2a4, argc=@0xbeeed12c: 1, platformThemeName=..., platformPluginPath=..., pluginArgument=...) at kernel/qguiapplication.cpp:980
#10 QGuiApplicationPrivate::createPlatformIntegration (this=<optimized out>) at kernel/qguiapplication.cpp:1128
#11 0xb670e396 in QGuiApplicationPrivate::createEventDispatcher (this=<optimized out>) at kernel/qguiapplication.cpp:1143
#12 0xb6d6df20 in QCoreApplication::init (this=this@entry=0xbeeed130) at kernel/qcoreapplication.cpp:734
#13 0xb6d6dfa6 in QCoreApplication::QCoreApplication (this=0xbeeed130, p=...) at kernel/qcoreapplication.cpp:657
#14 0xb670ee06 in QGuiApplication::QGuiApplication (this=0xbeeed130, argc=@0xbeeed12c: 1, argv=0xbeeed2a4, flags=328448) at kernel/qguiapplication.cpp:532
#15 0x00014480 in CameraApplication::CameraApplication(int&, char**) ()
#16 0x00016c82 in main ()
Attaching the click I had the crashes with