hyperion.ng: Segmentation fault on Hyperion 2.0.0-alpha.7
- I confirm that this is an issue rather than a question.
Bug report
Hyperion 2.0.0-alpha.7 crashes after setting up LED hardware with a segmentation fault
Steps to reproduce
- Flash HyperBian
- Open Hyperion UI from the browser
- Setup LED Hardware:
- LED Controller
- Controller Type:
adalight
- Output path:
/dev/ttyUSB0
- Controller Type:
- Save Settings
What is expected?
Hyperion running
What is actually happening?
Hyperion crashes as soon as the Settings are saved. Because by default Hyperion runs as service, Hyperion restarts and crashes again, and again …
Stopping the service and manual starting hyperiond
shows these logs:
2020-07-25T11:13:20.076 hyperiond EFFECTENGINE : <ERROR> ###### PYTHON EXCEPTION ######
2020-07-25T11:13:20.077 hyperiond EFFECTENGINE : <ERROR> ## In effect 'Rainbow swirl fast'
2020-07-25T11:13:20.077 hyperiond EFFECTENGINE : <ERROR> ## ZipImportError: can't decompress data; zlib not available
2020-07-25T11:13:20.843 hyperiond EFFECTENGINE : <ERROR> ## Traceback (most recent call last):
2020-07-25T11:13:20.844 hyperiond EFFECTENGINE : <ERROR> ## File "<string>", line 1, in <module>
2020-07-25T11:13:20.845 hyperiond EFFECTENGINE : <ERROR> ## File "/usr/share/hyperion/bin/python35.zip/random.py", line 40, in <module>
from types import MethodType as _MethodType, BuiltinMethodType as _BuiltinMethodType
2020-07-25T11:13:20.846 hyperiond EFFECTENGINE : <ERROR> ## File "/usr/share/hyperion/bin/python35.zip/types.py", line 166, in <module>
import functools as _functools
2020-07-25T11:13:20.846 hyperiond EFFECTENGINE : <ERROR> ## File "/usr/share/hyperion/bin/python35.zip/functools.py", line 21, in <module>
from collections import namedtuple
2020-07-25T11:13:20.847 hyperiond EFFECTENGINE : <ERROR> ## File "/usr/share/hyperion/bin/python35.zip/collections/__init__.py", line 32, in <module>
from reprlib import recursive_repr as _recursive_repr
2020-07-25T11:13:20.848 hyperiond EFFECTENGINE : <ERROR> ## zipimport.ZipImportError: can't decompress data; zlib not available
2020-07-25T11:13:20.848 hyperiond EFFECTENGINE : <ERROR> ###### EXCEPTION END ######
Hyperion caught signal :SIGSEGV
2020-07-25T11:13:20.923 hyperiond CORE : <ERROR> /lib/arm-linux-gnueabihf/libc.so.6(__default_rt_sa_restorer+0) [0x7561e130]
2020-07-25T11:13:20.924 hyperiond CORE : <ERROR> /usr/share/hyperion/bin/../lib/libQt5Core.so.5(QRingBuffer::reserve(long long)+0x44) [0x75af1b74]
Segmentation fault
From above logs multiple errors occur, not sure if they are related. The zipimport.ZipImportError: can't decompress data; zlib not available
error was reported earlier at #881
Removing hyperion.db make Hyperion start again.
System
Hyperion Server:
- Build: (HEAD detached at ffa2fd45) (Paulchen-Panther-69e9fa6d/ffa2fd45-1595517126)
- Build time: Jul 24 2020 15:49:41
- Git Remote: https://github.com/hyperion-project/hyperion.ng
- Version: 2.0.0-alpha.7
- UI Lang: auto (BrowserLang: en-gb)
- UI Access: expert
- Avail Capt: dispmanx,v4l2,framebuffer,qt
Hyperion Server OS:
- Distribution: HyperBian GNU/Linux 10 (buster)
- Arch: arm
- Kernel: linux (5.4.51-v7+ (WS: 32))
- Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 108 (89 by maintainers)
Commits related to this issue
- Fix #903 - Adalight — committed to Lord-Grey/hyperion.ng by Lord-Grey 4 years ago
- Merge pull request #991 from Lord-Grey/Fix_#903 Fix #903 - Adalight — committed to hyperion-project/hyperion.ng by Lord-Grey 4 years ago
Both 😃 … This is without the script -> https://github.com/hyperion-project/hyperion.ng/issues/903#issuecomment-687580254
And this is using the handy script of @Paulchen-Panther -> https://github.com/hyperion-project/hyperion.ng/issues/903#issuecomment-687582462
@Paulchen-Panther, that’s just great to have such a script, let me test the script right a way 👍
edit: it works perfect 💯
@RaymondMouthaan In the future, you can test PRs on HyperBian faster. Simply attach a suitable PR number to the following script and execute it. The script downloads the appropriate artifact, extracts it to a new folder, and creates an startup script. Example for PR # 991:
wget -qO- https://git.io/JUsob | bash -s 991
Hi,
habe es vorrübergehend mit einem Workround behoben. (Raspian Baster + Hyperion alpha 6.0
So funktioniert es ohne Probleme.
Bitte informiert, sobald das Problem in Hyperbian gefixed ist. würde es sehr gerne verwenden.
Grüße
Grüße Andi
I think i see the same error. Took latest release alpha7 selected output as /dev/ttyUSB0 adalight and as soon as i press save the leds blink and then the error message in console appears. It i select a non existing port the hyperion does not crash.
`
I had already fixed this bug. https://github.com/hyperion-project/HyperBian/commit/8db2ef9f961084b5cde5a820ca30ea0b8a3c56fe
The rest of the bug is now known to us. It is due to a QT function that is available in Raspbian Stretch (QT version 5.7). In Debian Buster (QT version 5.11) this has been fixed. Since the automatic release creation is still based on Raspbian Stretch, we might consider switching to Buster, but that should and shouldn’t bother you. We’re working on it. Thank you for your cooperation and your strong nerves with us.
@Paulchen-Panther,
First thing to notice is that while starting
hyperiond
from the artifact an error occurred:I suppose current HyperBian doesn’t have
libcec-dev
pre-installed and therefore I installed it manually:Next:
Configure adalight device @
/dev/ttyUSB0
An image says it all 💯 …
Stopped
hyperiond
and restarted it without deleting the database and this works as well 💯Another thing to notice is that it works without running with root privileges and extracting python35.zip wasn’t needed.
Saving the LED layout still make hyperiond crash, but this is reported in another issue.
Also tested with actual a movie playing and let hyperiond do the amiblight magic and it works perfectly 👍
Great, at least you can reproduce the error, but indeed here also
b3b0f27
fails. During previous tests I forgot to connect the usb device #oeps@m-seker, your welcome! I assume you you know what to do to get it fixed? … if further assistance is required, don’t hesitate to contact me.
I just created a package and use it to install it for now, as you suggested 👍
I reverted back to alpha.6 so I can’t test right now, but I’ll prepare another sd for alpha.7 and try it with sudo and report back.
This error message can be traced back to this PR.
Thanks for the feedback. We’ll take a closer look at that.