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
crash in QRingBuffer::reserve #133
Comments
here the same thing: big thanx for that good bug report! BTW to be sure that this is no issue with firmware. Can you try our adalight firmware |
ouch. sorry for the dupe. I searched and somehow missed #87. fyi delayAfterConnect was my first guess, I played a bit with different values but it did not help.. EDIT: here is what I use: https://github.com/stefansaraev/IoT/blob/master/nanoatmega328-ambilight/src/main.ino I am pretty sure it is fine. it never fails with old hyperion git. but if you insist, I can try yours .. :) |
it looks like calling waitforbyteswritten when it is not neccessary can lead to problems. Waiting is only necessary when write returns with "not all written yet". here some idea: I will modify code to something like:
|
k http://sprunge.us/DZXR with this no crash and amlgrabber seems to work now. framegrabber (used for software decoded content in kodi) does not work, startup effect does not work. but thats another story :) |
It would be great if someone could extend the amlgrabber to work also with kodi. Or is Kodi a workaround? It would be hard with 2 grabbers at the same. As our target is one grabber for one system and not two :)
checkout the current valid config at the config dir |
amlgrabber works "behind" kodi's back (takes frames fron /dev/amvideocap). because amcodec renders behind kodi's back. it is more like a v4l grabber, and it always worked for me. still works :) previously, I used different priorities. 900 for bootsequence / framegrabber, and 800 for amlgrabber and it worked nicely. however, this is unrelated and can be looked at later |
No, i wanted to point to this: |
@brindosch yep, I failed to update my old config (sorry for the extra noise). ./hyperion-remote -e worked. adding the new initialEffect section does the trick. |
I did some deeper investigation. waitForBytesWritten causes after sending some bytes (7k) a resource error: I guess in your code waitForBytesWritten would never be executed and thatswyh it worked. In above example result != size is an error, in your code would waitForBytesWritten be executed in that case. I removed waitForBytesWritten, because it is not neccesary - the flush blocks until all data is written to port and do nearly the same. |
#134 fixed the issue. thanks @redPanther |
hi there,
today I tried runing a self compiled hyperion.ng on my wetek core and it fails to run
I dont know if it's qt or hyperiond bug, but I decided to post this here.
^^ I've got this once in a gdb session, just once. no matter how hard I try, I cant get it anymore
compiling against qtbase-5.7.0 + qtserialport-5.7.0, there is an extra (it should not interfere in no way) patch to make avahi optional. I can PR / share it if you want me to.
my compile opts: http://sprunge.us/LMXD
my config: http://sprunge.us/GRMa
device is a wetek core + dyi arduino nano clone + ws2812b leds (adalight). it works fine with https://github.com/hyperion-project/hyperion self compiled from master branch.
The text was updated successfully, but these errors were encountered: