Stock camera is currently not working on this device. When the app is opened, the screen is black for both front and back cameras.
I followed @vince1171 recommendation in the original OP2 forum thread to use gst-droid with no success. I get exactly the same result, a black screen.
Debugging the app, I got some error messages regarding camera detection:
0:00:02.093269218 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:572:gst_droidcamsrc_get_hw:<droidcamsrc0> Found 0 cameras
0:00:02.093635520 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<droidcamsrc0> Cannot get camera info for 0 (facing 1)
0:00:02.093851561 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<droidcamsrc0> Cannot get camera info for 1 (facing 1)
0:00:02.093929947 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:587:gst_droidcamsrc_get_hw:<droidcamsrc0> cannot find back camera
0:00:02.094077655 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<droidcamsrc0> Cannot get camera info for 0 (facing 0)
0:00:02.094252968 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<droidcamsrc0> Cannot get camera info for 1 (facing 0)
0:00:02.094320103 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:594:gst_droidcamsrc_get_hw:<droidcamsrc0> cannot find front camera
0:00:02.094364061 24107 0x20e0b600 ERROR droidcamsrc gstdroidcamsrc.c:598:gst_droidcamsrc_get_hw:<droidcamsrc0> no cameras found
Here is the full debug log:
phablet@ubuntu-phablet:~$ (cd /opt/click.ubuntu.com/com.ubuntu.camera/current && GST_DEBUG=droidcamsrc:4 ./camera-app --desktop_file_hint=com.ubuntu.camera_camera)
ERROR: ld.so: object 'libtls-padding.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
library "libgui.so" wasn't loaded and RTLD_NOLOAD prevented it
Creating a QMirClientScreen now
Import path added "/opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/lib/aarch64-linux-gnu"
Camera app directory "/opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4"
unity::action::ActionManager::ActionManager(QObject*):
Could not determine application identifier. HUD will not work properly.
Provide your application identifier in $APP_ID environment variable.
ERROR: ld.so: object 'libtls-padding.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
** (camera-app:24107): CRITICAL **: gst_audio_format_from_string: assertion 'format != NULL' failed
(camera-app:24107): GLib-GObject-WARNING **: g_object_class_override_property: Can't find property to override for 'GstDroidCamSrc::exposure-mode'
0:00:02.079251614 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrcquirks.c:238:gst_droidcamsrc_quirks_new: failed to load configuration file /etc/gst-droid/gstdroidcamsrcquirks.conf: No such file or directory
0:00:02.091954634 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:363:gst_droidcamsrc_set_property:<droidcamsrc0> camera device set to 0
0:00:02.093269218 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:572:gst_droidcamsrc_get_hw:<droidcamsrc0> Found 0 cameras
0:00:02.093635520 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<droidcamsrc0> Cannot get camera info for 0 (facing 1)
0:00:02.093851561 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<droidcamsrc0> Cannot get camera info for 1 (facing 1)
0:00:02.093929947 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:587:gst_droidcamsrc_get_hw:<droidcamsrc0> cannot find back camera
0:00:02.094077655 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<droidcamsrc0> Cannot get camera info for 0 (facing 0)
0:00:02.094252968 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<droidcamsrc0> Cannot get camera info for 1 (facing 0)
0:00:02.094320103 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:594:gst_droidcamsrc_get_hw:<droidcamsrc0> cannot find front camera
0:00:02.094364061 24107 0x20e0b600 ERROR droidcamsrc gstdroidcamsrc.c:598:gst_droidcamsrc_get_hw:<droidcamsrc0> no cameras found
0:00:02.094472186 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:363:gst_droidcamsrc_set_property:<droidcamsrc0> camera device set to 1
0:00:02.094687603 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:572:gst_droidcamsrc_get_hw:<droidcamsrc0> Found 0 cameras
0:00:02.095113124 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<droidcamsrc0> Cannot get camera info for 0 (facing 1)
0:00:02.095309686 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<droidcamsrc0> Cannot get camera info for 1 (facing 1)
0:00:02.095409061 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:587:gst_droidcamsrc_get_hw:<droidcamsrc0> cannot find back camera
0:00:02.095584270 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<droidcamsrc0> Cannot get camera info for 0 (facing 0)
0:00:02.095753749 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<droidcamsrc0> Cannot get camera info for 1 (facing 0)
0:00:02.095824999 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:594:gst_droidcamsrc_get_hw:<droidcamsrc0> cannot find front camera
0:00:02.095867551 24107 0x20e0b600 ERROR droidcamsrc gstdroidcamsrc.c:598:gst_droidcamsrc_get_hw:<droidcamsrc0> no cameras found
0:00:02.257503228 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrcquirks.c:238:gst_droidcamsrc_quirks_new: failed to load configuration file /etc/gst-droid/gstdroidcamsrcquirks.conf: No such file or directory
0:00:02.258349270 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:363:gst_droidcamsrc_set_property:<camera_source> camera device set to 0
qq= QDeclarativeCamera_QML_31(0x20e362e0) 0x21093c90
APP_ID isn't set, the handler can not be registered
Fontconfig warning: ignoring UTF-8: not a valid region tag
xkbcommon: ERROR: couldn't find a Compose file for locale "UTF-8"
APP_ID isn't set, the handler ignored
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/ViewFinderExportConfirmation.qml:75:17: QML Item: Binding loop detected for property "height"
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/ViewFinderExportConfirmation.qml:75:17: QML Item: Binding loop detected for property "height"
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/ViewFinderExportConfirmation.qml:75:17: QML Item: Binding loop detected for property "height"
Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
0:00:03.038605936 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:363:gst_droidcamsrc_set_property:<camera_source> camera device set to 1
qml: updateViewfinderResolution: viewfinder resolutions is not known yet.
qml: updateViewfinderResolution: viewfinder resolutions is not known yet.
0:00:03.142965988 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:375:gst_droidcamsrc_set_property:<camera_source> setting capture mode to: 1
0:00:03.143067499 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:378:gst_droidcamsrc_set_property:<camera_source> not resetting the same mode
(camera-app:24107): GStreamer-CRITICAL **: gst_caps_is_equal: assertion 'GST_IS_CAPS (caps1)' failed
0:00:03.143550103 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrcphotography.c:1524:gst_droidcamsrc_set_and_apply:<camera_source> setting zoom to 0
0:00:03.189962446 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:572:gst_droidcamsrc_get_hw:<camera_source> Found 0 cameras
0:00:03.190261249 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<camera_source> Cannot get camera info for 0 (facing 1)
0:00:03.190411717 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<camera_source> Cannot get camera info for 1 (facing 1)
0:00:03.190459321 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:587:gst_droidcamsrc_get_hw:<camera_source> cannot find back camera
0:00:03.190562030 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<camera_source> Cannot get camera info for 0 (facing 0)
0:00:03.190663957 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<camera_source> Cannot get camera info for 1 (facing 0)
0:00:03.190706405 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:594:gst_droidcamsrc_get_hw:<camera_source> cannot find front camera
0:00:03.190741301 24107 0x20e0b600 ERROR droidcamsrc gstdroidcamsrc.c:598:gst_droidcamsrc_get_hw:<camera_source> no cameras found
0:00:03.196050415 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:375:gst_droidcamsrc_set_property:<camera_source> setting capture mode to: 1
0:00:03.196165103 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:378:gst_droidcamsrc_set_property:<camera_source> not resetting the same mode
0:00:03.196308332 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrcphotography.c:1524:gst_droidcamsrc_set_and_apply:<camera_source> setting zoom to 0
0:00:03.200164113 24107 0x20e0b600 INFO droidcamsrc gstdroidcamsrc.c:572:gst_droidcamsrc_get_hw:<camera_source> Found 0 cameras
0:00:03.200351457 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<camera_source> Cannot get camera info for 0 (facing 1)
0:00:03.200548696 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<camera_source> Cannot get camera info for 1 (facing 1)
0:00:03.200592811 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:587:gst_droidcamsrc_get_hw:<camera_source> cannot find back camera
0:00:03.200686457 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<camera_source> Cannot get camera info for 0 (facing 0)
0:00:03.200781978 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:537:gst_droidcamsrc_fill_info:<camera_source> Cannot get camera info for 1 (facing 0)
0:00:03.200821978 24107 0x20e0b600 WARN droidcamsrc gstdroidcamsrc.c:594:gst_droidcamsrc_get_hw:<camera_source> cannot find front camera
0:00:03.200853228 24107 0x20e0b600 ERROR droidcamsrc gstdroidcamsrc.c:598:gst_droidcamsrc_get_hw:<camera_source> no cameras found
[PERFORMANCE]: Last frame took 61 ms to render.
qq= ResponsiveGridView_QMLTYPE_48_QML_54(0x212ee880) 0x212f0f60
QFileSystemWatcher::removePaths: list is empty
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/GalleryViewHeader.qml:74:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/GalleryViewHeader.qml:98:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/GalleryViewHeader.qml:110:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/GalleryViewHeader.qml:123:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/GalleryViewHeader.qml:135:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/GalleryViewHeader.qml:147:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/GalleryViewHeader.qml:159:9: QML IconButton: Detected anchors on an item that is managed by a layout. This is undefined behavior; use Layout.alignment instead.
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/MediaInfoPopover.qml:30:5: QML Item: Binding loop detected for property "height"
file:///usr/lib/aarch64-linux-gnu/qt5/qml/Ubuntu/Components/Popups/1.3/Popover.qml:250:9: QML Item: Binding loop detected for property "height"
QFileSystemWatcher::addPaths: list is empty
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.ImageWidth' of undefined
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.ImageLength' of undefined
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.DateTime' of undefined
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.Model' of undefined
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.Copyright' of undefined
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.ExposureTime' of undefined
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.FNumber' of undefined
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/MediaInfoPopover.qml:57: TypeError: Cannot read property 'Exif.Image.NewSubfileType' of undefined
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/SlideshowView.qml:47: TypeError: Cannot read property 'isSelected' of null
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/MediaInfoPopover.qml:62: TypeError: Cannot read property 'Exif.Photo.Flash' of undefined
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/MediaInfoPopover.qml:11: TypeError: Cannot read property 'url' of undefined
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/SlideshowView.qml:388: TypeError: Cannot call method 'getMedia' of null
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/SlideshowView.qml:422: TypeError: Cannot read property 'actions' of null
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/OptionButton.qml:24:5: Unable to assign [undefined] to QString
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/OptionButton.qml:24:5: Unable to assign [undefined] to QString
file:///opt/click.ubuntu.com/com.ubuntu.camera/3.1.3+gstdroid4/ViewFinderOverlay.qml:241: TypeError: Cannot call method 'split' of undefined
I will be more than happy to help further testing with the device.