portapack-mayhem / mayhem-firmware

Custom firmware for the HackRF+PortaPack H1/H2/H4
https://hackrf.app
GNU General Public License v3.0
3.42k stars 557 forks source link

GURU fault when file path+name >64 characters in Notepad (LOW PRIORITY) #1339

Open NotherNgineer opened 1 year ago

NotherNgineer commented 1 year ago

To reproduce, open Notepad app, press Select to open File Manager, and click on a file with a 64+ character path to open in Notepad, and a GURU meditation fault occurs in set_focus_widget(). Examples of long file names that will cause this fault:

DEBUG/DEBUG_DUMP_0000_20230801_20230801_20230801rrrrxxyy001.TXT

LOGS/ADSB_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728_20230728.TXT

guru-fault

I realize that File Manager has a define for 64 character maximum file name, but I'd like to understand the reason for the fault. (Also, increasing the max file name length in File Manager does not prevent the fault.)

Affected firmware versions include v1.7.4

NotherNgineer commented 1 year ago

GURU fault occurs in call to viewer.focus(). Attempting to display any nav modal in Notepad also results in a fault.

I believe this is a more general issue with NavigationView and push/pop.