-
-
Notifications
You must be signed in to change notification settings - Fork 1
Peach-Oled Segmentation Fault #5
Description
peach issues 12.21.20
so the wifi is working again on my re-flashed pi now,
but alas some of the microservices are not running again.
peach-oled and peach-stats both throwing segmentation faults,
although peach-network is working!
- peach-oled
-
running peach-oled via apt-get install:
installs successfully, but then the service fails to start and throws an error -
running peach-oled from binary crosscompiled on the vps:
segmentation fault -
running peach oled via cross-compiling binary on my laptop in debian, and then running the binary on the pi, also has errors:
if I run peach-oled without sudo, this is the output:
[2020-12-21T18:23:04Z ERROR peach_oled] Application error: Failed to create interface for I2C device: Permission denied (os error 13)
if I run peach-oled with sudo, this is the output:
thread 'jsonrpc-eventloop-1' panicked at 'attempted to leave type `std::mem::ManuallyDrop<internal::SealedBag>` uninitialized, which is invalid', /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/mem/mod.rs:658:9 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Segmentation fault
as a sanity check, I tried building peach-oled on the pi, and then running the pi-built version,
and got the same errors
if I run cat /etc/modules, this is the output:
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
i2c-dev
i2c-bcm2835
if I run i2cdetect -y 1, this is the output:
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
I looked in signal and saw that you said that when I run i2cdetect -y 1 I should see UU somewhere in the output, which I don't see. so maybe there is something wrong with the I2C settings.
any idea?
- peach-stats
running via apt-get install:
- successfully installs, but fails to start
running binary compiled on vps:
thread 'http.worker00' panicked at 'attempted to leave type `std::mem::ManuallyDrop<internal::SealedBag>` uninitialized, which is invalid', /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/mem/mod.rs:658:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Segmentation fault
compiling on local debian laptop:
- can't compile
mostly this error:
error[E0277]: `?` couldn't convert the error to `jsonrpc_core::Error`
--> src/lib.rs:60:37
|
60 | let uptime = stats::uptime()?;
| ^ the trait `From<error::StatError>` is not implemented for `jsonrpc_core::Error`
- peach-network
this is the service which originally wasn't working, and led to the whole re-flashing. now its working, so thats good news (via apt-get install or binary) :)