Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always when I open a file I get an 'not enough memory' error #273

Closed
jensMF opened this issue Oct 17, 2023 · 4 comments
Closed

always when I open a file I get an 'not enough memory' error #273

jensMF opened this issue Oct 17, 2023 · 4 comments
Assignees
Labels
Milestone

Comments

@jensMF
Copy link

jensMF commented Oct 17, 2023

Hi,

I have a Shift6mq with android 10.
Always when I try to open a file with or in HexViewer, I get an error that says 'Unable to execute the command because there's not enough memory for this app'

A log with two tries, one with partially open says this:

20231017 [030030PM]:
(FileHelper) -> Get filename for uri: 'content://com.android.externalstorage.documents/document/home%3AHex.txt'
20231017 [030030PM]:
(FileHelper) -> Uri scheme equals to content
20231017 [030030PM]:
(FileHelper) -> Filename DISPLAY_NAME cursor index: '2'
20231017 [030030PM]:
(FileHelper) -> Filename DISPLAY_NAME cursor value: 'Hex.txt'
20231017 [030030PM]:
(FileHelper) -> Filename result: 'Hex.txt'
20231017 [030030PM]:
(FileHelper) -> Get file size for uri: 'content://com.android.externalstorage.documents/document/home%3AHex.txt'
20231017 [030030PM]:
(FileHelper) -> Get file size: '37'
20231017 [030030PM]:
(FileHelper) -> Get file size for uri: 'content://com.android.externalstorage.documents/document/home%3AHex.txt'
20231017 [030030PM]:
(FileHelper) -> Get file size: '37'
20231017 [030030PM]:
(Open) -> Open file: '0^0^content://com.android.externalstorage.documents/document/home%3AHex.txt'
20231017 [030030PM]:
(Open) -> Low memory detected
20231017 [030035PM]:
(FileHelper) -> Get filename for uri: 'content://com.android.externalstorage.documents/document/home%3AHex.txt'
20231017 [030035PM]:
(FileHelper) -> Uri scheme equals to content
20231017 [030035PM]:
(FileHelper) -> Filename DISPLAY_NAME cursor index: '2'
20231017 [030035PM]:
(FileHelper) -> Filename DISPLAY_NAME cursor value: 'Hex.txt'
20231017 [030035PM]:
(FileHelper) -> Filename result: 'Hex.txt'
20231017 [030035PM]:
(FileHelper) -> Get file size for uri: 'content://com.android.externalstorage.documents/document/home%3AHex.txt'
20231017 [030035PM]:
(FileHelper) -> Get file size: '37'
20231017 [030035PM]:
(FileHelper) -> Get file size for uri: 'content://com.android.externalstorage.documents/document/home%3AHex.txt'
20231017 [030035PM]:
(FileHelper) -> Get file size: '37'
20231017 [030035PM]:
(PartialOpen) -> Open file 'Hex.txt', sequential: false, rsize: 37, size: 37, start: 0, end: 0
20231017 [030056PM]:
(Open) -> Low memory detected

What can I do?

@Keidan
Copy link
Owner

Keidan commented Oct 17, 2023

Hi,

Thank you for your contribution.

I don't have this smartphone and unfortunately I can't reproduce this problem on the emulator running Android 10.

I'll add more traces in the next version.
I'll also add an option to disable the protection on the low memory event
"Settings" -> "Memory threshold" -> "Disable"

Have you tried killing running processes to free up memory on your smartphone?

@Keidan Keidan added the bug label Oct 17, 2023
@Keidan Keidan added this to the Version 1.48 milestone Oct 17, 2023
Keidan added a commit that referenced this issue Oct 17, 2023
…triggered.

It's now possible to disable "memory low" detection, which seems to cause problems on some ROMs.

NOTE: The application will crash if this option is disabled but the event is triggered by the system.
@Keidan Keidan mentioned this issue Oct 20, 2023
@Keidan Keidan closed this as completed Oct 20, 2023
@Keidan
Copy link
Owner

Keidan commented Oct 20, 2023

Hello,

I'm closing this issue to finalize my Milestone but feel free to reopen it, if you still have the problem with version 1.48 (or if you have more information).

@jensMF
Copy link
Author

jensMF commented Dec 8, 2023

For me it works now.

@Keidan
Copy link
Owner

Keidan commented Dec 8, 2023

Thanks for your feedback :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants