Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Memory leak when launching SubGHz app #459

Closed
Ex-32 opened this issue Nov 21, 2023 · 1 comment
Closed

Memory leak when launching SubGHz app #459

Ex-32 opened this issue Nov 21, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Ex-32
Copy link

Ex-32 commented Nov 21, 2023

Describe the bug.

Opening and then subsequently closing the SubGHz application leaks about 1.1KB of memory, this occurs regardless of how long the app is open or what actions are performed.

Reproduction

  1. Ensure the main menu style is "C64"
  2. Note the number of bytes free
  3. Open the SubGHz app
  4. Close the SubGHz app
  5. The number will've dropped by ~1100
  6. If you repeat steps 2-5 the number will continue to drop further

Target

No response

Logs

1781703 [I][Loader] Starting SubGHz
1781708 [T][StorageApi] File/Dir 000120E0 alloc
1781714 [I][AnimationManager] Unload animation 'lvl_4'
1781729 [T][StorageApi] File 000120E0 - 00010EB4 open (/ext/subghz/assets/setting_user)
1781733 [I][SubGhzSetting] File is not used /ext/subghz/assets/setting_user
1781740 [T][StorageApi] File 000120E0 - 00010EB4 closed
1781744 [T][StorageApi] File/Dir 000120E0 free
1781751 [I][SubGhzKeystore] Loading keystore /ext/subghz/assets/keeloq_mfcodes
1781754 [T][StorageApi] File/Dir 00010FC0 alloc
1781760 [T][StorageApi] File 00010FC0 - 000110FC open (/ext/subghz/assets/keeloq_mfcodes)
1781849 [T][StorageApi] File 00010FC0 - 000110FC closed
1781851 [T][StorageApi] File/Dir 00010FC0 free
1781853 [I][SubGhzKeystore] Loading keystore /ext/subghz/assets/keeloq_mfcodes_user
1781856 [T][StorageApi] File/Dir 00010FC0 alloc
1781863 [T][StorageApi] File 00010FC0 - 0001119C open (/ext/subghz/assets/keeloq_mfcodes_user)
1781865 [E][SubGhzKeystore] Unable to open file for read: /ext/subghz/assets/keeloq_mfcodes_user
1781869 [T][StorageApi] File 00010FC0 - 0001119C closed
1781872 [T][StorageApi] File/Dir 00010FC0 free
1781875 [D][SubGhzProtocolNiceFlorS] Loading rainbow table from /ext/subghz/assets/nice_flor_s
1781878 [I][SubGhzProtocoAlutech_at_4n] Loading rainbow table from /ext/subghz/assets/alutech_at_4n
1781883 [T][StorageApi] File/Dir 00020108 alloc
1781888 [T][StorageApi] Dir 00020108 - 0002026C open (/any/apps_data/subghz/plugins)
1781893 [D][PluginManager] Loading /any/apps_data/subghz/plugins/radio_device_cc1101_ext.fal
1781897 [T][StorageApi] File/Dir 00020218 alloc
1781901 [T][StorageApi] File 00020218 - 0002060C open (/any/apps_data/subghz/plugins/radio_device_cc1101_ext.fal)
1781948 [I][Elf] Total size of loaded sections: 4844
1781951 [T][StorageApi] File 00020218 - 0002060C closed
1781953 [T][StorageApi] File/Dir 00020218 free
1781956 [D][Fap] Library for subghz_radio_device, API v. 2 loaded
1781958 [T][StorageApi] Dir 00020108 - 0002026C closed
1781961 [T][StorageApi] File/Dir 00020108 free
1781964 [D][Fap] Library for subghz_radio_device, API v. 2 loaded
1781967 [I][SubGhzDeviceRegistry] Loaded 2 radio device
1782430 [E][SubGhzDeviceCc1101Ext] Init failed
1782466 [T][StorageApi] File/Dir 000240B0 alloc
1782476 [T][StorageApi] File 000240B0 - 000241F4 open (/ext/subghz/assets/last_subghz.settings)
1782516 [T][StorageApi] File 000240B0 - 000241F4 closed
1782518 [T][StorageApi] File/Dir 000240B0 free
1790747 [E][FuriThread] SubGHz allocation balance: 1120
1790774 [I][Loader] App returned: 0
1790776 [I][Loader] Application stopped. Free heap: 112520
1790783 [I][AnimationStorage] Custom manifest selected
1790786 [T][StorageApi] File/Dir 000105D8 alloc
1790790 [T][StorageApi] File 000105D8 - 000109EC open (/ext/asset_packs/NSFW/Anims/manifest.txt)
1790819 [T][StorageApi] File 000105D8 - 000109EC closed
1790821 [T][StorageApi] File/Dir 000105D8 free
1790824 [T][StorageApi] File/Dir 00010920 alloc
1790831 [T][StorageApi] File 00010920 - 00010A64 open (/ext/asset_packs/NSFW/Anims/lvl_4/meta.txt)
1790881 [T][StorageApi] File/Dir 00010A10 alloc
1790890 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_0.bm)
1790894 [T][StorageApi] File 00010A10 - 00010E9C closed
1790903 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_1.bm)
1790907 [T][StorageApi] File 00010A10 - 00010E9C closed
1790915 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_2.bm)
1790919 [T][StorageApi] File 00010A10 - 00010E9C closed
1790927 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_3.bm)
1790932 [T][StorageApi] File 00010A10 - 00010E9C closed
1790936 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_4.bm)
1790941 [T][StorageApi] File 00010A10 - 00010E9C closed
1790948 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_5.bm)
1790953 [T][StorageApi] File 00010A10 - 00010E9C closed
1790958 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_6.bm)
1790962 [T][StorageApi] File 00010A10 - 00010E9C closed
1790970 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_7.bm)
1790975 [T][StorageApi] File 00010A10 - 00010E9C closed
1790980 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_8.bm)
1790984 [T][StorageApi] File 00010A10 - 00010E9C closed
1790992 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_9.bm)
1790996 [T][StorageApi] File 00010A10 - 00010E9C closed
1791006 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_10.bm)
1791011 [T][StorageApi] File 00010A10 - 00010E9C closed
1791020 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_11.bm)
1791025 [T][StorageApi] File 00010A10 - 00010E9C closed
1791034 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_12.bm)
1791039 [T][StorageApi] File 00010A10 - 00010E9C closed
1791048 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_13.bm)
1791053 [T][StorageApi] File 00010A10 - 00010E9C closed
1791061 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_14.bm)
1791066 [T][StorageApi] File 00010A10 - 00010E9C closed
1791075 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_15.bm)
1791084 [T][StorageApi] File 00010A10 - 00010E9C closed
1791101 [T][StorageApi] File 00010A10 - 00010EE4 open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_16.bm)
1791111 [T][StorageApi] File 00010A10 - 00010EE4 closed
1791120 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_17.bm)
1791125 [T][StorageApi] File 00010A10 - 00010E9C closed
1791136 [T][StorageApi] File 00010A10 - 00010E9C open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_18.bm)
1791146 [T][StorageApi] File 00010A10 - 00010E9C closed
1791164 [T][StorageApi] File 00010A10 - 00010ECC open (/ext/asset_packs/NSFW/Anims/lvl_4/frame_19.bm)
1791170 [T][StorageApi] File 00010A10 - 00010ECC closed
1791172 [T][StorageApi] File/Dir 00010A10 free
1791182 [T][StorageApi] File 00010920 - 00010A64 closed
1791184 [T][StorageApi] File/Dir 00010920 free
1791186 [I][AnimationManager] Select 'lvl_4' animation
1791190 [I][AnimationManager] Load animation 'lvl_4'
1791565 [D][GattChar] Updating Power State char

Anything else?

At least one person was able to reproduce this on the discord server.

@Ex-32 Ex-32 added the bug Something isn't working label Nov 21, 2023
@Willy-JL
Copy link
Contributor

Fixed via f991f5a and dc26141
Since both of those pertain to features not in the current release, I will close this issue (since it's not technically "release pending")

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants