Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 4 Support (Qt 6) › NativeUtils displayCameraPicker

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25070

    David

    Hello,

    When using the¬†NativeUtils.displayCameraPicker, I’ve have some issues which might be related.

    1st problem : At fisrt, when I press on the yellow button, I get prompted for permission (normal). When the popup is dismissed, nothing happens(the camera video should be displayed), I get a white screen (due to the rectangle). Pressing on the yellow button again opens up the native camera utilities.

     

    2nd: problem:¬† In the scenario where the native camera utilities is open, when I take a picture and pressed on the valid icon, the app does not log the CAMERA FINISHED debug string. Then I’m back on my white screen.

     

    Build Target: arm64-v8 / x86-64

    Compiler: Android 6.4.1 Clang arm64-v8a

     

    import Felgo 4.0
    import QtQuick 2.15
    
    
    Rectangle {
        id: cameraView
        color: "#F3F5F7"
    
        Connections {
            target: NativeUtils
            onCameraPickerFinished: {
                console.log("CAMERA FINISHED")
            }
        }
    
        AppButton {
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 50
            anchors.horizontalCenter: parent.horizontalCenter
            height: 30
            width: 70
            textColor: "black"
            backgroundColor: "yellow"
            text: "Photo"
            onPressed: NativeUtils.displayCameraPicker("test");
        }
    }

    Logs :

    D EGL_emulation: app_time_stats: avg=1.73ms min=1.57ms max=1.86ms count=5
    D EGL_emulation: app_time_stats: avg=2.11ms min=1.33ms max=3.44ms count=6
    W libkeymanage_x86_64.so: 2023-07-02 18:50:27[thr:8919]unknown(0): expression for onPressed@qrc:/Core/keymanage/mobile/pages/components/Camera.qml:33
    W libkeymanage_x86_64.so: 2023-07-02 18:50:27[thr:8919]unknown(0): Too many arguments, ignoring 1
    D EGL_emulation: app_time_stats: avg=3.57ms min=1.51ms max=10.98ms count=6
    D CompatibilityChangeReporter: Compat change id reported: 78294732; UID 10228; state: DISABLED
    W libkeymanage_x86_64.so: 2023-07-02 18:51:04[thr:8896]unknown(0): Found no valid pending permission request for request code 235
    D EGL_emulation: app_time_stats: avg=36592.07ms min=36592.07ms max=36592.07ms count=1
    D EGL_emulation: app_time_stats: avg=109.62ms min=2.50ms max=193.30ms count=4
    D EGL_emulation: app_time_stats: avg=79.67ms min=2.27ms max=384.19ms count=5
    W libkeymanage_x86_64.so: 2023-07-02 18:51:33[thr:8919]unknown(0): expression for onPressed@qrc:/Core/keymanage/mobile/pages/components/Camera.qml:33
    W libkeymanage_x86_64.so: 2023-07-02 18:51:33[thr:8919]unknown(0): Too many arguments, ignoring 1
    D EGL_emulation: app_time_stats: avg=266.18ms min=1.44ms max=1587.86ms count=6
    E Surface : freeAllBuffers: 1 buffers were freed while being dequeued!
    E BLASTBufferQueue: [VRI[QtActivity]#0](f:0,a:1) Applying pending transactions on dtor 1
    E Surface : freeAllBuffers: 1 buffers were freed while being dequeued!
    E SurfaceSyncer: Failed to find sync for id=0
    E Surface : getSlotFromBufferLocked: unknown buffer: 0x0
    I Choreographer: Skipped 58 frames! The application may be doing too much work on its main thread.
    E SurfaceSyncer: Failed to find sync for id=0
    I OpenGLRenderer: Davey! duration=1040ms; Flags=1, FrameTimelineVsyncId=849332, IntendedVsync=34883163996658, Vsync=34883163996658, InputEventId=997490191, HandleInputStart=34883171713700, AnimationStart=34883171750800, PerformTraversalsStart=34883171783800, DrawStart=34883653000700, FrameDeadline=34883180663324, FrameInterval=34883171690800, FrameStartTime=16666666, SyncQueued=34883653374100, SyncStart=34883794998500, IssueDrawCommandsStart=34883795173800, SwapBuffers=34883798945500, FrameCompleted=34884346155700, DequeueBufferDuration=267993800, QueueBufferDuration=375700, GpuCompleted=34884346155700, SwapBuffersCompleted=34884154710400, DisplayPresentTime=0, CommandSubmissionCompleted=34883798945500,
    D EGL_emulation: app_time_stats: avg=202.36ms min=6.81ms max=406.70ms count=4
    D EGL_emulation: app_time_stats: avg=46.56ms min=1.63ms max=194.19ms count=6
    D EGL_emulation: app_time_stats: avg=2.24ms min=1.86ms max=2.73ms count=5

    Thanks for the help.

     

    #25077

    Alex
    Felgo Team

    Hi David,

    thank you for your info. We were now able to reproduce this on one of our Android devices (while most are working) and can investigate this further to fix it with the next update. If there is a workaround that you can apply on your end, I will let you know.

    Best,
    Alex

    #25079

    David

    Thank you Alex.

    Waiting for your anwser.

    Best regards,

    David

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded