Comments (12)
Hi @igorski
First of all thank you for your time and reply. After Rebuild engine is stable I have checked in few device which we are facing (including C11) the issues before. so far stable in C11 device.
Thanks once again.
from mwengine.
Guys, I'm sorry but attaching a video of an unresponsive app isn't providing any sort of clue. I can understand from the log that something crashed, but I can't really do anything as I am unaware of what your program is doing. It looks like the example activity, but from the log I can tell that code has been altered and I can't really do anything without seeing it.
I would urge to backtrack how you set up the engine instead of ignoring earlier warnings that you should not send direct messages via the website (I will also ignore the second issue mentioned under 2 because you are also ignoring "limit to one issue per post" without providing any kind of description on how the issue manifests itself).
Here's some pointers, I see that a file "yo.wav" of a whopping 50 mb in size is read three times before starting the engine.
Also check the part that says
W/Activity: Can request only one set of permissions at a time
D/MWENGINE: MWEngineActivity::onWindowFocusChanged, has focus: true
Is the window focus change for the permissions popup ? Are you sure you all permissions are granted prior to continuing ? Does it make sense that the permissions are requested after the engine is started / samples are loaded from device storage (which requires granting of a storage related permission).
I would urge to backtrack the setup phase of your program and see if all criterion are met before you continue to the next step of setting up the engine and its environment.
from mwengine.
Hi @igorski,
I am really Sorry for the DM,
Here's some pointers, I see that a file "yo.wav" of a whopping 50 mb in size is read three times before starting the engine.
It happens because I load the assets during init, mean while it also check the mic and storage permissions. so it keep changing the focus, it causes to parse it 3 audio file time. I have changed this by loading songs after click the button and also after permissions handled. Now the song parse only one time But still same problems occurs. I try to minimize the thread weight for past two days but still
getting the error "Crash thread undumpable
"
So I try to run the example activity without any changes. it still getting crash with error "Crash thread undumpable" for few devices (REALME C11 2021). The log is below.
05/24 12:37:45: Launching 'mwengine_example' on realme RMX3231.
Install successfully finished in 529 ms.
$ adb shell am start -n "nl.igorski.mwengine.example/nl.igorski.mwengine.example.MWEngineActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Connected to process 18866 on device 'realme-rmx3231-0002127R5000232C'.
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/chatty: uid=10230(nl.igorski.mwengine.example) expire 480 lines
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->sResourcesManager:Landroid/app/ResourcesManager; (greylist-max-o, linking, denied)
I/chatty: uid=10230(nl.igorski.mwengine.example) identical 1 line
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->sResourcesManager:Landroid/app/ResourcesManager; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->getOrCreateActivityResourcesStructLocked(Landroid/os/IBinder;)Landroid/app/ResourcesManager$ActivityResources; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager$ActivityResources;->(Landroid/app/ResourcesManager$1;)V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->lambda$cleanupReferences$0(Ljava/util/HashSet;Ljava/lang/ref/WeakReference;)Z (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->loadApkAssets(Ljava/lang/String;ZZ)Landroid/content/res/ApkAssets; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager$ApkKey;->(Ljava/lang/String;ZZ)V (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->overlayPathToIdmapPath(Ljava/lang/String;)Ljava/lang/String; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->rebaseActivityOverrideConfig(Landroid/content/res/Resources;Landroid/content/res/Configuration;Landroid/content/res/Configuration;I)Landroid/content/res/ResourcesKey; (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/Resources;->getImpl()Landroid/content/res/ResourcesImpl; (greylist, linking, allowed)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->findKeyForResourceImplLocked(Landroid/content/res/ResourcesImpl;)Landroid/content/res/ResourcesKey; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->rebaseKeyForActivity(Landroid/os/IBinder;Landroid/content/res/ResourcesKey;)V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->getOrCreateActivityResourcesStructLocked(Landroid/os/IBinder;)Landroid/app/ResourcesManager$ActivityResources; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->redirectResourcesToNewImplLocked(Landroid/util/ArrayMap;)V (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->findOrCreateResourcesImplForKeyLocked(Landroid/content/res/ResourcesKey;)Landroid/content/res/ResourcesImpl; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->findOrCreateResourcesImplForKeyLocked(Landroid/content/res/ResourcesKey;)Landroid/content/res/ResourcesImpl; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager$ActivityResources;->activityResources:Ljava/util/ArrayList; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager$ActivityResources;->activityResources:Ljava/util/ArrayList; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->findOrCreateResourcesImplForKeyLocked(Landroid/content/res/ResourcesKey;)Landroid/content/res/ResourcesImpl; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager$ActivityResources;->activityResources:Ljava/util/ArrayList; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->findOrCreateResourcesImplForKeyLocked(Landroid/content/res/ResourcesKey;)Landroid/content/res/ResourcesImpl; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager$ActivityResources;->activityResources:Ljava/util/ArrayList; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->updateActivityResources(Landroid/content/res/Resources;Landroid/content/res/ResourcesKey;Z)V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->createResourcesImpl(Landroid/content/res/ResourcesKey;)Landroid/content/res/ResourcesImpl; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->findOrCreateResourcesImplForKeyLocked(Landroid/content/res/ResourcesKey;)Landroid/content/res/ResourcesImpl; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->appendLibAssetForMainAssetPath(Ljava/lang/String;Ljava/lang/String;)V (greylist, linking, allowed)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->appendLibAssetsForMainAssetPath(Ljava/lang/String;[Ljava/lang/String;)V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->appendLibAssetsForMainAssetPath(Ljava/lang/String;[Ljava/lang/String;)V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mResDir:Ljava/lang/String; (greylist, linking, allowed)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mLibDirs:[Ljava/lang/String; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Lcom/android/internal/util/ArrayUtils;->appendElement(Ljava/lang/Class;[Ljava/lang/Object;Ljava/lang/Object;)[Ljava/lang/Object; (greylist, linking, allowed)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mLibDirs:[Ljava/lang/String; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mSplitResDirs:[Ljava/lang/String; (greylist, linking, allowed)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mOverlayDirs:[Ljava/lang/String; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mDisplayId:I (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mOverrideConfiguration:Landroid/content/res/Configuration; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mCompatInfo:Landroid/content/res/CompatibilityInfo; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mLoaders:[Landroid/content/res/loader/ResourcesLoader; (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/ResourcesKey;->(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;ILandroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;[Landroid/content/res/loader/ResourcesLoader;)V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mLibDirs:[Ljava/lang/String; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mLibDirs:[Ljava/lang/String; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mOverlayDirs:[Ljava/lang/String; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mDisplayId:I (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mOverrideConfiguration:Landroid/content/res/Configuration; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mCompatInfo:Landroid/content/res/CompatibilityInfo; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/content/res/ResourcesKey;->mLoaders:[Landroid/content/res/loader/ResourcesLoader; (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/ResourcesKey;->(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;ILandroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;[Landroid/content/res/loader/ResourcesLoader;)V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->redirectResourcesToNewImplLocked(Landroid/util/ArrayMap;)V (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->applyCompatConfigurationLocked(ILandroid/content/res/Configuration;)Z (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->mResCompatibilityInfo:Landroid/content/res/CompatibilityInfo; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/CompatibilityInfo;->supportsScreen()Z (greylist, linking, allowed)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->mResCompatibilityInfo:Landroid/content/res/CompatibilityInfo; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/CompatibilityInfo;->applyToConfiguration(ILandroid/content/res/Configuration;)V (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->applyConfigurationToResources(Landroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;)Z (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->applyConfigurationToResourcesLocked(Landroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;Landroid/view/DisplayAdjustments;)Z (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->applyConfigurationToResourcesLocked(Landroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;)Z (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->applyConfigurationToResourcesLocked(Landroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;Landroid/view/DisplayAdjustments;)Z (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->applyConfigurationToResourcesLocked(Landroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;Landroid/view/DisplayAdjustments;)Z (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/Configuration;->isOtherSeqNewer(Landroid/content/res/Configuration;)Z (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->applyNewResourceDirsLocked(Landroid/content/pm/ApplicationInfo;[Ljava/lang/String;)V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/pm/ApplicationInfo;->getBaseCodePath()Ljava/lang/String; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->createAssetManager(Landroid/content/res/ResourcesKey;)Landroid/content/res/AssetManager; (greylist, linking, allowed)
W/wengine.exampl: Accessing hidden method Landroid/content/res/AssetManager$Builder;->()V (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->createBaseTokenResources(Landroid/os/IBinder;Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;ILandroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;Ljava/lang/ClassLoader;Ljava/util/List;)Landroid/content/res/Resources; (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/ResourcesKey;->(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;ILandroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;[Landroid/content/res/loader/ResourcesLoader;)V (blacklist, linking, denied)
I/chatty: uid=10230(nl.igorski.mwengine.example) identical 1 line
W/wengine.exampl: Accessing hidden method Landroid/content/res/ResourcesKey;->(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;ILandroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;[Landroid/content/res/loader/ResourcesLoader;)V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->dump(Ljava/lang/String;Ljava/io/PrintWriter;)V (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Lcom/android/internal/util/IndentingPrintWriter;->(Ljava/io/Writer;Ljava/lang/String;)V (greylist, linking, allowed)
W/wengine.exampl: Accessing hidden method Lcom/android/internal/util/IndentingPrintWriter;->increaseIndent()Lcom/android/internal/util/IndentingPrintWriter; (greylist, linking, allowed)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->mLoadedApkAssets:Landroid/util/LruCache; (greylist-max-o, linking, denied)
I/chatty: uid=10230(nl.igorski.mwengine.example) identical 5 lines
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->mLoadedApkAssets:Landroid/util/LruCache; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->mCachedApkAssets:Landroid/util/ArrayMap; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->countLiveReferences(Ljava/util/Collection;)I (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->mCachedApkAssets:Landroid/util/ArrayMap; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->countLiveReferences(Ljava/util/Collection;)I (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->getAdjustedDisplay(ILandroid/content/res/Resources;)Landroid/view/Display; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/hardware/display/DisplayManagerGlobal;->getCompatibleDisplay(ILandroid/content/res/Resources;)Landroid/view/Display; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->getConfiguration()Landroid/content/res/Configuration; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->getDisplayMetrics()Landroid/util/DisplayMetrics; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/view/DisplayAdjustments;->DEFAULT_DISPLAY_ADJUSTMENTS:Landroid/view/DisplayAdjustments; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->getDisplayMetrics(ILandroid/view/DisplayAdjustments;)Landroid/util/DisplayMetrics; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->getDisplayMetrics(ILandroid/view/DisplayAdjustments;)Landroid/util/DisplayMetrics; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->getAdjustedDisplay(ILandroid/view/DisplayAdjustments;)Landroid/view/Display; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->getResources(Landroid/os/IBinder;Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;ILandroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;Ljava/lang/ClassLoader;Ljava/util/List;)Landroid/content/res/Resources; (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/ResourcesKey;->(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;ILandroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;[Landroid/content/res/loader/ResourcesLoader;)V (blacklist, linking, denied)
I/chatty: uid=10230(nl.igorski.mwengine.example) identical 1 line
W/wengine.exampl: Accessing hidden method Landroid/content/res/ResourcesKey;->(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;ILandroid/content/res/Configuration;Landroid/content/res/CompatibilityInfo;[Landroid/content/res/loader/ResourcesLoader;)V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->invalidatePath(Ljava/lang/String;)V (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/ResourcesKey;->isPathReferenced(Ljava/lang/String;)Z (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->mCachedApkAssets:Landroid/util/ArrayMap; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->mCachedApkAssets:Landroid/util/ArrayMap; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager$ApkKey;->path:Ljava/lang/String; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->mCachedApkAssets:Landroid/util/ArrayMap; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/ApkAssets;->close()V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->mCachedApkAssets:Landroid/util/ArrayMap; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager$ApkKey;->path:Ljava/lang/String; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager;->mCachedApkAssets:Landroid/util/ArrayMap; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/ApkAssets;->close()V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->isSameResourcesOverrideConfig(Landroid/os/IBinder;Landroid/content/res/Configuration;)Z (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager$ActivityResources;->overrideConfig:Landroid/content/res/Configuration; (greylist-max-o, linking, denied)
I/chatty: uid=10230(nl.igorski.mwengine.example) identical 1 line
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager$ActivityResources;->overrideConfig:Landroid/content/res/Configuration; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/Configuration;->diffPublicOnly(Landroid/content/res/Configuration;)I (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->overrideTokenDisplayAdjustments(Landroid/os/IBinder;Ljava/util/function/Consumer;)Z (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden field Landroid/app/ResourcesManager$ActivityResources;->activityResources:Ljava/util/ArrayList; (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/content/res/Resources;->overrideDisplayAdjustments(Ljava/util/function/Consumer;)V (blacklist, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->updateResourcesForActivity(Landroid/os/IBinder;Landroid/content/res/Configuration;IZ)V (greylist-max-o, linking, denied)
W/wengine.exampl: Accessing hidden method Landroid/app/ResourcesManager;->getOrCreateActivityResourcesStructLocked(Landroid/os/IBinder;)Landroid/app/ResourcesManager$ActivityResources; (greylist-max-o, linking, denied)
W/wengine.exampl: Redefining intrinsic method java.lang.Thread java.lang.Thread.currentThread(). This may cause the unexpected use of the original definition of java.lang.Thread java.lang.Thread.currentThread()in methods that have already been compiled.
W/wengine.exampl: Redefining intrinsic method boolean java.lang.Thread.interrupted(). This may cause the unexpected use of the original definition of boolean java.lang.Thread.interrupted()in methods that have already been compiled.
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
D/NetworkSecurityConfig: No Network Security Config specified, using platform default
W/wengine.exampl: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed)
W/wengine.exampl: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed)
D/MWENGINE: MWEngineActivity::init, had existing _inited state: false
W/wengine.example: type=1400 audit(0.0:1054410): avc: denied { read } for name="cpus" dev="cgroup" ino=99 scontext=u:r:untrusted_app:s0:c230,c256,c512,c768 tcontext=u:object_r:cgroup:s0 tclass=file permissive=0 app=nl.igorski.mwengine.example
W/wengine.example: type=1400 audit(0.0:1054412): avc: denied { read } for name="cpus" dev="cgroup" ino=27 scontext=u:r:untrusted_app:s0:c230,c256,c512,c768 tcontext=u:object_r:cgroup:s0 tclass=file permissive=0 app=nl.igorski.mwengine.example
W/wengine.example: type=1400 audit(0.0:1054413): avc: denied { read } for name="cpus" dev="cgroup" ino=27 scontext=u:r:untrusted_app:s0:c230,c256,c512,c768 tcontext=u:object_r:cgroup:s0 tclass=file permissive=0 app=nl.igorski.mwengine.example
V/MWENGINE: About to parse data for WAV file '/data/user/0/nl.igorski.mwengine.example/cache/tmp'
V/MWENGINE: File size : 45092
V/MWENGINE: Audio format : 1
V/MWENGINE: Channel amount : 2
W/wengine.example: type=1400 audit(0.0:1054414): avc: denied { read } for name="cpus" dev="cgroup" ino=27 scontext=u:r:untrusted_app:s0:c230,c256,c512,c768 tcontext=u:object_r:cgroup:s0 tclass=file permissive=0 app=nl.igorski.mwengine.example
V/MWENGINE: Sample rate : 44100
V/MWENGINE: Bytes per second : 176400
V/MWENGINE: Block align : 4
V/MWENGINE: Bits per sample : 16
W/wengine.example: type=1400 audit(0.0:1054415): avc: denied { read } for name="cpus" dev="cgroup" ino=27 scontext=u:r:untrusted_app:s0:c230,c256,c512,c768 tcontext=u:object_r:cgroup:s0 tclass=file permissive=0 app=nl.igorski.mwengine.example
V/MWENGINE: About to parse data for WAV file '/data/user/0/nl.igorski.mwengine.example/cache/tmp'
V/MWENGINE: File size : 92582
V/MWENGINE: Audio format : 1
V/MWENGINE: Channel amount : 1
V/MWENGINE: Sample rate : 48000
V/MWENGINE: Bytes per second : 96000
V/MWENGINE: Block align : 2
V/MWENGINE: Bits per sample : 16
D/MWENGINE: starting native audio rendering thread @ 44100 Hz using 480 samples per buffer
V/MWENGINE: STARTING engine
V/MWENGINE: STARTED engine
V/MWENGINE: DriverAdapter::initializing AAudio driver
I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
I/AudioStreamBuilder: rate = 0, channels = 2, format = 5, sharing = EX, dir = OUTPUT
I/AudioStreamBuilder: device = 0, sessionId = -1, perfMode = 12, callback: ON with frames = 0
I/AudioStreamBuilder: usage = 0, contentType = 0, inputPreset = 0, allowedCapturePolicy = 0
I/AudioStreamBuilder: privacy sensitive = false
D/AudioStreamBuilder: build() EXCLUSIVE sharing mode not supported. Use SHARED.
D/wengine.exampl: PlayerBase::PlayerBase()
D/AudioStreamTrack: open(), request notificationFrames = -8, frameCount = 0
I/AudioTrack: set(): streamType -1, sampleRate 0, format 0x5, channelMask 0x3, frameCount 0, flags #104, notificationFrames -8, sessionId 0, transferType 1, uid -1, pid -1
D/AudioTrack: createTrack_l(0): AUDIO_OUTPUT_FLAG_FAST denied by server; frameCount 0 -> 3848
W/AudioStreamTrack: open() sampleRate changed from 0 to 44100
D/AAudioStream: setState(s#1) from 0 to 2
W/AudioStreamTrack: open() flags changed from 0x00000104 to 0x00000000
W/AudioStreamTrack: open() perfMode changed from 12 to 10
I/AAudio: AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#1 ----------------
V/MWENGINE: AAudio_IO::Output stream is NOT low latency. Check your requested format, sample rate and channel count
V/MWENGINE: AAudio_IO::Setting buffer size to 882
I/AAudio: AAudioStreamBuilder_openStream() called ----------------------------------------
I/AudioStreamBuilder: rate = 44100, channels = 1, format = 5, sharing = EX, dir = INPUT
I/AudioStreamBuilder: device = 0, sessionId = -1, perfMode = 12, callback: OFF with frames = 0
I/AudioStreamBuilder: usage = 0, contentType = 0, inputPreset = 0, allowedCapturePolicy = 0
I/AudioStreamBuilder: privacy sensitive = false
D/AudioStreamBuilder: build() EXCLUSIVE sharing mode not supported. Use SHARED.
D/wengine.exampl: PlayerBase::PlayerBase()
W/AudioStreamRecord: open() flags changed from 0x00000005 to 0x00000000
W/AudioStreamRecord: open() perfMode changed from 12 to 10
D/AAudioStream: setState(s#2) from 0 to 2
I/AAudio: AAudioStreamBuilder_openStream() returns 0 = AAUDIO_OK for s#2 ----------------
V/MWENGINE: AAudio_IO::Input stream is NOT low latency. Check your requested format, sample rate and channel count
D/AAudio: AAudioStream_requestStart(s#2) called --------------
D/AAudioStream: setState(s#2) from 2 to 3
I/AudioRecord: start mClientUid:10230 mClientPid:18866 mSessionId:6337 app name:nl.igorski.mwengine.example
I/ActivityThread: smart_link is not supported!!!
D/wengine.exampl: PlayerBase::start() from IPlayer
D/AAudio: AAudioStream_requestStart(s#2) returned 0 ---------
D/AudioStreamLegacy: onAudioDeviceUpdate() devId 1019 => 1019
D/AAudio: AAudioStream_requestStart(s#1) called --------------
D/AAudioStream: setState(s#1) from 2 to 3
I/AudioTrack: start mClientUid:10230 mClientPid:18866 mSessionId:6329 app name:nl.igorski.mwengine.example
D/AudioStreamLegacy: onAudioDeviceUpdate() devId 1019 => 1019
D/wengine.exampl: PlayerBase::start() from IPlayer
V/MWENGINE: AAudio_IO::Error calculating latency: AAUDIO_ERROR_INVALID_STATE
D/AAudio: AAudioStream_requestStart(s#1) returned 0 ---------
D/AudioStreamLegacy: onAudioDeviceUpdate() devId 1017 => 1017
V/MWENGINE: Binding to current CPU ID 5 for thread 18897
D/AAudioStream: setState(s#1) from 3 to 4
E/OpenGLRenderer: ~SkiaDisplayList() ##### pid = 18866
D/IMGGralloc: Gralloc Register w:720, h:1600, f:0x1, usage:0xb00, ui64Stamp:226633, sSize:4608000, line = 2335
D/IMGGralloc: Gralloc Register w:720, h:1600, f:0x1, usage:0xb00, ui64Stamp:226678, sSize:4608000, line = 2335
D/MWENGINE: MWEngineActivity::onWindowFocusChanged, has focus: true
D/IMGGralloc: Gralloc Register w:720, h:1600, f:0x1, usage:0xb00, ui64Stamp:226682, sSize:4608000, line = 2335
I/wengine.exampl: Waiting for a blocking GC ProfileSaver
D/AAudioStream: setState(s#2) from 3 to 4
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3d825e89 in tid 18893 (RenderThread), pid 18866 (wengine.example)
I/DEBUG: Crash thread undumpable
Thanks in advance
from mwengine.
Assuming that the crash happens with the example Activity with all of its code unchanged (please pull latest code and assemble mwengine
project prior to building mwengine_example
project) what is exactly happening for this crash to happen ? Is it happening the moment the application is launched or after some interaction with the UI, like start/stop playback and/or recording ?
from mwengine.
Yes crash happened with example Activity and yes I pushed the latest code and assemble mwengine
prior .
it happens when i start to Recording(with in one second).
Thanks @igorski
from mwengine.
Recording of the engine output (startOutputRecording()
) or the device input (e.g. recordInput()
) ?
from mwengine.
Hi @igorski
I try to narrow down the issues by changing the code. but it happens in both case
when i try to Record with out device input(startOutputRecording()
) app get crash some times.
but when i add try to set true to input device ( recordInput(true)
) it get either get crashed immediately or with in few seconds.
seems it happens mostly during device input.
Thank you for your time
from mwengine.
I struggle to reproduce this on any hardware device or emulator. Is there an AVD configuration you use that can reproduce this issue ? If so, what is its hardware profile and OS version ?
from mwengine.
Hi @igorski ,
I am trying to reproduce this issue using emulator. but unfortunately emulator doesn't crash for this scenario.
but It happens every time in this device (REALME C11 2021)
Device name : realme c11 2021
version : BaseBand & kernel
Android Version : 11
Processor : Octa-core
Ram : 2.0 GB
Model : RMX3231
also facing same issues in some other devices like Realme 5s
from mwengine.
Sadly I have no access to this device. Is the processor an ARM or Intel type ? Could you verify whether the application is stable if you would force the driver to be OpenSL instead of AAudio ?
from mwengine.
Hi @igorski
The device Realme c11 which I am facing issues has the processor ARM 64 bit. and I set drive to OpenSL the app still behave the same and still app the crash like before.
I am still trying to reproduce the issues in AVD.
Is their way to Minimize the thread weight while recording with mic turn on?
Thank you @igorski
from mwengine.
Took a little investigation but it is likely that the processor used by the C11 is a derivative of the Cortex A53|A55-types and might be running in 32-bit mode, meaning it doesn't use the aarch64 ABI. I have taken a step in commit dbe5e6f to tune the AAudio burst size for 32-bit ARM processors that don't expose exclusive CPU's. Can you verify that after a rebuild of the engine stability has been achieved ?
from mwengine.
Related Issues (20)
- Is it possible to remove effects after recorded the audio? HOT 7
- Bug with processingChain.removeProcessor(fx) HOT 2
- Error with processors HOT 2
- Is there possible to adjust the volume of latency or turn off those live voice feedback? HOT 7
- Issues with event.addToSequencer() while the sequencer is running HOT 5
- Noise While adding effects to input channel HOT 3
- App get crashed added the processor to the input channel during recording HOT 2
- Crash that seems to be about Events when no has been added/removed HOT 3
- while recording with SampleEvent and inputChannel recorded output get mismatched HOT 14
- Mic sound is very low in few devices HOT 5
- Thread issue maybe? HOT 10
- AudioRenderer.renderEvent Producing Noise HOT 6
- Is it possible to achieve stereo effect Using Single Input(mic)? HOT 2
- Is there any processor for noise reduction?
- Crashing when deleting events with the engine running HOT 1
- Is it possible to get hertz from the mic while recording? HOT 4
- volume issue with sample event HOT 2
- Multitrack audio recording HOT 1
- Remove events with sequencer playing HOT 17
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 mwengine.