I am trying to profile native android code, but I am getting the
following error.I am running the code on a linux machine.
$tracedmdump profile post-processing
traces...
Static basic blocks: 64525, Dynamic
basic blocks: 87073132
Static instructions: 412004, Dynamic
instructions: 509641730
Elapsed seconds: 26.46, simulated
instructions/sec: 19.3M
generating dexlist output...
generating dmtrace data...
Error: stack overflow (500 frames)
If anyone knows how to debug this issue...please help
Thanks and Regards,
Bharat Pawar
From your post and the Android GIT commitdiff it looks like this line in the "tracedmdump" shell function went wrong:
q2dm -r $ANDROID_PRODUCT_OUT/symbols $TRACE $KERNEL $TRACE/dmtrace
The q2dm command is part of the qemu emulator tools for Android.
Looks like the problem has actually been fixed and changed source committed.
a. If you can, synchronize your local GIT repository with the Android GIT repository and build yourself a more current version of the q2dm tool. b. Alternatively, check/wait for the next NDK (sub-)release for a more current q2dm version.
Hope this helps!
Related
I downloaded the source code for Android 11 for Tinker Board (S) R2.0 and Tinker Board 2/2S, from this link https://github.com/TinkerBoard/TinkerBoard/wiki . I tried to build the code using these commands given (in same link) :
source build/envsetup.sh
lunch WW_Tinker_Board_2-userdebug
./build.sh -UCKAu
during last step I got this error and it said build kernel failed. I don't know what to do, any help is appreciated,build failed error cause of error (probably)
I am new to android and I don't know what I can try to solve this problem.
Edit after comment :
I ran on wsl Ubuntu 22.04LTS, I have 200GB left after downloading the source code
We are trying to bringup a new MIPI display that we are using for our smart glasses solution. To do this we have roughly followed the guide provided by Qualcomm: https://developer.qualcomm.com/download/db410c/dsi-display-porting-guide-linux-android.pdf
The method of porting a new display required that we modify the Android bootloader (Little Kernel) with the new configuration for the display we are using. This allows us to select the new display using the command:
$ fastboot oem select-display-panel <display-name>
The problem is that to add this new configuration to LK we need to rebuild the image (emmc_appsboot.mbn). This has been unsuccessful so far.
We found a file within the LK directory that is called AndroidBoot.mk. A comment in this file says “#Android makefile to build lk bootloader as a part of Android Build”
According to that comment, it seems that LK should be built as a part of Android build, however we cannot seem to do so. Is this thinking correct?
As per the LK github build instructions, we've also tried running
$ make msm8909
from the LK directory but we are getting the following error:
unrecognised option '-mcpu=cortex-a8'
I suspect this may be due to missing part of the toolchain as I've had to manually add arm-eabi-gcc to the path variable.
Can anyone provide any information on what command we need to use or what process needs to be followed in order to generate a new LK bootloader file with the updated config?
The problem was due to an incorrect PATH variable set. I fixed the issue by adding the correct path: ".../prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/" to the .bashrc file and re-logging in.
I need to evaluate the image quality of several images using the arcoreimg tool to process a failed build in Unreal using blueprints.
I'm running on a Mac, but far more familiar with a PC. I've tried the following:
./arcoreimg eval-img --input_image_path=/Users/scull/Documents/Proj/Content/images/s_recog_turl.png
No such file or directory
I have located the ptdbtool_macos_lipobin tool in the ~Library and tried running it from there but to no avail:
/Users/Shared/Epic Games/UE_4.21/Engine/Plugins/Runtime/GoogleARCore/Binaries/ThirdParty/Google/ARCoreImg/Mac
Can anyone point out where I'm going wrong?
To my future self:
Use
./ptdbtool_macos_lipobin eval-img --input_image_path=/Users/scull/Documents/Proj/Content/images/s_recog_turl.png
Looks like someone at Android forgot to rename the executable to arcoreimg.
I want to build an ocr app in android.For that i am using tessaract library.I am following this turorial ocr tutoial it says follow below steps
Download the NDK & extract to C:\ drive-Done
Set NDK Path & Android SDK path to PATH variable in Enviorment Variable.-Done
Download tessaract library and extract it to C:-Done
open command line & go inside tessract folder ibn downloaded library.-
Write ndk-build-Not Done
When i write ndk-build it says the system can't find the specified path.
Please tell me how to resolve this issue.I have already spent lot of hard time on this.
Thanks in advance.
If you re-read the link you posted, you may notice this line from the author:
Attention: if you fail at any of the above steps, you are not ready for this shit yet. Better grab an introduction to android development course, read a book, then come back to this tutorial. You’ll just waste time and nerves and you’ll bitch about it in the comments that this crash, this doesn’t work. (PS. no, I will not send you the source code on your email, stop spamming k thx.)
You should seriously consider his advice - working with the Android NDK only gets more difficult from here.
You're probably getting that error message because cmd couldn't find the ndk-build program, which is located inside the root of android-ndk-r10e. Possible causes:
You made an error when editing your PATH variable - make sure each file path is separated by a semicolon and that you provided the full path to your NDK install.
Your PATH is too long - the max length is 260 characters. See this page for more info. tl;dr: prefix \?\ to your PATH to get around this length limit.
You had cmd open when you set the variables - try restarting the cmd
program or even restarting your machine.
I am trying to compile some source code but when i run the command
make -f android-9-armv7.mk
I get the following error
android-9-armv7.mk:1: * missing separator. Stop.
This is the contents of the file above:
And I have set the IMAGINE_PATH variable as well, cant seem to figure it out.
link ../imagine/make/shortcut/common-builds/android-9-armv7.mk
Compiling instructions
http://code.google.com/p/emu-ex-plus-alpha/wiki/Compiling
Imagine is locaed at C:/Imagine
I don't know where you've taken the sources, but all the android-9-armv7.mk files from different projects on that git has following content:
../imagine/make/shortcut/common-builds/android-9-armv7.mk
...there is no link keyword, which probably is why you get this error.
Also, please be informed that you're building this on Windows machine while documentation clearly states that it's supported only on Linux and Mac OS X.