Comments (2)
I experience exactly the same problem. For some reason the native service tends
to use an increasing amount of memory (you can see through "ps"), therefore the
consequences related to slow responsiveness and home screen stuff. Can you
please fix this memory leak or at least provide the source code of the service
itself?
Original comment by [email protected]
on 9 May 2012 at 2:17
from android-screenshot-library.
Hi everybody! I've managed to fix the problem with increasingly consumed
memory. Sorry for my last dumb post. I just could not find the source at first.
Issue 13 explains a pretty important memory leak that has to be fixed as well,
so fix it first.
In addition, the native library does not free the pict after it sends it to the
client. To eliminate this problem you just have to change the code in main.c at
line 220 to include the free of pict.buffer:
if (Send(cfd, pict.buffer, pict.xres * pict.yres * pict.bps / 8, 0) < 0) {
free(pict.buffer);
return -1;
}
free(pict.buffer);
Log ("- Screenshot sent");
Original comment by [email protected]
on 11 May 2012 at 12:00
from android-screenshot-library.
Related Issues (20)
- screen shots can be successful, but, asl-native service is stopped,It "shows Native service not found", after the start of each service only successful of one time HOT 1
- Screenshot height each time is fixed, and only shows the head of the phone screen HOT 2
- (patch) native part does not compile in release
- Black screen on Samsung Galaxy Note (N7000)
- Getting black screen on ANdroid 2.2 emulator HOT 1
- Black screen is capturing in emulator
- Nexus 7 produces "fuzzy" image screenshot HOT 1
- Can anyone send me fix asl 1.2?
- failed to copy './asl-native' to '/data/local/asl-native': Permission denied
- For some devices No screenshot will be taken HOT 1
- Screenshots of Videos
- magic 7F45
- Black screen on samsung galaxy r
- black
- android screenshot library is not working in Android 4.4.4
- ASL IMPLEMENTATION
- How to open and read asl-native file
- ASl Provider Null
- How to copy asl-native file in android and run?
- Toast shown: "Native service not found." - 6/30/2015
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-screenshot-library.