cordova-plugin-document-scanner
cordova-plugin-document-scanner copied to clipboard
Low Memory error on Android 10
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:
- Scandoc version 4.2.5
- Cordova Version: 9.0.0 ([email protected])
- Cordova Platform: Android 8.1.0
- Device OS: Android 10
- Device: Samsung S9
If there any additional info or assistance is needed, please let me know. I appreciate any suggestions.
I have observed the same issue on my side
This issue has to be fixed in the library. Not sure when I will be able to take a look at it though. This is a good starting point anyone trying to tackle this issue.
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.
I have observed the same issue on my side
when will u fix this?
@ChrisTomAlx Can u tell me when u will help Low memory issue in plugin
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.
Any Luck??
On Wed, Jul 29, 2020 at 6:08 PM Christy Thomas Alex < [email protected]> 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 https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/74#issuecomment-665639003, 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 [email protected] 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
- add this plugin to your project "cordova plugin add cordova-plugin-document-scannner".
- build it once .
- Download the scanlibrary from Neutrinos github repository ( I used scanlibrary -2.5). link:- click here https://github.com/NeutrinosPlatform/scanlibrary/tree/v2.5
- unzip the scanlibrary
- open with android studio
- wait for gradle sync to finish
- 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 ).
- restart the Android studio.
- wait for gradle sync to finish.
- Build your project
- after successful build you will get a 'library-debug.arr' inside the "library/builds/outputs/arr/".
- copy that file.
- 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)).
- Paste your "library-debug.arr" inside it .
- copy the name of previous '.arr' file present inside the directory.(ex. scanlibrary-2.5.aar ) .
- Delete the previous file (ex. scanlibrary-2.5.aar).
- Rename your copied file (library-debug.arr) to (scanlibrary-2.5.aar).
- 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 http://[email protected] 👍
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/74#issuecomment-674485685, 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, [email protected] wrote:
Same issue after done above steps
On Sun, Aug 16, 2020 at 11:52 AM Anshuman Nayak [email protected] 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
- add this plugin to your project "cordova plugin add cordova-plugin-document-scannner".
- build it once .
- Download the scanlibrary from Neutrinos github repository ( I used scanlibrary -2.5). link:- click here https://github.com/NeutrinosPlatform/scanlibrary/tree/v2.5
- unzip the scanlibrary
- open with android studio
- wait for gradle sync to finish
- 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 ).
- restart the Android studio.
- wait for gradle sync to finish.
- Build your project
- after successful build you will get a 'library-debug.arr' inside the "library/builds/outputs/arr/".
- copy that file.
- 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 http://[email protected] 👍
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/74#issuecomment-674485685 , 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 https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/74#issuecomment-675241891, or unsubscribe https://github.com/notifications/unsubscribe-auth/APMUDCIK4B2PYNTM6HVOB33SBH7NRANCNFSM4M7W7HFQ .
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 'cordova-plugin-document-scannner@latest' 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 'cordova-plugin-document-scannner@latest' 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." } }
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 'cordova-plugin-document-scannner@latest' 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 'cordova-plugin-document-scannner@latest' 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 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 [email protected] 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 'cordova-plugin-document-scannner@latest' 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 'cordova-plugin-document-scannner@latest' 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 https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/74#issuecomment-678009897, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKXNPZGVOJO2USJRU766XALSBXO77ANCNFSM4M7W7HFQ .
It's not working in Android 10, Samsung Galaxy J8 mobile after taking picture it's showing black screen
I'm having the same black screen problem as https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/74#issuecomment-688596560 running Android 10 on a Samsung Galaxy S9. I'm using Ionic and Cordova with this plugin.
Ionic CLI : 6.11.8
Cordova CLI : 10.0.0
Cordova Platforms : android 9.0.0, ios 6.1.0
remove platform android and run ionic cordova platform add [email protected]
remove platform android and run ionic cordova platform add [email protected]
@SeaEagleEye Do you know what the issue is requiring moving back to 8.0.0
?
No It's just a quick fix
On Thu, Sep 17, 2020 at 4:28 AM David Quon [email protected] wrote:
remove platform android and run ionic cordova platform add [email protected]
@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 https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/74#issuecomment-693709197, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMRHUC5MESIZI7AX2NBNKGDSGE7LDANCNFSM4M7W7HFQ .
Anybody got solutions for multi scan
On Thu, 17 Sep, 2020, 12:02 pm Prajwal, [email protected] wrote:
No It's just a quick fix
On Thu, Sep 17, 2020 at 4:28 AM David Quon [email protected] wrote:
remove platform android and run ionic cordova platform add [email protected]
@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 < https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/74#issuecomment-693709197 , 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 https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/74#issuecomment-693971609, 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)
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 :)
Can you implement multi scan functionality If you implement that will be great
On Mon, 21 Sep, 2020, 1:39 pm Christy Thomas Alex, [email protected] 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 https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/74#issuecomment-695966751, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIY3VVERRZLO7YBIKHUG2SLSG4C2PANCNFSM4M7W7HFQ .
@NautamSanghani please don't hijack issues. There is another similar issue #31 . You can leave your thoughts there. It has already been considered as an enhancement but not sure when we will get around to it.
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 :-
- Make sure to remove the old version using
cordova plugin rm cordova-plugin-document-scanner
- To test it add the following to your project
-
cordova plugin add [email protected]
-
cordova plugin add cordova plugin add cordova-plugin-androidx
-
cordova plugin add cordova-plugin-androidx-adapter
-
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
Thx, I'll go test later this week.
:)
wimZ
10 nov. 2020 13:21:08 Christy Thomas Alex [email protected]:
Released a new beta version[https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fcordova-plugin-document-scanner%2Fv%2F5.0.0-beta.0&data=04%7C01%7C%7Cdf4d06b868234f10bdb808d8857319f2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637406076679719337%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=5HZdIc75QW7ucTeVc6S74uIH0%2B4tATaXVfSev3A419s%3D&reserved=0] of the plugin.
To test it :-
-
-
Make sure to remove the old version using cordova plugin rm cordova-plugin-document-scanner
-
-
-
To test it add the following to your project
-
-
cordova plugin add [email protected]
-
cordova plugin add cordova plugin add cordova-plugin-androidx
-
cordova plugin add cordova-plugin-androidx-adapter
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[https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FNeutrinosPlatform%2Fscanlibrary%2Fissues%2F6&data=04%7C01%7C%7Cdf4d06b868234f10bdb808d8857319f2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637406076679719337%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=QzOhOXikFAGVvgt3FQoumWSf1VUFGgaYzMj36hS7F5E%3D&reserved=0]
Cheers and have a nice day :) Chris[https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FChrisTomAlx&data=04%7C01%7C%7Cdf4d06b868234f10bdb808d8857319f2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637406076679729333%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=NuNFEOvx3pQYipTQL0WNbkEm3tPPqJm9ts8qjZoUl5M%3D&reserved=0] Neutrinos[https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.neutrinos.co%2F&data=04%7C01%7C%7Cdf4d06b868234f10bdb808d8857319f2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637406076679729333%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Ab4a7AD8DamUkCt85OlFAi4dANZtTwzVvDE4v0CPGNg%3D&reserved=0]
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub[https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FNeutrinosPlatform%2Fcordova-plugin-document-scanner%2Fissues%2F74%23issuecomment-724667450&data=04%7C01%7C%7Cdf4d06b868234f10bdb808d8857319f2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637406076679729333%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=alidF4T79iXGtq2%2BtZZV0dN0Jo7iISrw4Ijn0PaR89Y%3D&reserved=0], or unsubscribe[https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD2YDNNDXSDW4HGY3DCMAJDSPEV3HANCNFSM4M7W7HFQ&data=04%7C01%7C%7Cdf4d06b868234f10bdb808d8857319f2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637406076679739328%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=8mB%2BCz8im1jEOy%2BZuWah342Dc0LUW6OjRi9tFSalW3o%3D&reserved=0]. [https://github.com/notifications/beacon/AD2YDNKYEMZM6M72VU47OVTSPEV3HA5CNFSM4M7W7HF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFMYYYOQ.gif]
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:
cordova plugin add cordova-plugin-androidx Installing "cordova-plugin-androidx" for android Plugin doesn't support this project's cordova-android version. cordova-android: 9.0.0, failed version requirement: <9.0.0 Skipping 'cordova-plugin-androidx' for android Adding cordova-plugin-androidx to package.json
Seems like cordova android 9.0 doesn't need cordova-plugin-androidx?