-
Notifications
You must be signed in to change notification settings - Fork 63
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
Low Memory error on Android 10 #74
Comments
I have observed the same issue on my side |
I am getting the same issue in my ionic project. is somebody find any way to fix this problem? |
Same issue im facing, help me asap. |
when will u fix this? |
@ChrisTomAlx Can u tell me when u will help |
Any Luck??
…On Wed, Jul 29, 2020 at 6:08 PM Christy Thomas Alex < ***@***.***> wrote:
There is no timeline as of now. So I don't really have an immediate answer
for you. But I can look at any PRs that are raised to address this issue.
Cheers,
Chris <https://github.com/ChrisTomAlx>
Neutrinos <http://www.neutrinos.co/>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKXNPZCBEZA6NXAKFKL6F63R6AJ5VANCNFSM4M7W7HFQ>
.
|
Same issue after done above steps
…On Sun, Aug 16, 2020 at 11:52 AM Anshuman Nayak ***@***.***> wrote:
@ChrisTomAlx <https://github.com/ChrisTomAlx> @sachiv-logiciel
<https://github.com/sachiv-logiciel> @wimZ <https://github.com/wimZ>
@narupareliya <https://github.com/narupareliya> I solved this issue of
"LOW MEMORY" . follow the steps below to use in your corodova projects
1. add this plugin to your project "cordova plugin add
cordova-plugin-document-scannner".
2. build it once .
3. Download the scanlibrary from Neutrinos github repository ( I used
scanlibrary -2.5).
link:- click here
<https://github.com/NeutrinosPlatform/scanlibrary/tree/v2.5>
4. unzip the scanlibrary
5. open with android studio
6. wait for gradle sync to finish
7. add required sdks and build tools ( You can otherwise edit the
version inside "library/build.gradle" file to adjust it to your available
sdk and build tool ).
8. restart the Android studio.
9. wait for gradle sync to finish.
10. Build your project
11. after successful build you will get a 'library-debug.arr' inside
the "library/builds/outputs/arr/".
12. copy that file.
13. Go to
"C:\Users\USER_NAME.gradle\caches\modules-2\files-2.1\com.github.NeutrinosPlatform\scanlibrary\2.5\6209d26ba4ea44188835ca326adb4a3db9cfd7af"
(since this is a temporary directory name will vary from system to system ,
you can apply a search in windows search tool using keyword
"scanlibrary-2.5.aar"(version name varies)).
14. Paste your "library-debug.arr" inside it .
15. copy the name of previous '.arr' file present inside the
directory.(ex. scanlibrary-2.5.aar ) .
16. Delete the previous file (ex. scanlibrary-2.5.aar).
17. Rename your copied file (library-debug.arr) to
(scanlibrary-2.5.aar).
18. Thats it ! 💯 💯 🥇
You can also change the code according to your requirement .
Thank Neutrinos platform for such beautiful library
Enjoy Your patching .Now your patching done There should be no "Low
Memory" warning after this. (TESTED OK ,ANSHUMAN NAYAK ,CTO N3XVERSE PVT.
LTD. ).
for any other issue feel free to contact me at : Mail
***@***.***> 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKXNPZECZACBMFVHHXRLPYLSA53LBANCNFSM4M7W7HFQ>
.
|
Are You sure , because I have tried and using this in my application
without any error
Don't forget to build your SDK after editing the library
Can you provide the portion you edited.
On Tue, 18 Aug, 2020, 9:58 AM WAS Developer, <notifications@github.com>
wrote:
… Same issue after done above steps
On Sun, Aug 16, 2020 at 11:52 AM Anshuman Nayak ***@***.***>
wrote:
> @ChrisTomAlx <https://github.com/ChrisTomAlx> @sachiv-logiciel
> <https://github.com/sachiv-logiciel> @wimZ <https://github.com/wimZ>
> @narupareliya <https://github.com/narupareliya> I solved this issue of
> "LOW MEMORY" . follow the steps below to use in your corodova projects
>
> 1. add this plugin to your project "cordova plugin add
> cordova-plugin-document-scannner".
> 2. build it once .
> 3. Download the scanlibrary from Neutrinos github repository ( I used
> scanlibrary -2.5).
> link:- click here
> <https://github.com/NeutrinosPlatform/scanlibrary/tree/v2.5>
> 4. unzip the scanlibrary
> 5. open with android studio
> 6. wait for gradle sync to finish
> 7. add required sdks and build tools ( You can otherwise edit the
> version inside "library/build.gradle" file to adjust it to your available
> sdk and build tool ).
> 8. restart the Android studio.
> 9. wait for gradle sync to finish.
> 10. Build your project
> 11. after successful build you will get a 'library-debug.arr' inside
> the "library/builds/outputs/arr/".
> 12. copy that file.
> 13. Go to
>
"C:\Users\USER_NAME.gradle\caches\modules-2\files-2.1\com.github.NeutrinosPlatform\scanlibrary\2.5\6209d26ba4ea44188835ca326adb4a3db9cfd7af"
> (since this is a temporary directory name will vary from system to
system ,
> you can apply a search in windows search tool using keyword
> "scanlibrary-2.5.aar"(version name varies)).
> 14. Paste your "library-debug.arr" inside it .
> 15. copy the name of previous '.arr' file present inside the
> directory.(ex. scanlibrary-2.5.aar ) .
> 16. Delete the previous file (ex. scanlibrary-2.5.aar).
> 17. Rename your copied file (library-debug.arr) to
> (scanlibrary-2.5.aar).
> 18. Thats it ! 💯 💯 🥇
> You can also change the code according to your requirement .
> Thank Neutrinos platform for such beautiful library
> Enjoy Your patching .Now your patching done There should be no "Low
> Memory" warning after this. (TESTED OK ,ANSHUMAN NAYAK ,CTO N3XVERSE PVT.
> LTD. ).
> for any other issue feel free to contact me at : Mail
> ***@***.***> 👍
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#74 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AKXNPZECZACBMFVHHXRLPYLSA53LBANCNFSM4M7W7HFQ
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APMUDCIK4B2PYNTM6HVOB33SBH7NRANCNFSM4M7W7HFQ>
.
|
Command failed with exit code 1: npm view cordova-plugin-document-scannner --json npm ERR! A complete log of this run can be found in: |
@NautamSanghani sorry Bro by mistake I used ""cordova-plugin-document-scannner"" , which is actually "cordova-plugin-document-scanner"( spell mistakes) |
Thanks NeutrinosPlatform/cordova-plugin-document-scanner solve my issue
…On Fri, Aug 21, 2020 at 8:27 AM Anshuman Nayak ***@***.***> wrote:
cordova plugin add cordova-plugin-document-scannner
Command failed with exit code 1: npm view cordova-plugin-document-scannner
--json
npm ERR! code E404
npm ERR! 404 'cordova-plugin-document-scannner' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! 404
npm ERR! 404 ***@***.***' is not in the npm
registry.
npm ERR! 404 You should bug the author to publish it (or use the name
yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/nalin/.npm/_logs/2020-08-20T04_54_06_917Z-debug.log
{
"error": {
"code": "E404",
"summary": "'cordova-plugin-document-scannner' is not in the npm
registry.\nYou should bug the author to publish it\n(or use the name
yourself!)\n\nNote that you can also install from a\ntarball, folder, http
url, or git url.",
"detail": "\n ***@***.***' is not in the npm
registry.\nYou should bug the author to publish it (or use the name
yourself!)\n\nNote that you can also install from a\ntarball, folder, http
url, or git url."
}
}
@NautamSanghani <https://github.com/NautamSanghani> sorry Bro by mistake
I used ""cordova-plugin-document-scannner"" , which is actually
"cordova-plugin-document-scanner"( spell mistakes)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKXNPZGVOJO2USJRU766XALSBXO77ANCNFSM4M7W7HFQ>
.
|
I'm having the same black screen problem as #74 (comment) running Android 10 on a Samsung Galaxy S9. I'm using Ionic and Cordova with this plugin.
|
remove platform android and run ionic cordova platform add android@8.0.0 |
@SeaEagleEye Do you know what the issue is requiring moving back to |
No It's just a quick fix
…On Thu, Sep 17, 2020 at 4:28 AM David Quon ***@***.***> wrote:
remove platform android and run ionic cordova platform add ***@***.***
@SeaEagleEye <https://github.com/SeaEagleEye> Do you know what the issue
is requiring moving back to 8.0.0?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMRHUC5MESIZI7AX2NBNKGDSGE7LDANCNFSM4M7W7HFQ>
.
|
Anybody got solutions for multi scan
…On Thu, 17 Sep, 2020, 12:02 pm Prajwal, ***@***.***> wrote:
No It's just a quick fix
On Thu, Sep 17, 2020 at 4:28 AM David Quon ***@***.***>
wrote:
> remove platform android and run ionic cordova platform add ***@***.***
>
> @SeaEagleEye <https://github.com/SeaEagleEye> Do you know what the issue
> is requiring moving back to 8.0.0?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#74 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AMRHUC5MESIZI7AX2NBNKGDSGE7LDANCNFSM4M7W7HFQ
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIY3VVHI5AN3PCIZJMUJELDSGGURTANCNFSM4M7W7HFQ>
.
|
Does using cordova-android 8.0.0 fix this issue for you as well @davidquon? Don't have a device to replicate this issue so would appreciate it if you could get back on the status. |
For me it works on android 8.0 using android-targetSdkVersion: 29 |
Unluckily it does not work on 8.1.0, and that is the version that enables application bundles (.aab) |
Can you implement multi scan functionality
If you implement that will be great
…On Mon, 21 Sep, 2020, 1:39 pm Christy Thomas Alex, ***@***.***> wrote:
That is really strange. I will try and pick this up as soon as work on the
plugin starts again
Thanks for all the testing you guys have done :)
Cheers,
Chris <https://github.com/ChrisTomAlx>
Neutrinos <http://www.neutrinos.co/>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIY3VVERRZLO7YBIKHUG2SLSG4C2PANCNFSM4M7W7HFQ>
.
|
I can confirm the observation of SeaEagleEye that the plugin shows the black screen after taking the picture. Anyway reverting to cordova platform Android 8 did not solve the issue for me. |
Released a new beta version of the plugin. To test it :-
If you guys could help by testing this beta version and let me know if it solved your issue, I can release the 5.0.0 version. Latest plugin also solves this issue |
I tested the beta but the behaviour does not change. After taking the photo it still shows the black screen like SeaEagleEye showed on 8 Sep. Additional information, but probably not a problem. When adding the plugin "cordova-plugin-androidx" I get the following output:
Seems like cordova android 9.0 doesn't need cordova-plugin-androidx? |
I just tested it as well.
I get a scanDoc error result ‘incorrect result or user cancelled the action’
Are there minimum version dependencies?
Regards, wim
|
@benediktcarda @wimZ Could you guys add the following to config.xml as suggested by this comment and see if the issue persists? <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:usesCleartextTraffic="true" android:requestLegacyExternalStorage="true"/>
</edit-config> Also @benediktcarda it does not matter that |
On first try it works!
I’ll do some more testing later
Thanks
|
After adding
it started to work again (I can crop the scanned pages and save to my application), but now I get the low memory message wimZ reported initially. |
@wimZ If possible when you reply via email click the 3 dots and remove the history then respond. I have edited your comments and removed the unnecessary reply quotes for now. Also thanks for helping with the testing :). Let me know if you face any other issues in your testing. I will also fix this need to request legacy storage before I release ver 5.0.0. @benediktcarda Is it just showing low memory error and then you are able to scan normally? or low memory then it just keeps opening up the camera UI over and over again until app crashes? If you are able to continue normally it might actually be an issue with memory and this is expected behavior. Either way let me see what I can find and thank for testing the beta version :) |
hi @ChrisTomAlx .. i saw in your scan library createdirectory when opencamera is not working with API 29 even if i put and this code one is not working anymore with API 29 , i did debug , and i found this :
and also this one , i think this one when opencamera function
already try run with your scanlibrary 3.2 still not working Update : reg, |
I also get the "Incorrect result or user cancelled the action" message when I take a photo. Adding |
@sergiuturus Released 5.0.0-beta.1 of this plugin with the fixes. Let me know if this fixes your issue. To test it :-
|
@onlyplaytama You could try and use the diagnostic plugin to manage permissions. |
In my case, on android, the plugin dont clear images, how can i exclude generated image by plugin? |
The comand cordova plugin add cordova-plugin-document-scanner@5.0.0-beta.1 work to me, but dont clear saved images in android |
Still showing the low memory message, but in the end the scan is made. |
I solved the exclusion problem using the cordova file plugin.however I was unable to remove the low memory message. How can I hide it? Do you have a solution? If so tell me where I should modify that I even fork or branch
|
can some one give me the code to get Base64 of image in Pictures. path : file:///storage/emulated/0/Pictures/my_image.jpg |
The problem that after taking a picture it's showing a black screen is back. Got it reported from a user and tried it myself. When having the blank black screen you can do nothing but either click on the camera icon and take another photo (which again leads to the black screen) or you can click on the folder icon, choose another photo from the gallery and even manipulate the edges but as soon as you click "save" you get the error:
|
@ChrisTomAlx : just a thought, but i do not have any app building experience. The error pops up just after the "cropping/automatic edge selection" stage. Will delete the comment if i'm talking nonsense ;) |
Hola ¿Alguien ha podido encontrar solucion a este problema? |
ScanDoc after the camera finishes, sometimes comes with a Low Memory warning. It seems related to the complexity/darkness of the image. the app does not crash since the library fix (4.2.5), but continues after a tap/back.
I have tried with image-quality 1 and 2.5 with the same result.
I never observed this issue on Android 9, but it appeared after upgrading to Android 10.
This is the error message
Versions:
If there any additional info or assistance is needed, please let me know.
I appreciate any suggestions.
The text was updated successfully, but these errors were encountered: