VIM3L - Error while using GPU

Which Khadas SBC do you use?

VIM3L

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Khadas official images, self built images, or others?

Khadas official image - vim3l-ubuntu-20.04-gnome-linux-4.9-fenix-1.1.1-220725-emmc.img.xz

Please describe your issue below:

I have a problem with running chromium browser using a GPU. Im using fresh khadas Ubunt Image and get “Exiting GPU process due to errors during initialization” error while initializing app. Trying to run chromium with parameters to force gpu are not working either.

Post a console log of your issue below:

khadas@Khadas:~chromium-browser
/usr/bin/chromium-browser: 12: xdg-settings: not found
2022/09/06 10:56:17.614376 cmd_run.go:1044: WARNING: cannot create user data directory: failed to verify SELinux context of /home/khadas/snap: exec: "matchpathcon": executable file not found in $PATH
Gtk-Message: 10:56:18.546: Failed to load module "canberra-gtk-module"
Gtk-Message: 10:56:18.552: Failed to load module "canberra-gtk-module"
[6198:6312:0906/105618.683749:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[6198:6312:0906/105618.683850:ERROR:select_file_dialog_linux_portal.cc(242)] Failed to read portal version property
[6326:6326:0906/105619.179985:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[6386:6386:0906/105620.035623:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[6410:6410:0906/105620.217002:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
[6365:8:0906/105620.247255:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

The Linux 4.9 kernel doesn’t support gpu on desktop, there is only fbdev gpu under framebuffer console.

1 Like

Thanks, I’m gonna check with higher version of Kernel and let you know if case of any new problems. By the way are u planning to release prepared Linux oS with Kernal 5+ image for eMMc installation?

Hey, as u said i tried to run simulation at chromium on khadas image - vim3-ubuntu-20.04-gnome-linux-5.18-fenix-1.1.1-220725.img.xz, GPU is fine around 45 fps but after 1-2 minutes of work at VIM3 chromium is crashing with this output “Webgl context lost please reload the page chromium”. Its almost same for VIM3L but for VIM3L it happens after 3-5min. Any suggestions how can we fix this problem?

Hello @Szymaniak

We will check on our side.

We trying to test SVG animation but similiar problem occurs with youtube videos for example.

Hello @Szymaniak

We have checked with this image and we can’t reproduce the crash issue.

Could please tell us how you do the testing ?

Hey,
tests were done with fresh Ubuntu 20.04 with Kernel 5.18 Image. Problem was occured with both browser Firefox and Chromium in first few minutes when animation was going more rough. As i said its SVG animation which i can’t really share its hosted by separately device. I’ll try to find another public animation that make similar crash so you can reproduce the crash issue.

I did some tests again, it seems like my flash drive might be injured, I’ll try it tomorrow with new device and let You know if that helped.

Ok, as I did some more tests with booting from USB flash drives. I did tests after installing image to emmc with Krescue and I didn’t encounter any crash issues now atleast for VIM3L.

I have encountered new problem with VIM3 Basic after erasing old emmc system and wrtiting new - Ubuntu 20.04 at 5.18 Kernel VIM3 is not booting from emmc and USB flash. I can’t use USB burning tool either because: (Burning Tool works fine with VIM3L I replaced cable with new one but ineffectively)

[15:14:35 088][Global][Inf]--USB_Burning_Tool Version: V2.2.4
[15:14:35 088][Global][Inf]--Windows Version: Microsoft Windows 10, Bit: 64
[15:14:35 088][Global][Inf]--Scan usb device
[15:14:35 088][Global][Inf]--Aml scan WorldCup Device
[15:14:35 093][Global][Inf]--Host: Kontroler hosta zgodny z USB xHCI
[15:14:35 093][Global][Inf]--DevPath:\\?\pci#ven_1022&dev_43d5&subsys_11421b21&rev_01#4&2c18e2e3&0&000b#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:14:35 093][Global][Inf]---->Roothub:USB#ROOT_HUB30#5&4087d53&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:14:35 093][Global][Inf]-------->[Port0]NoDeviceConnected
[15:14:35 093][Global][Inf]-------->[Port1]NoDeviceConnected
[15:14:35 093][Global][Inf]-------->[Port2]NoDeviceConnected
[15:14:35 093][Global][Inf]-------->[Port3]NoDeviceConnected
[15:14:35 093][Global][Inf]-------->[Port4]NoDeviceConnected
[15:14:35 093][Global][Inf]-------->[Port5]NoDeviceConnected
[15:14:35 093][Global][Inf]-------->[Port6]NoDeviceConnected
[15:14:35 093][Global][Inf]-------->[Port7]NoDeviceConnected
[15:14:35 093][Global][Inf]-------->[Port8]NoDeviceConnected
[15:14:35 093][Global][Inf]-------->[Port9]NoDeviceConnected
[15:14:35 093][Global][Inf]-------->[Port10]NoDeviceConnected
[15:14:35 106][Global][Inf]-------->[Port11]Other device
[15:14:35 106][Global][Inf]-------->[Port12]Other device
[15:14:35 106][Global][Inf]-------->[Port13]NoDeviceConnected
[15:14:35 107][Global][Inf]--Host: Kontroler hosta zgodny z USB xHCI
[15:14:35 107][Global][Inf]--DevPath:\\?\pci#ven_1022&dev_149c&subsys_7c021462&rev_00#4&3af4ccd4&0&0341#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:14:35 107][Global][Inf]---->Roothub:USB#ROOT_HUB30#5&1f32783&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:14:35 107][Global][Inf]-------->[Port0]NoDeviceConnected
[15:14:35 107][Global][Inf]-------->[Port1]NoDeviceConnected
[15:14:35 107][Global][Inf]-------->[Port2]NoDeviceConnected
[15:14:35 107][Global][Inf]-------->[Port3]NoDeviceConnected
[15:14:35 107][Global][Inf]-------->[Port4]NoDeviceConnected
[15:14:35 107][Global][Inf]-------->[Port5]NoDeviceConnected
[15:14:35 107][Global][Inf]-------->[Port6]NoDeviceConnected
[15:14:35 107][Global][Inf]-------->[Port7]NoDeviceConnected
[15:14:35 107][Global][Inf]--Scan USB host controller complete
[15:14:35 107][Global][Inf]--Update data center with HubMap
[15:14:35 107][Global][Inf]--Scan end 
[15:14:44 887][Global][Inf]--User click open button
[15:14:52 797][Global][Inf]--Image path C:\Users\MS\Downloads\vim3-ubuntu-20.04-gnome-linux-4.9-fenix-1.1.1-220725-emmc.img
[15:14:52 797][Global][Inf]--OpenImg C:\Users\MS\Downloads\vim3-ubuntu-20.04-gnome-linux-4.9-fenix-1.1.1-220725-emmc.img
[15:15:06 812][Global][Inf]--check img crc success! 
[15:15:06 813]Parse platform.conf 
[15:15:06 817][Global][Inf]--Parsing burning package
[15:15:06 817][Global][Inf]--Load configuration file C:\Users\MS\Desktop\Aml_Burn_Tool_V3.2.0\V2\temp
[15:15:06 817][Global][Inf]--Parse burning configuration file C:\Users\MS\Desktop\Aml_Burn_Tool_V3.2.0\V2\temp\burn_config.xml
[15:15:06 822][Global][Inf]--Get burning key
[15:15:15 585][Global][Inf]--Catch DBT_DEVICEARRIVAL
[15:15:15 586][Global][Inf]--Scan usb device
[15:15:15 586][Global][Inf]--Aml scan WorldCup Device
[15:15:15 587][Global][Inf]--Host: Kontroler hosta zgodny z USB xHCI
[15:15:15 587][Global][Inf]--DevPath:\\?\pci#ven_1022&dev_43d5&subsys_11421b21&rev_01#4&2c18e2e3&0&000b#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:15:15 587][Global][Inf]---->Roothub:USB#ROOT_HUB30#5&4087d53&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:15:15 590][Global][Inf]-------->[Port0]NoDeviceConnected
[15:15:15 594][Global][Inf]-------->[Port1]NoDeviceConnected
[15:15:15 594][Global][Inf]-------->[Port2]NoDeviceConnected
[15:15:15 594][Global][Inf]-------->[Port3]NoDeviceConnected
[15:15:15 594][Global][Inf]-------->[Port4]NoDeviceConnected
[15:15:15 594][Global][Inf]-------->[Port5]NoDeviceConnected
[15:15:15 595][Global][Inf]-------->[Port6]\\?\usb#vid_1b8e&pid_c003#6&3af0f9ce&0&7#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[15:15:15 598][Global][Inf]-------->[Port7]NoDeviceConnected
[15:15:15 598][Global][Inf]-------->[Port8]NoDeviceConnected
[15:15:15 598][Global][Inf]-------->[Port9]NoDeviceConnected
[15:15:15 598][Global][Inf]-------->[Port10]NoDeviceConnected
[15:15:15 599][Global][Inf]-------->[Port11]Other device
[15:15:15 599][Global][Inf]-------->[Port12]Other device
[15:15:15 599][Global][Inf]-------->[Port13]NoDeviceConnected
[15:15:15 599][Global][Inf]--Host: Kontroler hosta zgodny z USB xHCI
[15:15:15 599][Global][Inf]--DevPath:\\?\pci#ven_1022&dev_149c&subsys_7c021462&rev_00#4&3af4ccd4&0&0341#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:15:15 600][Global][Inf]---->Roothub:USB#ROOT_HUB30#5&1f32783&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:15:15 600][Global][Inf]-------->[Port0]NoDeviceConnected
[15:15:15 600][Global][Inf]-------->[Port1]NoDeviceConnected
[15:15:15 600][Global][Inf]-------->[Port2]NoDeviceConnected
[15:15:15 600][Global][Inf]-------->[Port3]NoDeviceConnected
[15:15:15 600][Global][Inf]-------->[Port4]NoDeviceConnected
[15:15:15 600][Global][Inf]-------->[Port5]NoDeviceConnected
[15:15:15 600][Global][Inf]-------->[Port6]NoDeviceConnected
[15:15:15 600][Global][Inf]-------->[Port7]NoDeviceConnected
[15:15:15 600][Global][Inf]--Scan USB host controller complete
[15:15:15 600][Global][Inf]--Update data center with HubMap
[15:15:15 600][Global][Inf]--Insert new hub1
[15:15:15 600][Global][Inf]--Update hub1 device data
[15:15:15 600][Global][Inf]--Update HUB1-1 
[15:15:15 600][Global][Inf]--Update HUB1-2 
[15:15:15 600][Global][Inf]--Update HUB1-3 
[15:15:15 600][Global][Inf]--Update HUB1-4 
[15:15:15 600][Global][Inf]--Update HUB1-5 
[15:15:15 600][Global][Inf]--Update HUB1-6 
[15:15:15 600][Global][Inf]--Update HUB1-7 \\?\usb#vid_1b8e&pid_c003#6&3af0f9ce&0&7#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[15:15:15 601][Global][Inf]--Begin thread for HUB1-7
[15:15:15 601][Global][Inf]--Burning thread HUB1-7 start
[15:15:15 601][Global][Inf]--Update HUB1-8 
[15:15:15 601][Global][Inf]--Update HUB1-9 
[15:15:15 601][Global][Inf]--Update HUB1-10 
[15:15:15 601][Global][Inf]--Update HUB1-11 
[15:15:15 601][Global][Inf]--Update HUB1-12 
[15:15:15 601][Global][Inf]--Update HUB1-13 
[15:15:15 601][Global][Inf]--Update HUB1-14 
[15:15:15 601][Global][Inf]--Add Hub1: \\.\USB#ROOT_HUB30#5&4087d53&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8} to m_HubDeviceDataVector
[15:15:15 601][Global][Inf]--Scan end 
[15:15:15 602][Global][Inf]--Burning thread HUB1-7 begin run
[15:15:17 252][Global][Inf]--User click start button
[15:15:17 253][Global][Inf]--SetErase Bootloader 1, Flash1
[15:15:17 253][Global][Inf]--Enable burning 1
[15:15:17 253][Global][Inf]--Scan usb device
[15:15:17 253][Global][Inf]--Aml scan WorldCup Device
[15:15:17 254][Global][Inf]--Host: Kontroler hosta zgodny z USB xHCI
[15:15:17 254][Global][Inf]--DevPath:\\?\pci#ven_1022&dev_43d5&subsys_11421b21&rev_01#4&2c18e2e3&0&000b#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:15:17 254][Global][Inf]---->Roothub:USB#ROOT_HUB30#5&4087d53&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:15:17 254][Global][Inf]-------->[Port0]NoDeviceConnected
[15:15:17 254][Global][Inf]-------->[Port1]NoDeviceConnected
[15:15:17 254][Global][Inf]-------->[Port2]NoDeviceConnected
[15:15:17 254][Global][Inf]-------->[Port3]NoDeviceConnected
[15:15:17 254][Global][Inf]-------->[Port4]NoDeviceConnected
[15:15:17 254][Global][Inf]-------->[Port5]NoDeviceConnected
[15:15:17 254][Global][Inf]-------->[Port6]\\?\usb#vid_1b8e&pid_c003#6&3af0f9ce&0&7#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[15:15:17 254][Global][Inf]-------->[Port7]NoDeviceConnected
[15:15:17 254][Global][Inf]-------->[Port8]NoDeviceConnected
[15:15:17 254][Global][Inf]-------->[Port9]NoDeviceConnected
[15:15:17 254][Global][Inf]-------->[Port10]NoDeviceConnected
[15:15:17 255][Global][Inf]-------->[Port11]Other device
[15:15:17 255][HUB1-7][Inf]--Open device handle \\?\usb#vid_1b8e&pid_c003#6&3af0f9ce&0&7#{a5dcbf10-6530-11d2-901f-00c04fb951ed}  0x00000c30
[15:15:17 255][Global][Inf]-------->[Port12]Other device
[15:15:17 255][Global][Inf]-------->[Port13]NoDeviceConnected
[15:15:17 255][Global][Inf]--Host: Kontroler hosta zgodny z USB xHCI
[15:15:17 255][Global][Inf]--DevPath:\\?\pci#ven_1022&dev_149c&subsys_7c021462&rev_00#4&3af4ccd4&0&0341#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:15:17 255][Global][Inf]---->Roothub:USB#ROOT_HUB30#5&1f32783&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:15:17 255][Global][Inf]-------->[Port0]NoDeviceConnected
[15:15:17 255][Global][Inf]-------->[Port1]NoDeviceConnected
[15:15:17 255][Global][Inf]-------->[Port2]NoDeviceConnected
[15:15:17 255][Global][Inf]-------->[Port3]NoDeviceConnected
[15:15:17 255][Global][Inf]-------->[Port4]NoDeviceConnected
[15:15:17 255][Global][Inf]-------->[Port5]NoDeviceConnected
[15:15:17 255][Global][Inf]-------->[Port6]NoDeviceConnected
[15:15:17 255][Global][Inf]-------->[Port7]NoDeviceConnected
[15:15:17 255][Global][Inf]--Scan USB host controller complete
[15:15:17 255][Global][Inf]--Update data center with HubMap
[15:15:17 255][Global][Inf]--Update hub1 device data
[15:15:17 255][Global][Inf]--Update HUB1-1 
[15:15:17 255][Global][Inf]--Update HUB1-2 
[15:15:17 256][Global][Inf]--Update HUB1-3 
[15:15:17 256][Global][Inf]--Update HUB1-4 
[15:15:17 256][Global][Inf]--Update HUB1-5 
[15:15:17 256][Global][Inf]--Update HUB1-6 
[15:15:17 256][Global][Inf]--Update HUB1-7 \\?\usb#vid_1b8e&pid_c003#6&3af0f9ce&0&7#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[15:15:17 317][HUB1-7][Inf]--CloneImageProxy
[15:15:17 317][Global][Inf]--Update HUB1-8 
[15:15:17 317][Global][Inf]--Update HUB1-9 
[15:15:17 317][Global][Inf]--Update HUB1-10 
[15:15:17 317][Global][Inf]--OpenImg C:\Users\MS\Downloads\vim3-ubuntu-20.04-gnome-linux-4.9-fenix-1.1.1-220725-emmc.img
[15:15:17 317][Global][Inf]--Update HUB1-11 
[15:15:17 317][Global][Inf]--Update HUB1-12 
[15:15:17 317][Global][Inf]--Update HUB1-13 
[15:15:17 317][Global][Inf]--Update HUB1-14 
[15:15:17 317][Global][Inf]--Scan end 
[15:15:17 317][HUB1-7][Inf]--Connect path=Kontroler hosta zgodny z USB xHCI/P0/P6
[15:15:17 317][HUB1-7][Inf]--Start burning...
[15:15:17 378][HUB1-7][Inf]--------------ERASE BOOTLOADER------------
[15:15:17 490][HUB1-7][Inf]--3-2-0-0
[15:15:17 490][HUB1-7][Inf]-------------Download DDR.USB-----------
[15:15:17 490][HUB1-7][Inf]--Close device handle 0x00000c30
[15:15:17 547][HUB1-7][Inf]--Open device handle \\?\usb#vid_1b8e&pid_c003#6&3af0f9ce&0&7#{a5dcbf10-6530-11d2-901f-00c04fb951ed}  0x00000c4c
[15:15:17 612][HUB1-7][Inf]--3-2-0-0-0-1-0-15
[15:15:17 620][HUB1-7][Inf]--Get GetChipID failed!
[15:15:17 620][HUB1-7][Inf]--Control write pll reg1 0xfffa0000:0x000000b1
[15:15:18 130][HUB1-7][Inf]--Control write pll reg1 0xfffa0000:0x00005183
[15:15:18 636][HUB1-7][Inf]--Write initial succeed
[15:15:18 636][HUB1-7][Inf]--Upload encrypt at 0xff800228
[15:15:18 639][HUB1-7][Inf]--chipid= 0x012112000007343641345650, ulValue = 0xe0f83180
[15:15:18 639][HUB1-7][Inf]--Read encrypt value succeed
[15:15:18 639][HUB1-7][Inf]--Download DDR.USB,size: 65536!
[15:15:18 663][HUB1-7][Inf]--Transfer complete 65536
[15:15:18 663][HUB1-7][Inf]--Run at address 0xfffa0000
[15:15:18 671][HUB1-7][Inf]--RunInRam success
[15:15:18 717][HUB1-7][Inf]--0-0-1-8-0-1-0-0
[15:15:18 717][HUB1-7][Inf]--Identify return 4
[15:15:18 717][HUB1-7][Inf]--CheckFileRunState return 1-8
[15:15:18 717][HUB1-7][Inf]-------------Download UBOOT.USB-----------
[15:15:18 721][HUB1-7][Inf]--0-0-1-8-0-1-0-0
[15:15:18 721][HUB1-7][Inf]--G12 init 
[15:15:18 721][HUB1-7][Inf]--Get Encrpt ulValue = 0xe0f83180
[15:15:18 722][HUB1-7][Inf]--Have Semaphore
[15:15:18 722][HUB1-7][Inf]--Download BL2
[15:15:18 722][HUB1-7]Aml_Libusb_bl2_boot2 start! 
[15:15:18 732][HUB1-7]sequence= 0, datasize= 16384, fipOffset= 65536
[15:15:18 746][HUB1-7]sequence= 1, datasize= 49152, fipOffset= 393216
[15:15:18 758][HUB1-7]sequence= 2, datasize= 16384, fipOffset= 229376
[15:15:18 773][HUB1-7]sequence= 3, datasize= 49152, fipOffset= 245760
[15:15:18 838][HUB1-7]sequence= 4, datasize= 16384, fipOffset= 65536
[15:15:18 851][HUB1-7]sequence= 5, datasize= 49152, fipOffset= 393216
[15:15:18 863][HUB1-7]sequence= 6, datasize= 16384, fipOffset= 229376
[15:15:18 878][HUB1-7]sequence= 7, datasize= 49152, fipOffset= 245760
[15:15:18 942][HUB1-7]sequence= 8, datasize= 16384, fipOffset= 65536
[15:15:18 955][HUB1-7]sequence= 9, datasize= 49152, fipOffset= 393216
[15:15:18 967][HUB1-7]sequence= 10, datasize= 16384, fipOffset= 229376
[15:15:18 982][HUB1-7]sequence= 11, datasize= 49152, fipOffset= 245760
[15:15:19 056][HUB1-7]sequence= 12, datasize= 49152, fipOffset= 294912
[15:15:19 737][HUB1-7]sequence= 13, datasize= 16384, fipOffset= 65536
[15:15:19 738]Get CSW, result[FAIL]
[15:15:19 738][HUB1-7]check sum FAIL
[15:15:19 738][HUB1-7]fail in download, sequence 13, ret= -1001
[15:15:19 738][HUB1-7]Aml_Libusb_bl2_boot2 end! 
[15:15:19 738][HUB1-7][Inf]--Release Semaphore
[15:15:19 738][HUB1-7][Err]--Uboot DownLoadGl2 failed
[15:15:19 741][HUB1-7][Err]--[0x10401001]Romcode/Bl2_Boot????
[15:15:19 741][HUB1-7][Inf]--Close device handle 0x00000c4c

Hello @Szymaniak

Could you try this image ?

https://dl.khadas.com/firmware/.test/vim3-ubuntu-20.04-gnome-linux-4.9-fenix-1.1.1-220915-emmc-develop.img.xz

Hey,

Ok, I tried to burn this image and it actually works, Burn Tool overrides image properly, I can boot VIM3 from emmc but thats all.
I still can’t boot from USB Flash Drive - either Krescue or Ubuntu Images - both doesn’t work.
After installing Krescue from terminal and rebooting system is not booting too.
I tried to burn normal image after burning one u linked and Burning Tool is having same output anyway.

It seems that the SD images need to upgrade to support the latest VIM3 board, we will release the new image next month.

U sure its the thing? As i said i can’t use Krescue after installing it with terminal at emmc image. After reboot VIM3 is not booting.

Hello @Szymaniak

Could you provide the boot log message with a serial debug tool ?

I don’t have any converter and can’t promise, I’ll see if I can get any.

Hey,

Sorry I won’t be able to provide boot logs.