-
Notifications
You must be signed in to change notification settings - Fork 5.2k
vchiq: vchiq_ioctl: cmd VCHIQ_IOC_RELEASE_SERVICE returned error -1 for service TVNT:17277 #1808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, I was wondering if you could give some more details on some of the applications you are using that uses OpenVG? Although not directly related to your issue, I've been making some changes to VCHIQ for ARM64 on the RPI. I'm almost to the point that I can get accelerated video to work and I'm looking for some applications that I can run to stress the video subsystem. As part of testing, I may well be able to reproduce the same issues and possibly submit some changes to VCHIQ or provide some more information on the issue so that someone else can fix it. One thing you may want to try that should be easy to check is to upgrade your kernel. I think 4.4.11 is older(if I'm reading the logs correctly) and I've noticed a change or two to that component since then. |
It's an application that draws an "OSD" (or "HUD") on the screen for usage with FPV model airplanes and copters: https://github.com/SamuelBrucksch/wifibroadcast_osd I use it in these ready-to-use Raspberry images: Upgrading the kernel is still on my to do list. I've tried with 4.4.32 already some time ago (from the Raspbian release before the latest that came out in January) but this one has some issues with scheduling or whatever,there is packetloss, so I kept 4.4.11. Hopefully it's better with the Kernel/firmware included in the latest Raspbian version from January. |
Did some more tests. The funny thing is, this started happening after disabling overclocking because of some other kernel flakiness. After overclocking the system again it seems stable (Atleast the graphical system). |
It's most certainly a concurrency or timing issue then. You can get weird issues like that where something can be broke on a slow cpu but work just fine on a fast cpu. And to make it even more interesting, since it's calling into the firmware to do the actual work, it can depend on the exact firmware version or difference between the speed of the gpu and the arm. BTW, the picture from the airplane is cool. Maybe you just need to put a cell phone connection in the airplane and then be able to control it anywhere you can get a cell service. From anywhere in the world with an Internet connection of course. Would just need to watch your data cap on the cell connection though :) |
Is this considered "normal" on the Pi? In my experience, slower computers just run slower, but they don't crash. Actually, after all those years, I'm not really used to that type of completely weird and unreproducible crashes anymore, dimly remember that from Windows 3.1 and 95/98, but not Linux (or Win NT and it's successors).
Yeah, it's really cool what you can do nowadays with Raspberrys and cheap Wifi sticks. Range with $10 70mW transmit power wifi sticks is about 1km and unlike analog video transmission, the picture is much better quality and rock-solid. I think there are actually open source projects that support using LTE cell services for video, but I don't have too good high-speed/low-latency mobile coverage here and no flat-rate tarrifs, that would get quite expensive. |
I'm actually not associated with the PI Foundation. I've just submitted a few 64 bit related changes to both upstream and here for 64 bit regarding vchiq. So maybe someone who knows more can chime in. No, it's not normal on the Pi. Just at the same time you are getting what is in the US a $30 computer. And NT and Linux core I'm sure both have much higher budgets(Linux core has corporate employee time that gets donated). I have seen a few fixes to vchiq recently that might help. If finding a different version of the kernel and firmware doesn't help(4.9 is the stable version now), you can also try using kms or fkms for video instead of the default. kms bypasses the firmware and vchiq completely for video, so you would be using newer and open source software. You can select either of these by using in your config.txt: A final option that may provide debugging information is to turn on logging for vchiq. You can find the settings in debugfs under /sys/kernel/debug/vchiq. Although with these kinds of timing issues, sometimes turning on logging will make the issue go away. |
Is this still present? Any simple use cases that demonstrate the problem? |
dtoverlay=vc4-fkms-v3d is no option for me unfortunately because I need the video decoder and raspivid. Since I went back to the overclocked settings, the problem didn't occur anymore. |
@popcornmix @pelwell I'm inclined to close this unless you have other ideas? |
Closing due to lack of activity. Reopen if you feel this issue is still relevant. |
This seems to be randomly happening when there is more stuff being drawn with OpenVG. Have never seen this issue, until I activated more graphical options in an OpenVG program. System is not overclocked.
The text was updated successfully, but these errors were encountered: