This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DRA74: Browser app is not working with VDSK3.04

Part Number: DRA74

Tool/software: Linux

Hello Team, 

We have integrated VSDK3.04 in our builds and after that our Browser applications(HSysCtrlBrowser,HSysCtrlBrowserClient) are not working. The same apps were working properly with PSDK 3_03.

Do we need to do any configuration/up-gradation for Browsers as well.

Regards,

Ikshwaku 

  • Hi Ikshwaku,

    Can you please provide more details on where the failure occurs? Also can you attach the contents of the /etc/powervr.ini file.

    Regards
    Shravan
  • Can you provide more details about the error behaviour?

    Are they crashing? What kind of debug logs are printed etc.

    Regards,

    Subhajit 

  • Hello Subhajit/Shravan,

    Browser is not crashing, it is not starting in the first place. we are using the following commands:

    export XDG_RUNTIME_DIR=/var/run/root/1000
    export LD_LIBRARY_PATH=/mnt/v/lib
    layer-add-surfaces 100 20 &
    cd /mnt/v
    root@mmt2020-a880:/mnt/v# ./HSysCtrlBrowser --no-sandbox --enable-logging --v=1 &
    [2] 2135
    root@mmt2020-a880:/mnt/v#
    root@mmt2020-a880:/mnt/v#
    root@mmt2020-a880:/mnt/v# ./HSysCtrlBrowserClient
    Waiting for proxy availability... (Abort with CTRL+C)
    [0101/001457:INFO:context.cc(141)] HSysCtrlBrowser_Engine Version Information.
    GitCommitHash #2d1603aefc50b9819fbab80debb29ffed3f77fb7, GitCommitDate:2018-08-29 12:55:26 +0000
    BuildUser: Kvelusamy, BuildDate: 2018-10-03 10:04:23
    [0101/001457:ERROR:browser_main_loop.cc(219)] Running without the SUID sandbox! See chromium.googlesource.com/.../linux_suid_sandbox_development.md for more information on developing with the sandbox on.
    [0101/001457:VERBOSE1:zygote_main_linux.cc(598)] ZygoteMain: initializing 0 fork delegates
    [897775.764] -> wl_display@1.get_registry(new id wl_registry@2)
    [897775.998] -> wl_display@1.sync(new id wl_callback@3)
    [897776.279] wl_display@1.delete_id(3)
    [897776.357] wl_registry@2.global(1, "wl_compositor", 4)
    [897776.507] wl_registry@2.global(2, "wl_subcompositor", 1)
    [897776.581] wl_registry@2.global(3, "wl_scaler", 2)
    [897776.652] wl_registry@2.global(4, "wp_presentation", 1)
    [897776.723] wl_registry@2.global(5, "wl_data_device_manager", 3)
    [897776.797] wl_registry@2.global(6, "wl_shm", 1)
    [897776.870] wl_registry@2.global(7, "wl_drm", 1)
    [897776.988] wl_registry@2.global(8, "wl_seat", 5)
    [897777.060] wl_registry@2.global(9, "wl_output", 2)
    [897777.137] -> wl_registry@2.bind(9, "wl_output", 1, new id [unknown]@4)
    [897777.243] wl_registry@2.global(10, "zwp_linux_dmabuf_v1", 1)
    [897777.314] wl_registry@2.global(11, "zwp_input_panel_v1", 1)
    [897777.386] wl_registry@2.global(12, "zwp_input_method_v1", 1)
    [897777.456] wl_registry@2.global(13, "zwp_text_input_manager_v1", 1)
    [897777.527] wl_registry@2.global(14, "ivi_application", 1)
    [897777.616] wl_registry@2.global(15, "ivi_controller", 1)
    [897777.690] wl_registry@2.global(16, "ivi_input", 1)
    [897777.760] wl_callback@3.done(1)
    [897777.801] -> wl_display@1.sync(new id wl_callback@3)
    [897777.978] wl_display@1.delete_id(3)
    [897778.022] wl_output@4.geometry(0, 0, 0, 0, 0, "unknown", "unknown", 0)
    [897778.212] wl_output@4.mode(3, 800, 480, 60000)
    [897778.334] wl_callback@3.done(1)
    [0101/001457:VERBOSE1:child_thread_impl.cc(356)] Mojo is disabled on child
    [897798.852] -> wl_display@1.get_registry(new id wl_registry@2)
    [897798.937] -> wl_display@1.sync(new id wl_callback@3)
    [897799.165] wl_display@1.delete_id(3)
    [897799.223] wl_registry@2.global(1, "wl_compositor", 4)
    [897799.320] -> wl_registry@2.bind(1, "wl_compositor", 1, new id [unknown]@4)
    [897799.449] wl_registry@2.global(2, "wl_subcompositor", 1)
    [897799.575] wl_registry@2.global(3, "wl_scaler", 2)
    [897799.652] wl_registry@2.global(4, "wp_presentation", 1)
    [897799.725] wl_registry@2.global(5, "wl_data_device_manager", 3)
    [897799.801] -> wl_registry@2.bind(5, "wl_data_device_manager", 1, new id [unknown]@5)
    [897799.904] wl_registry@2.global(6, "wl_shm", 1)
    [897800.054] -> wl_registry@2.bind(6, "wl_shm", 1, new id [unknown]@6)
    [897800.159] wl_registry@2.global(7, "wl_drm", 1)
    [897800.234] wl_registry@2.global(8, "wl_seat", 5)
    [897800.308] -> wl_registry@2.bind(8, "wl_seat", 1, new id [unknown]@7)
    [897800.410] -> wl_data_device_manager@5.get_data_device(new id wl_data_device@8, wl_seat@7)
    [897800.480] wl_registry@2.global(9, "wl_output", 2)
    [897800.559] -> wl_registry@2.bind(9, "wl_output", 1, new id [unknown]@9)
    [897800.680] wl_registry@2.global(10, "zwp_linux_dmabuf_v1", 1)
    [897800.754] wl_registry@2.global(11, "zwp_input_panel_v1", 1)
    [897800.828] wl_registry@2.global(12, "zwp_input_method_v1", 1)
    [897800.903] wl_registry@2.global(13, "zwp_text_input_manager_v1", 1)
    [897800.975] wl_registry@2.global(14, "ivi_application", 1)
    [897801.050] -> wl_registry@2.bind(14, "ivi_application", 1, new id [unknown]@10)
    [897801.148] wl_registry@2.global(15, "ivi_controller", 1)
    [897801.220] wl_registry@2.global(16, "ivi_input", 1)
    [897801.292] wl_callback@3.done(1)
    [897808.916] wl_seat@7.capabilities(3)
    [897809.041] -> wl_seat@7.get_keyboard(new id wl_keyboard@3)
    [897809.099] -> wl_compositor@4.create_surface(new id wl_surface@11)
    [897809.163] -> wl_seat@7.get_pointer(new id wl_pointer@12)
    [897809.222] wl_output@9.geometry(0, 0, 0, 0, 0, "unknown", "unknown", 0)
    [897809.388] wl_output@9.mode(3, 800, 480, 60000)
    [897809.673] wl_keyboard@3.keymap(1, fd 63, 45094)
    [0101/001457:VERBOSE1:pref_proxy_config_tracker_impl.cc(218)] 0x1cfe00: set chrome proxy config service to 0x13d4b0
    [0101/001457:VERBOSE1:pref_proxy_config_tracker_impl.cc(355)] 0x1cfe00: Done pushing proxy to UpdateProxyConfig
    InitBrowser exit!! state: 0
    [897827.864] -> wl_display@1.get_registry(new id wl_registry@13)
    [897827.976] -> wl_display@1.sync(new id wl_callback@14)
    [897828.235] wl_display@1.delete_id(14)
    [897828.285] wl_registry@13.global(1, "wl_compositor", 4)
    [897828.362] wl_registry@13.global(2, "wl_subcompositor", 1)
    [897828.462] wl_registry@13.global(3, "wl_scaler", 2)
    [897828.552] wl_registry@13.global(4, "wp_presentation", 1)
    [897828.629] wl_registry@13.global(5, "wl_data_device_manager", 3)
    [897828.701] wl_registry@13.global(6, "wl_shm", 1)
    [897828.773] wl_registry@13.global(7, "wl_drm", 1)
    [897828.847] -> wl_registry@13.bind(7, "wl_drm", 1, new id [unknown]@15)
    [897828.948] wl_registry@13.global(8, "wl_seat", 5)
    [897829.021] wl_registry@13.global(9, "wl_output", 2)
    Fontconfig warning: ignoring LC_CTYPE=LC_NUMERIC=LC_TIME=LC_COLLATE=LC_MONETARY=LC_MESSAGES=LC_PAPER=LC_NAME=LC_ADDRESS=LC_TELEPHONE=LC_MEASUREMENT=LC_IDENTIFICATION: not a valid region tag
    [898163.394] wl_registry@13.global(10, "zwp_linux_dmabuf_v1", 1)
    [898163.534] wl_registry@13.global(11, "zwp_input_panel_v1", 1)
    [898163.619] wl_registry@13.global(12, "zwp_input_method_v1", 1)
    [898163.691] wl_registry@13.global(13, "zwp_text_input_manager_v1", 1)
    [898163.765] wl_registry@13.global(14, "ivi_application", 1)
    [898163.842] wl_registry@13.global(15, "ivi_controller", 1)
    [898163.916] wl_registry@13.global(16, "ivi_input", 1)
    [898163.991] wl_callback@14.done(1)
    [898164.044] -> wl_display@1.sync(new id wl_callback@14)
    [898164.281] wl_display@1.delete_id(14)
    [898164.342] wl_drm@15.device("/dev/dri/card0")
    [898164.469] -> wl_drm@15.authenticate(2)
    [898164.524] wl_drm@15.format(875713089)
    [898164.580] wl_drm@15.format(875713112)
    [898164.635] wl_drm@15.format(961959257)
    [898164.690] wl_drm@15.format(825316697)
    [898164.731] wl_drm@15.format(842093913)
    [898164.773] wl_drm@15.format(909202777)
    [898164.827] wl_drm@15.format(875713881)
    [898164.887] wl_drm@15.format(842094158)
    [898164.932] wl_drm@15.format(909203022)
    [898164.989] wl_drm@15.format(1448695129)
    [898165.034] wl_drm@15.format(1498831189)
    [898165.082] wl_callback@14.done(1)
    [898165.256] -> wl_display@1.sync(new id wl_callback@14)
    [898165.451] wl_display@1.delete_id(14)
    [898165.510] wl_drm@15.authenticated()
    [898165.546] wl_callback@14.done(1)
    wlpvr: PVR Services Initialised
    [0101/001458:INFO:widget.cc(528)] Surface Bounds: width-> 780, height-> 460
    [898202.586] -> wl_compositor@4.create_surface(new id wl_surface@14)
    [898203.064] -> ivi_application@10.surface_create(7001, wl_surface@14, new id ivi_surface@16)
    [898203.194] -> wl_compositor@4.create_region(new id wl_region@17)
    [898203.263] -> wl_region@17.add(0, 0, 780, 460)
    surface : 7001 created
    [898203.371] -> wl_surface@14.set_input_region(wl_region@17)
    [898203.415] -> wl_surface@14.set_opaque_region(wl_region@17)
    [898203.457] -> wl_region@17.destroy()
    surface: 7001 destroyed
    CreateNewTab exit!! tabId: 607676608
    CreateNewTab exit!! surfaceId: 0

    As per the above logs surface is created and destroyed immediately. This same setup was working properly without VSDK 3.04.

    Regards,
    Ikshwaku
  • https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/powervr.iniAttaching powervr.ini.

    Regards,

    Ikshwaku

  • Ikshwaku,

    If my understanding is correct, these wayland_debug logs are printed by the browser and not by weston. Am I correct?

    Is this on weston 2.0 or 1.11?

    Regards,

    Subhajit

  • We have exported this variable "WAYLAND_DEBUG=1", Then only weston logs are coming logs are coming. without this flag weston logs are not coming.
    This is with VSDK 3.04 + weston 1.11.

    Regards,
    Ikshwaku
  • Ikshwaku,

    Can you reproduce this issue on a TI EVM? In that case I can take the yocto recipes and try it out here.

    My hunch is we will need to debug the browser and the DDK APIs it is using to root cause this.

    Regards,
    Subhajit
  • As of the last debug session, this is closed