matteocrippa / matteocrippa/leafminer

ESP8266 Crashes at seemingly random intervals after mining starts

Open
#24 47 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
158
Forks
26
PR merge metrics
No merged PRs in 30d

Description

After a short period of time the ESP8266 crashes and restarts.
Mine on an pool and wait a few minutes to reproduce the issue.

I see that shares are being submitted and can verify that those sahes are making it through my local stratum proxy to the pool.

Here is 10 minutes of run time from PlatformIO serial monitor with decoder.
I am running a local stratum proxy and I definitely see valid shares being submitted to the pool.

Could this be an issue with parsing a network response?
Each time it fails it seems to be on network_listen() at src\network/network.cpp:416

I have experienced this with v11 and v12.

[esp8266.log](https://github.com/matteocrippa/leafminer/files/14630531/esp8266.log)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash by mining on a pool for several minutes and capture the PlatformIO serial monitor output with decoder. Start at src/network/network.cpp:416 in network_listen() and compare the failure with esp8266.log, especially network responses. Done means the ESP8266 continues mining without crashing or restarting while shares remain submitted.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.