InfiniTimeOrg / InfiniTimeOrg/InfiniSim

Random crashes for no apparent reason

Open
#202 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
203
Forks
97
PR merge metrics
No merged PRs in 30d

Description

Hello everyone,

I love my PineTime and I am amazed by the firmware the community managed to create!

I am trying to experiment with the firmware, so I started by compiling it and the simulator.

Everything seems fine, bu when I run the simulator, it always crashs.

If I swipe up the console shows:

 > ./build/infinisim
info:  1 1 2026 
info:  0 0 0 
initial free_size = 40360
info:  systemtask task started!
info:  Last reset reason : Reset pin
info:  [SpiNorFlash] Manufacturer : 0, Memory type : 0, memory density : 0
info:  [SpiNorFlash] Wakeup
warn:  [AlarmController] Failed to open alarm data file
info:  DISABLE
info:  displayapp task started!
info:  DISABLE
free(): invalid pointer
[1]    11810 abort (core dumped)  ./build/infinisim

Same if I press n to send a new notification.

Moving around also produces similar results.


I am on Arch Linux and I built the project following the readme. Any ideas on how to debug this problem?

Contributor guide

No contributing guide indexed for this repository

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

Start with the README build instructions and run ./build/infinisim on Arch Linux to reproduce the abort. Exercise the simulator by swiping up, pressing n, and moving around while tracing the free(): invalid pointer failure; done means these actions no longer crash the simulator.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.