flipperzero-firmware icon indicating copy to clipboard operation
flipperzero-firmware copied to clipboard

buffered_file_stream_open never returns when trying to open executable itself

Open QtRoS opened this issue 2 years ago • 2 comments

Describe the bug.

Facing this issue in my Hex Viewer app. When trying to view hex_viewer.fap itself, app hangs. Debug showed that buffered_file_stream_open (internally file_stream_open) function doesn't return control. Code is here. Seems that file is blocked by OS/app launcher.

Reproduction

  1. Open Hex Viewer app
  2. Navigate to the apps folder
  3. Select hex_viewer.fap
  4. App hangs, doesn't react to any input (while OS itself is alive, logs are going, qFlipper works)

Target

No response

Logs

No response

Anything else?

No response

QtRoS avatar Dec 05 '22 20:12 QtRoS

That's not a bug, that is a feature. Opening already open file is currently impossible.

skotopes avatar Dec 05 '22 20:12 skotopes

@skotopes yes, but in the case of an elf file, we don't need to keep that file open.

DrZlo13 avatar Dec 05 '22 23:12 DrZlo13