Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    The camera-app is crashing!

    Support
    12
    39
    815
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Markatrafik last edited by

      camera-app has been updated to version 2.3.2 (08-04-2021)

      No testing at all? Dependencies are not prescribed? It is necessary to check whether there are appropriate libraries in the system! And do not install the application if they do not exist! Why kill the work of the application?

      application-click-com.ubuntu.camera_camera_3.2.3.log :

      Creating a QMirClientScreen now
      ./camera-app: relocation error: ./camera-app: symbol _ZN9QtPrivate20QStringList_containsEPK11QStringList13QLatin1StringN2Qt15CaseSensitivityE, version Qt_5 not defined in file libQt5Core.so.5 with link time reference
      Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
      Creating a QMirClientScreen now
      ./camera-app: relocation error: ./camera-app: symbol _ZN9QtPrivate20QStringList_containsEPK11QStringList13QLatin1StringN2Qt15CaseSensitivityE, version Qt_5 not defined in file libQt5Core.so.5 with link time reference
      Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
      Creating a QMirClientScreen now
      ./camera-app: relocation error: ./camera-app: symbol _ZN9QtPrivate20QStringList_containsEPK11QStringList13QLatin1StringN2Qt15CaseSensitivityE, version Qt_5 not defined in file libQt5Core.so.5 with link time reference
      

      unity8.log :

      [2021-04-08:18:36:52.412] qtmir.applications: Application["com.ubuntu.camera_camera"]::Application()
      [2021-04-08:18:36:52.414] toplevelwindowmodel: prependPlaceholder(com.ubuntu.camera_camera)
      [2021-04-08:18:36:52.505] file:///usr/share/unity8//Stage/Stage.qml:1880:17: QML WindowInfoItem: Binding loop detected for property "maxWidth"
      [2021-04-08:18:36:52.523] toplevelwindowmodel: setFocusedWindow(Window[0x32212a00, id=7, null])
      [2021-04-08:18:36:52.523] toplevelwindowmodel: prependSurfaceHelper after (index=0,appId=com.ubuntu.camera_camera,surface=0x0,id=7)
      [2021-04-08:18:36:52.524] qtmir.sessions: Wakelock acquired "7"
      [2021-04-08:18:36:52.537] qtmir.mir: SessionAuthorizer::connection_is_allowed - this= SessionAuthorizer(0x7e3417b130) pid= 7320
      [2021-04-08:18:36:52.566] qtmir.mir: SessionAuthorizer::configure_input_is_allowed - this= SessionAuthorizer(0x7e3417b130) pid= 7320
      [2021-04-08:18:36:52.566] qtmir.mir: SessionAuthorizer::set_base_input_configuration_is_allowed - this= SessionAuthorizer(0x7e3417b130) pid= 7320
      [2021-04-08:18:36:52.566] qtmir.mir: SessionAuthorizer::configure_display_is_allowed - this= SessionAuthorizer(0x7e3417b130) pid= 7320
      [2021-04-08:18:36:52.566] qtmir.mir: SessionAuthorizer::set_base_display_configuration_is_allowed - this= SessionAuthorizer(0x7e3417b130) pid= 7320
      [2021-04-08:18:36:52.566] qtmir.mir: SessionAuthorizer::screencast_is_allowed - this= SessionAuthorizer(0x7e3417b130) pid= 7320
      [2021-04-08:18:36:52.567] qtmir.mir: SessionAuthorizer::prompt_session_is_allowed - this= SessionAuthorizer(0x7e3417b130) pid= 7320
      [2021-04-08:18:36:52.573] qtmir.sessions: TaskController::onSessionStarting - sessionName=camera-app
      [2021-04-08:18:36:52.574] qtmir.applications: Application["com.ubuntu.camera_camera"]::addSession(session=qtmir: Session(0x3220ff20))
      [2021-04-08:18:36:52.706] qtmir.sessions: TaskController::onSessionStopping - sessionName=camera-app
      [2021-04-08:18:36:52.706] qtmir.applications: Application["com.ubuntu.camera_camera"]::setInternalState(state=Stopped)
      [2021-04-08:18:36:52.726] toplevelwindowmodel: setFocusedWindow(0x0)
      [2021-04-08:18:36:52.727] toplevelwindowmodel: removeAt after  apps left 0
      [2021-04-08:18:36:52.727] file:///usr/share/unity8//Stag/Stage.qml:150: TypeError: Cannot read property 'confinesMousePointer' of null
      [2021-04-08:18:36:52.728] qtmir.sessions: Wakelock released "7"
      [2021-04-08:18:36:52.741] qtmir.applications: Application["com.ubuntu.camera_camera"]::~Application()
      [2021-04-08:18:36:52.955] ApplicationManager::onProcessFailed - upstart reports failure of application "com.ubuntu.camera_camera" that AppManager is not managing
      [2021-04-08:18:36:52.972] ApplicationManager::onProcessStopped reports stop of appId= "com.ubuntu.camera_camera" which AppMan is not managing, ignoring the event
      

      How can I restore work of camera-app application?

      M 1 Reply Last reply Reply Quote 0
      • M
        Markatrafik @Markatrafik last edited by

        Very strange. The library is in the system

        /usr/lib/aarch64-linux-gnu/libubuntu_application_api_touch_mirclient.so.3.0.0

        exists, but the new version of camera-app can't link the symbol in it

        How can I restore previous, working version of the application?

        K 1 Reply Last reply Reply Quote 0
        • K
          kugiigi @Markatrafik last edited by

          @markatrafik Which device do you have? It's working on my Nexus 5.

          M Keneda 2 Replies Last reply Reply Quote 0
          • M
            Markatrafik @kugiigi last edited by

            @kugiigi Xaomi Redmi Note 7

            How is it possible that the compiled library has the same index:
            *.so.3.0.0
            but they are linked differently, what kind of practice is this?

            1 Reply Last reply Reply Quote 0
            • Keneda
              Keneda @kugiigi last edited by

              @kugiigi I think he's on redmi Note 7, with a GSI 9 port.

              So maybe if last camera update use QT 5.12, and GSI 9 port doesn't have QT 5.12...

              2015-Now : Meizu MX4 (ubp OTA-22) for daily use
              Spare : Nexus 5

              stanwood M 2 Replies Last reply Reply Quote 0
              • stanwood
                stanwood @Keneda last edited by

                @keneda I confirm new camera update works on RN7 Lavender with official port.

                Redmi Note 7 stable
                Nexus 5 stable
                If God has a computer, it must be a GNU/Linux

                Keneda W 2 Replies Last reply Reply Quote 0
                • Keneda
                  Keneda @stanwood last edited by

                  @stanwood
                  Yes it works on my MX4 too.

                  2015-Now : Meizu MX4 (ubp OTA-22) for daily use
                  Spare : Nexus 5

                  1 Reply Last reply Reply Quote 0
                  • Keneda
                    Keneda last edited by

                    Here it goes : https://gitlab.com/ubports/apps/camera-app/-/issues/167

                    2015-Now : Meizu MX4 (ubp OTA-22) for daily use
                    Spare : Nexus 5

                    1 Reply Last reply Reply Quote 0
                    • M
                      Markatrafik @Keneda last edited by Markatrafik

                      @keneda ubports_GSI_installer_v10.zip

                      $ dpkg -l | grep libqt5core
                      ii libqt5core5a:arm64 5.9.5+dfsg-0ubports3 arm64 Qt 5 core module

                      Why doesn't the installer in the interface keep track of this and kill the application as a result?

                      ~$ ldd /userdata/system-data/opt/click.ubuntu.com/com.ubuntu.camera/3.2.3/camera-app
                      linux-vdso.so.1 =>  (0x00000072f54c8000)
                      libQt5Gui.so.5 => /usr/lib/aarch64-linux-gnu/libQt5Gui.so.5 (0x00000072f501a000)
                      libstdc++.so.6 => /usr/lib/aarch64-linux-gnu/libstdc++.so.6 (0x00000072f4e8b000)
                      libQt5Qml.so.5 => /usr/lib/aarch64-linux-gnu/libQt5Qml.so.5 (0x00000072f4aec000)
                      libQt5Core.so.5 => /usr/lib/aarch64-linux-gnu/libQt5Core.so.5 (0x00000072f45ae000)
                      libgcc_s.so.1 => /lib/aarch64-linux-gnu/libgcc_s.so.1 (0x00000072f458d000)
                      libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x00000072f4447000)
                              /lib/ld-linux-aarch64.so.1 (0x00000072f549d000)
                      libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x00000072f441b000)
                      libGLESv2.so.2 => /usr/lib/aarch64-linux-gnu/libhybris-egl/libGLESv2.so.2 (0x00000072f43f4000)
                      libpng12.so.0 => /lib/aarch64-linux-gnu/libpng12.so.0 (0x00000072f43c5000)
                      libharfbuzz.so.0 => /usr/lib/aarch64-linux-gnu/libharfbuzz.so.0 (0x00000072f4362000)
                      libz.so.1 => /lib/aarch64-linux-gnu/libz.so.1 (0x00000072f433b000)
                      libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x00000072f428e000)
                      libQt5Network.so.5 => /usr/lib/aarch64-linux-gnu/libQt5Network.so.5 (0x00000072f410c000)
                      libicui18n.so.55 => /usr/lib/aarch64-linux-gnu/libicui18n.so.55 (0x00000072f3e9f000)
                      libicuuc.so.55 => /usr/lib/aarch64-linux-gnu/libicuuc.so.55 (0x00000072f3cfe000)
                      libdouble-conversion.so.1 => /usr/lib/aarch64-linux-gnu/libdouble-conversion.so.1 (0x00000072f3cdd000)
                      libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x00000072f3cca000)
                      libglib-2.0.so.0 => /lib/aarch64-linux-gnu/libglib-2.0.so.0 (0x00000072f3bc3000)
                      libhybris-common.so.1 => /usr/lib/aarch64-linux-gnu/libhybris-common.so.1 (0x00000072f3b95000)
                      libfreetype.so.6 => /usr/lib/aarch64-linux-gnu/libfreetype.so.6 (0x00000072f3af8000)
                      libgraphite2.so.3 => /usr/lib/aarch64-linux-gnu/libgraphite2.so.3 (0x00000072f3acb000)
                      libicudata.so.55 => /usr/lib/aarch64-linux-gnu/libicudata.so.55 (0x00000072f2204000)
                      libpcre.so.3 => /lib/aarch64-linux-gnu/libpcre.so.3 (0x00000072f2193000)
                      librt.so.1 => /lib/aarch64-linux-gnu/librt.so.1 (0x00000072f217c000)
                      

                      BTW, the application was prelinked by the short library prefix, .5 <- version 5, but could not find the Symbol already after launch.
                      Either you need to specify the full .5.12 index for linking, or check the dependencies in the distribution package!

                      How to install previous version, that linked with Qt 5.9 ?!

                      Keneda 1 Reply Last reply Reply Quote 0
                      • Keneda
                        Keneda @Markatrafik last edited by Keneda

                        @markatrafik
                        For now the only way would be to find the click and install it manually (with command line or using Ubuntu Touch Tweak Tool) after uninstalling the defective one.

                        I don't know where to find the previous clicks, an ehancement issue for openstore to allow installing previous version is open, but still not completed.

                        EDIT : https://gitlab.com/theopenstore/openstore-meta/-/issues/259

                        2015-Now : Meizu MX4 (ubp OTA-22) for daily use
                        Spare : Nexus 5

                        1 Reply Last reply Reply Quote 0
                        • Keneda
                          Keneda last edited by Keneda

                          If you know how to built .click package using clickable :
                          https://gitlab.com/ubports/apps/camera-app/-/tree/ae131c5d8b55ec2d7bb96745491b9cc9430fd36c

                          2015-Now : Meizu MX4 (ubp OTA-22) for daily use
                          Spare : Nexus 5

                          M 1 Reply Last reply Reply Quote 0
                          • K
                            kugiigi last edited by

                            Previous versions can be requested from Brian. GSI ports are still not officially supported right?

                            But I'm thinking, this may have happened because clickable now defaults to building with Qt5.12 and perhaps apps that don't explicitly use the new framework will still be offered to <=OTA-15 devices.

                            Keneda 1 Reply Last reply Reply Quote 0
                            • M
                              Markatrafik @Keneda last edited by

                              @keneda Thanks πŸ™‚ I just pressed the "Update" button and had sex with the system for hours.

                              1 Reply Last reply Reply Quote 0
                              • Keneda
                                Keneda @kugiigi last edited by

                                @kugiigi said in The camera-app is crashing!:

                                this may have happened because clickable now defaults to building with Qt5.12

                                That's what i guessed few posts above ^^

                                2015-Now : Meizu MX4 (ubp OTA-22) for daily use
                                Spare : Nexus 5

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  Markatrafik @Keneda last edited by Markatrafik

                                  @keneda Can the interface/installer say it won't work with these libraries instead of just overwriting the application to make it broken? Somebody should have thought of that when they did the rebuild.

                                  I can't find my old .click package and I can't figure out how to download it from OpenStore either. 😞

                                  P.S. In idea it would be good for me to deploy a development environment on a PC to be able to cross-compile something for the phone, how to do this?

                                  Keneda AppLee 2 Replies Last reply Reply Quote 0
                                  • Keneda
                                    Keneda @Markatrafik last edited by

                                    @markatrafik said in The camera-app is crashing!:

                                    I can't find my old .click package and I can't figure out how to download it from OpenStore either.

                                    You need to download files from Git and then use clicakble to build the click, see post above.
                                    Or you need to ask the click from @mariogrip .

                                    @markatrafik said in The camera-app is crashing!:

                                    In idea it would be good for me to deploy a development environment on a PC to be able to cross-compile something for the phone, how to do this?

                                    No idea, i'm a noob for those things πŸ˜“

                                    2015-Now : Meizu MX4 (ubp OTA-22) for daily use
                                    Spare : Nexus 5

                                    1 Reply Last reply Reply Quote 0
                                    • Keneda
                                      Keneda last edited by

                                      Must add that a fix should be released as soon as devs will see this issue, like the few times that kind of things comes with a core app release.

                                      2015-Now : Meizu MX4 (ubp OTA-22) for daily use
                                      Spare : Nexus 5

                                      1 Reply Last reply Reply Quote 0
                                      • AppLee
                                        AppLee @Markatrafik last edited by

                                        @markatrafik
                                        For app development, the best starting point is there:
                                        https://docs.ubports.com/en/latest/appdev/index.html

                                        Install clickable and try a simple hello world to figure things out.
                                        Be aware of a noob issue, if you forgot apparmor policy then when you add it, you also have to bump the version number in order for it to get applied.

                                        arubislander 1 Reply Last reply Reply Quote 1
                                        • arubislander
                                          arubislander @AppLee last edited by

                                          @applee said in The camera-app is crashing!:

                                          Be aware of a noob issue, if you forgot apparmor policy then when you add it, you also have to bump the version number in order for it to get applied.

                                          This is no longer necessary. Newer versions of clickable uninstall the old version of the click package before installing the new one.

                                          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                                          Happily running Ubuntu Touch
                                          BQ Aquaris M10 FHD (RC)
                                          Google Pixel 3a (DEV)
                                          Meizu Pro 5 (DEV)
                                          PinePhone / PineTab UT CE (DEV)

                                          AppLee M 2 Replies Last reply Reply Quote 1
                                          • AppLee
                                            AppLee @arubislander last edited by

                                            @arubislander
                                            Ooooh fancy 😏
                                            Nice thing, I didn't notice because I was running in auto pilot πŸ™‚

                                            Thanks for the info.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post