Status Update
Comments
ch...@gmail.com <ch...@gmail.com> #2
ASharedMemory can no longer be mapped in child progress
ch...@google.com <ch...@google.com> #3
Device build details -- Device Make, Model, Android OS Version
Preconditions to reproduce the issue.
Please provide sample project.
Provide the bin file or apk if possible to depict it through JAVA API to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project or apk.
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
Expected output as per the apk shared.
What is the expected output?
Current output as per the apk shared.
What is the current output?
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the files to google drive and share the folder to android-bugreport@google.com, then share the link here.
ke...@gmail.com <ke...@gmail.com> #4
* Are you an Android developer?" (Y/N)
Yes
* Which Android Developer Preview build are you using? See Settings > About phone > Build number (for example RPP1.200123.000).
RPB3.200720.005
* Is this a regression from Android 10 to 11?
Yes
* What device are you using? (for example, Pixel 3 XL)
Pixel 2 API 30 emulated
* What are the steps to reproduce the problem? (Please provide the minimal reproducible test case.)
* Issue Category e.g. Framework (platform), NDK (platform), Hardware (CPU, GPU, Sensor, Camera), ART (platform), Runtime Permissions etc
NDK
* What was the expected result?
mmap in child progess success
*How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
100% of the time
*Expected output as per the apk shared Relevant logcat output.
Code to reproduce the bug https://drive.google.com/file/d/1RKxloyiFUzVxniUHl_pGwB1C62hLAoKj/view?usp=sharing
Devices below android 11
E/MMap (24004): parent progess create ashmem success!! E/MMap (24004): parent progess mmap success!! E/MMap (24004): fork success on main process E/MMap (24024): fork child success E/MMap (24024): child process --child progess start!!--[/data/app/com.example.testmmap-2/lib/arm//libChild-mmap.so]--[26] E/MMap (24024): child process -- map ashmem region suceess !!! Device android 11 E MMap : parent progess create ashmem success!! E MMap : parent progess mmap success!! E MMap : fork success on main process E MMap : child progess start!!--[/data/app/~~dwoB2cD-fsG1UYLML_cKLw==/com.example.testmmap-m50nMorgvlONu3i6uNFhJw==/lib/x86//libChild-mmap.so]--[54] E MMap : child process --failed to map ashmem region: Bad file descriptor
* What was the actual result?
mmap in child progess failed
Description
-------------------------------------
The Module App is my only module. I found "implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"" and "apply plugin: 'kotlin-android'" in my build.gradle for Module App.
This issue DOES NOT affect me permanently but randomly every time I did a gradle sync. The last time it happens is when I changed my buildToolsVersion from "27.0.0" to "27.0.1" then AS informed me to do a gradle sync for it to take effect and I did. After a gradle sync the issue appeared but it disappeared immediately after I did a gradle sync again. I've encountered this issue multiple times. EVERY TIME it's associated with gradle sync
I haven't checked if I can build the project successfully when this issue arises but indeed I saw lots of errors from the lint check for my kotlin source code files so I basically can't work on this project until I did a gradle sync again to fix this issue
In my build.gradle file for my app module:
compileSdkVersion 27
buildToolsVersion "27.0.1"
minSdkVersion 15
targetSdkVersion 27
build.gradle file for my whole project:
ext.kotlin_version = '1.1.51'
That's all the information that I think is useful for you in my build script. I used all default settings except that I added Kotlin support when I set up the project.