hyperion-project / hyperion.ng

The successor to Hyperion aka Hyperion Next Generation
https://hyperion-project.org/
MIT License
3.11k stars 384 forks source link

Segmentation fault on Hyperion 2.0.0-alpha.7 #903

Closed RaymondMouthaan closed 4 years ago

RaymondMouthaan commented 4 years ago

Bug report

Hyperion 2.0.0-alpha.7 crashes after setting up LED hardware with a segmentation fault

Steps to reproduce

  1. Flash HyperBian
  2. Open Hyperion UI from the browser
  3. Setup LED Hardware:
    • LED Controller
    • Controller Type: adalight
    • Output path: /dev/ttyUSB0
  4. 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 
RaymondMouthaan commented 4 years ago

@Paulchen-Panther, @Lord-Grey just curious - when is the next hyperionNG release expected?

Paulchen-Panther commented 4 years ago

Keine Ahnung. 😄

tpmodding commented 4 years ago

@RaymondMouthaan no ETA for now...sorry, when we think we are ready...

RaymondMouthaan commented 4 years ago

Well I guess I'll see it coming when the time is there 👍

Thanks to all to tackled this issue, happy its fixed & merged 💯

sh0rez commented 4 years ago

@Paulchen-Panther your script does not seem to work for me on a RaspberryPi 4:

wget -qO- https://git.io/JUsob | bash -s 991
*******************************************************************************
This script will download a specific Pull Request Artifact from Hyperion.NG on HyperBian
Created by Paulchen-Panther - hyperion-project.org - the official Hyperion source.
*******************************************************************************
---> Pull Request 991 not found -> abort
tpmodding commented 4 years ago

@sh0rez nothing to do with rpi4 itself...the artifacts are only limited time available...

sh0rez commented 4 years ago

@tpmodding The manual steps above work for me – so some artifact is still there.

Are these different ones?

Paulchen-Panther commented 4 years ago

@sh0rez tThe script can only download artifacts from open PRs. 991 is merged and closed. it also makes no sense to test closed PRs.