Closed ZeBriD closed 1 year ago
Hey, could you please try this branch: https://github.com/webosbrew/hyperion-webos/actions/runs/2885639651
Result:
# ./hyperion-webos -v -a 192.168.31.98 -b libvtcapture
0.000s [INFO main ] Starting up (version: heads/fix/uni_service_register-0-g8c9539a)...
0.000s [INFO main ] Running via CLI
0.001s [INFO service_init ] Autodetecting UI backend...
0.001s [ DBG unicapture_init_backend] libgm_backend.so: loading...
0.001s [WARN unicapture_init_backend] Unable to load libgm_backend.so: libgm.so.1: cannot open shared object file: No such file or directory
0.001s [WARN unicapture_try_backends] try_backends: backend: libgm_backend.so failed with code: -1
0.054s [ DBG unicapture_init_backend] libhalgal_backend.so: loading...
0.054s [ DBG unicapture_init_backend] libhalgal_backend.so: loaded, initializing...
0.054s [INFO capture_init ] Graphical capture enabled. Begin init..
initializing lock 'MADP_SYS'
[Utopia][MSOS]: [ERROR][MsOS_CreateMutex][2244] [MsOS_CreateMutex][2244] Update max number of msos mutex: 256
[Utopia][MSOS]: [INFO][MsOS_SHM_Init][1097] Mappd share memory: 0xt711A3000
[Utopia][MSOS]: [INFO][_MsOS_InitEventGroup][4053] Flag=MSOS_SHM_QUERY Addr=0x711AB130
[utopia info] utopia init
[utopia info] default using kernel mode utopia
[Utopia][PWS]: Function = PWSRegisterToUtopia, Line = 1134, PWS Register finished
[Utopia][MFE_EX]: MFERegisterToUtopia
[Utopia][AUDIO]: AUDIORegisterToUtopia is invoked
[Utopia][AUDIO]: AUDIORegisterToUtopia : Success to register resource 'audio0' of 1 resource
HDMITxRegisterToUtopia..................
[Utopia][SYS]: Function = SYSOpen, Line = 1722, [SYS INFO] OPEN INSTANCE...
[Utopia][MSOS]: [WARN][MsOS_Init][5846] Already inited.
[Utopia][MSOS]: [INFO][MsOS_SHM_Init][1070] Already inited.
[Utopia][SYS]: [MDrv_SYS_Init][199] Already inited.
KeyCustomerList[1].chipid:e8
[Utopia][IPAUTH]: Wrong hash key
[Utopia][IPAUTH]: 0003227400660000
[Utopia][IPAUTH]: MDrv_SYS_GetChipID:fc
[Utopia][IPAUTH]: Wrong Chip ID
[Utopia][IPAUTH]: [Auth NG]
[Utopia][IPAUTH]: AUTH STATUS:0
initializing lock 'HAL_GAL'
initializing lock 'GRAPHIC'
[Utopia][MSOS]: [INFO][MsOS_SHM_Init][1070] Already inited.
root=/dev/mmcblk0p27 ro rootfstype=squashfs PM ethaddr=B0:37:95:A3:FE:91 mmcoops=dump wdtlog=dump@1M quiet loglevel=0 console=ttyS0,115200 rootwait ssc_enable=<NULL> modelopt=001020100 hwopt=202210001104002001 ToolOpt=201326872:12307:1251801:65:15066675:825547531 modelName=86NANO926PB serialNum=110RAVF0W919 countryGrp=22 debugMode=5 devtmpfs.mount=1 chip=LM21UA0 snapshot resume=/dev/mmcblk0p48 tvregion=DVB NR_BANK=0x0 vmalloc=408M LX_MEM=0x1c500000 EMAC_MEM=0x100000 DRAM_LEN=0x80000000 LX_MEM2=0x43800000,0x58c00000 LX_MEM3=0xe0000000,0x0 DRAM_SIZE1=0x80000000 DRAM_SIZE2=0x0 KERNEL_PROTECT MIU_DEBUG_LEVEL=5 MIU_HIT_INTERRUPT=ON MIU_HIT_PANIC=OFF criu_enabled portProtection emmc_size=0x1d1fff000 BOOTLOGO_IN_MBOOT ENV_VAR_OFFSET=0x0 ENV_VAR_SIZE=0x10000 ENV=EMMC SECURITY=ON sver=0.01.179 bver=0.01.179 innolux=0 tcontype=0 SkipFlag_PMIC=<NULL> get_tconEnumFrom=<NULL> bForceVfreq60HZ=<NULL> enable_tcon_panel=0 bVfreq120to60HZ=0 CMA0=PVRDOWNLOAD,miu=0,hid=23,sz=0xc00000,st=0x19400000 CMA1=PVRUPLOAD,miu=0,hid=24,sz=0x400000,st=0x1a000000 CMA2=CIPLUS,miu=0,hid=27,sz=0x1000000,st=0x18400000 CMA3=GOP,miu=0,hid=29,sz=0x8400000,st=0x23800000 CMA6=PIP,miu=0,hid=25,sz=0x1800000,st=0x1a400000 CMA7=ACPU1,miu=0,hid=26,sz=0x400000,st=0x1bc00000 CMA8=ACPU2,miu=0,hid=30,sz=0x400000,st=0x1c000000 tee_mode=optee pwm=0 cmdEnd
[TCON] MApi_XC_Get_Tcon_Type 6521: u8tcontype = 0
0.111s [INFO capture_init ] HAL_GAL_Init done! Exit: 0
[Utopia][GOP API]: MApi_GOP_GWIN_Delete32FB:3904 FBId = 148
0.113s [INFO capture_init ] HAL_GAL_CreateSurface done! SurfaceID: 0
0.116s [INFO capture_init ] HAL_GAL_CaptureFrameBuffer done! 0
0.116s [INFO capture_init ] HAL_GAL: gfx open ok result: 23
0.117s [INFO capture_init ] HAL_GAL: mmap() success
0.117s [ DBG unicapture_init_backend] libhalgal_backend.so: success
0.117s [ DBG unicapture_try_backends] try_backends: libhalgal_backend.so succeeded
0.123s [ DBG unicapture_init_backend] libvtcapture_backend.so: loading...
0.123s [ DBG unicapture_init_backend] libvtcapture_backend.so: loaded, initializing...
0.123s [INFO capture_init ] Starting vtcapture initialization.
0.127s [ DBG unicapture_init_backend] libvtcapture_backend.so: success
0.127s [ DBG service_register ] Try register on LSRegister
0.129s [ ERR service_register ] Unable to register on Luna bus: Invalid permissions for org.webosbrew.piccap.service
0.129s [WARN main ] Service register failed: -1
0.129s [ DBG main ] Going into main loop..
0.130s [ DBG connection_loop ] Starting connection loop
0.130s [ DBG unicapture_run ] Attempting UI capture init...
0.130s [INFO unicapture_run ] UI capture started
0.130s [ DBG unicapture_run ] Attempting video capture init...
0.130s [INFO unicapture_vsync_handler] vsync thread starting...
0.130s [INFO connection_loop ] Connecting hyperion-client..
Segmentation fault
crash report (from folder /var/log/reports/librdx) RDXDErr2_hyperion-webosLinux Crash: hyperion-webos crashes at location liblibc-2.28.so (strcpy+0x17) [0x74ccde18]__hyperion-webos.3797.1Nwdpj.gz
Thats a bit strange. Are you sure you have only one hyperion-webos instance running? You can check with for example `ps -ax | grep hyperion-webos also did you do a full reboot after testing the different Versions?
My mistake. I was mixed many releases without reboot. Only with killall -9 hyperion-webos.
Now it works.
My steps to fix: 1) Remove piccap v0.2.3 from homebrew. 2) Install manualy release from https://github.com/TBSniller/piccap/actions/runs/2704563747 3) Replace hyperion-webos binaries with libs with this artifacts https://github.com/webosbrew/hyperion-webos/actions/runs/2693316650 4) Configure in ui (disable ui, set libvtcapture, disable vsync, limit 60fps). 5) Reboot.
Thanks for help.
Thanks for testing out. Could you please also test with latest build? This will be in next release, so it should work also for you https://github.com/webosbrew/hyperion-webos/actions/runs/2885639651 IPK: https://github.com/TBSniller/piccap/actions/runs/3003014413
With latest builds all works. But after reboot all stops working til full service restart.
UI grab doesn't works (any). DRM content capture also doesn't work. QUIRK_VTCAPTURE_K6HP_FORCE_CAPTURE - makes no changes.
Can you please raise another issue for your other problems? Your main problem is resolved.
Regarding DRM capture please see this https://github.com/TBSniller/piccap/issues/38
System Info:
Hyperion-WebOS version: latest unicapture branch build (https://github.com/webosbrew/hyperion-webos/actions/runs/2693316650)
Commandline invocation: ./hyperion-webos -v -a 192.168.31.98 -b libvtcapture
Short fail log:
Full log: