flipperzero-firmware
flipperzero-firmware copied to clipboard
buffered_file_stream_open never returns when trying to open executable itself
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
- Open Hex Viewer app
- Navigate to the apps folder
- Select hex_viewer.fap
- 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
That's not a bug, that is a feature. Opening already open file is currently impossible.
@skotopes yes, but in the case of an elf file, we don't need to keep that file open.