Embedded Crosswalk increase allocated memory on Android - android

I have a several web application that I want to be able to run through a webview in a native android application. I am currently embedding a crosswalk browser and loading the applications in that. It works great for some of the web applications but as the size of the web application increases I get errors that crash my android application.
Things I have tried:
android:largeHeap="true" - helped I was able to run larger web applications.
android:hardwareAccelerated="true" - helped I got better performance.
xwalk-command-line='--ignore-gpu-blacklist' in assets/xwalk-commandline - also helps
There are still some web applications (created through unity) that required me to allocate about 1Gb when I was creating them for desktop testing. I am will be using this android app on the newest phones and would be ok with such a high memory usage.
It works if I try to open this application on a desktop browser so that is what leads me to believe that it is a memory allocation issue. I am using crosswalk 17 which has webGL enabled and the smaller applications run webgl just fine.
I have a few questions:
Is there a way to force the crosswalk embedded browser to allocate 1GB of memory for itself. (I know this is going to crush my device and is probably not great but please indulge me)
Can I expand my application's memory usage beyond largeHeap. If so how? And do I need to do so to enable such large web applications?
Are there any issues that I am missing that are possibly masking the real issues here.
I know this type of application would only ever run on the newest kinds of phones. what are the repercussions for an application that has such a high memory usage?
Are there any other avenues I should explore to enable me to run large web applications within an android app?
Here are the answers to the FAQs of stack overflow users :)
Xml:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.mycompany.myproject.webapplicationActivity">
<org.xwalk.core.XWalkView
android:id="#+id/xwalkWebView"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#000000"
/>
</RelativeLayout>
Activity onCreate:
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.webapplicationActivity);
xWalkWebView=(XWalkView)findViewById(R.id.xwalkWebView);
// turn on debugging
XWalkPreferences.setValue(XWalkPreferences.REMOTE_DEBUGGING, true);
xWalkWebView.setKeepScreenOn(true);
xWalkWebView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN);
String urlToBeLoaded = "http://www.google.com";
Bundle bundle = getIntent().getExtras();
if (savedInstanceState == null) {
Bundle extras = getIntent().getExtras();
if(extras == null) {
Log.i(TAG,"error in reading extras");
} else {
urlToBeLoaded = extras.getString("url");
}
}
xWalkWebView.load(urlToBeLoaded, null);
Permissions
*Crosswalk requires a lot of these and I am using the remainder. But maybe there is a conflict there.
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
ADB logcat
GL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
02-17 18:11:55.862 23023 23023 W art : Attempt to remove non-JNI local reference, dumping thread
02-17 18:11:55.903 4335 4448 I ActivityManager: Displayed com.mycompany.myProject/.GamePlayActivity: +464ms
02-17 18:11:55.904 23023 23023 W cr.BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 23023
02-17 18:11:55.904 22463 22463 I Keyboard.Facilitator: onFinishInput()
02-17 18:11:55.931 23023 23023 E chromium: [ERROR:layer_tree_host_impl.cc(2121)] Forcing zero-copy tile initialization as worker context is missing
02-17 18:11:55.980 4335 4448 I WindowManager: Screen frozen for +541ms due to Window{f87dd7b u0 com.mycompany.myProject/com.mycompany.myProject.GamePlayActivity}
02-17 18:11:57.987 4335 4448 I art : Starting a blocking GC Explicit
02-17 18:11:58.205 4335 4448 I art : Explicit concurrent mark sweep GC freed 12393(780KB) AllocSpace objects, 5(100KB) LOS objects, 23% free, 52MB/68MB, paused 1.298ms total 216.765ms
02-17 18:11:58.206 4335 15896 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#3b6394f attribute=null, token = android.os.BinderProxy#d44f10a
02-17 18:11:58.726 23023 23023 I chromium: [INFO:CONSOLE(1)] "Decompressed Release/StuntRunner_WebGL.memgz in 254ms. You can remove this delay if you configure your web server to host files using gzip compression.", source: https://<source>/Release/UnityLoader.js (1)
02-17 18:11:59.103 22037 22037 I ServiceManager: Waiting for service AtCmdFwd...
02-17 18:11:59.663 23023 23023 I chromium: [INFO:CONSOLE(1)] "Decompressed Release/StuntRunner_WebGL.jsgz in 853ms. You can remove this delay if you configure your web server to host files using gzip compression.", source: https://<source>/Release/UnityLoader.js (1)
02-17 18:11:59.985 23023 23023 I chromium: [INFO:CONSOLE(1)] "optimizing out Math.fround calls", source: https://<source>/Release/UnityLoader.js (1)
02-17 18:12:00.103 22037 22037 I ServiceManager: Waiting for service AtCmdFwd...
02-17 18:12:01.104 22037 22037 I ServiceManager: Waiting for service AtCmdFwd...
02-17 18:12:02.105 22037 22037 I ServiceManager: Waiting for service AtCmdFwd...
02-17 18:12:03.105 22037 22037 I ServiceManager: Waiting for service AtCmdFwd...
02-17 18:12:03.174 4335 22386 D NetlinkSocketObserver: NeighborEvent{elapsedMs=775340136, 192.168.1.1, [100D7F6DFA6E], RTM_NEWNEIGH, NUD_REACHABLE}
02-17 18:12:04.106 22037 22037 W Atfwd_Sendcmd: AtCmdFwd service not published, waiting... retryCnt : 5
02-17 18:12:10.387 4335 6452 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ id=842, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ], android.os.BinderProxy#82c1e86)
02-17 18:12:10.392 4335 6549 I ActivityManager: Process com.instagram.android (pid 14465) has died
02-17 18:12:10.409 4335 5621 D ConnectivityService: releasing NetworkRequest NetworkRequest [ id=842, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
02-17 18:12:10.504 4335 5621 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ id=842, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
02-17 18:12:10.781 23023 23263 F libc : Fatal signal 4 (SIGILL), code 1, fault addr 0xd3781358 in tid 23263 (Chrome_InProcRe)
02-17 18:12:10.886 3293 3293 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-17 18:12:10.887 3293 3293 F DEBUG : Build fingerprint: 'google/angler/angler:6.0.1/MMB29P/2473553:user/release-keys'
02-17 18:12:10.887 3293 3293 F DEBUG : Revision: '0'
02-17 18:12:10.887 3293 3293 F DEBUG : ABI: 'arm'
02-17 18:12:10.887 3293 3293 F DEBUG : pid: 23023, tid: 23263, name: Chrome_InProcRe >>> com.mycompany.myProject <<<
02-17 18:12:10.887 3293 3293 F DEBUG : signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0xd3781358
02-17 18:12:10.933 3293 3293 F DEBUG : r0 d5366044 r1 40005000 r2 0855d000 r3 02182000
02-17 18:12:10.933 3293 3293 F DEBUG : r4 d5366044 r5 40000000 r6 00000000 r7 00000000
02-17 18:12:10.933 3293 3293 F DEBUG : r8 40005000 r9 d66d4050 sl 40000000 fp d66bee10
02-17 18:12:10.934 3293 3293 F DEBUG : ip f70ff624 sp d66bed40 lr d3dfa5e1 pc d3781358 cpsr 80030030
02-17 18:12:10.938 3293 3293 F DEBUG :
02-17 18:12:10.938 3293 3293 F DEBUG : backtrace:
02-17 18:12:10.926 3293 3293 W debuggerd: type=1400 audit(0.0:9681): avc: denied { read } for name="kgsl-3d0" dev="tmpfs" ino=1150 scontext=u:r:debuggerd:s0 tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=0
02-17 18:12:10.938 3293 3293 F DEBUG : #00 pc 001e3358 /data/app/com.mycompany.myProject-1/lib/arm/libxwalkcore.so
02-17 18:12:10.938 3293 3293 F DEBUG : #01 pc 0085c5dd /data/app/com.mycompany.myProject-1/lib/arm/libxwalkcore.so
02-17 18:12:11.276 3293 3293 W debuggerd: type=1400 audit(0.0:9682): avc: denied { read } for name="kgsl-3d0" dev="tmpfs" ino=1150 scontext=u:r:debuggerd:s0 tcontext=u:object_r:gpu_device:s0 tclass=chr_file permissive=0
02-17 18:12:11.817 4335 23497 W ActivityManager: Force finishing activity com.mycompany.myProject/.GamePlayActivity
02-17 18:12:11.818 3293 3293 F DEBUG :
02-17 18:12:11.818 3293 3293 F DEBUG : Tombstone written to: /data/tombstones/tombstone_05
02-17 18:12:11.818 3293 3293 E DEBUG : AM write failed: Broken pipe
02-17 18:12:11.890 4335 22149 I OpenGLRenderer: Initialized EGL, version 1.4
02-17 18:12:11.987 4335 5717 D GraphicsStats: Buffer count: 4
02-17 18:12:11.989 4335 5980 I WindowState: WIN DEATH: Window{def3a97 u0 com.mycompany.myProject/com.mycompany.myProject.LibraryActivity}
02-17 18:12:11.994 4335 5709 I WindowState: WIN DEATH: Window{9ffe3af u0 com.mycompany.myProject/com.mycompany.myProject.LoginActivity}
02-17 18:12:11.996 4335 4351 I WindowState: WIN DEATH: Window{ee84425 u0 com.mycompany.myProject/com.mycompany.myProject.GameDescriptionActivity}
02-17 18:12:11.999 4335 7252 I WindowState: WIN DEATH: Window{a09b55b u0 SurfaceView}
02-17 18:12:12.001 4335 5717 I WindowState: WIN DEATH: Window{f87dd7b u0 com.mycompany.myProject/com.mycompany.myProject.GamePlayActivity}
02-17 18:12:12.022 3309 3309 I Zygote : Process 23023 exited due to signal (4)
02-17 18:12:12.024 4335 28075 I ActivityManager: Process com.mycompany.myProject (pid 23023) has died
02-17 18:12:12.073 4335 28075 I ActivityManager: Start proc 23507:com.mycompany.myProject/u0a179 for activity com.mycompany.myProject/.GameDescriptionActivity
02-17 18:12:12.076 23507 23507 I art : Late-enabling -Xcheck:jni
Thank you in advance!

I had a problem like that. I thought this problem came with ads like adsense or some went wrong with JavaScript
Try
xwalk Release 'org.xwalk:xwalk_core_library:21.51.546.7'
I hope that helps you

Related

VideoView and ViewPager 1 'Can't play this video' Error (Decoder Issue?)

I'm experiencing a 'Can't Play this Video' pop-up error when using the ViewPager 1 with VideoView. The popup message only happens when the user waits about an hour and a half and then navigates away to another video page that's adjacent to it. Looking at the logs, there seems to be a native crash with 'OMX.google.h264.decoder'. I'd like to figure out the root cause of this since I've recently migrated to ViewPager 2 and the issue seems to be fixed (not sure why). I'm using SDK version 25 with a custom ROM (if it matters). Also, I haven't been able to reproduce this issue on an emulator.
Steps to Reproduce:
Navigate to a video page that has an adjacent video page
Wait an hour and a half
Navigate to the adjacent video page
Expected Result:
Can't play this video error doesn't appear
Actual Result:
Can't play this video error appears
01-02 17:55:40.320 511 574 E SoundPool: Error creating AudioTrack
01-02 17:55:40.638 251 685 D NuPlayerDriver: pause(0xb060c060)
01-02 17:55:40.638 251 685 D NuPlayerDriver: notifyListener_l(0xb060c060), (7, 0, 0), loop setting(0, 0)
01-02 17:55:40.639 251 251 D NuPlayerDriver: seekTo(0xb060c060) 0 ms at state 6
01-02 17:55:40.639 251 251 D NuPlayerDriver: notifyListener_l(0xb060c060), (7, 0, 0), loop setting(0, 0)
01-02 17:55:40.642 251 296 D NuPlayerDriver: start(0xb1e2ac00), state is 6, eos is 0
01-02 17:55:40.649 251 2163 D NuPlayerDriver: notifyListener_l(0xb1e2ac00), (6, 0, 0), loop setting(0, 0)
01-02 17:55:40.652 248 2169 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 2169 (le.h264.decoder)
01-02 17:55:40.653 222 222 W : debuggerd: handling request: pid=248 uid=1046 gid=1006 tid=2169
01-02 17:55:40.707 1964 1975 I art : Background sticky concurrent mark sweep GC freed 53604(4MB) AllocSpace objects, 37(740KB) LOS objects, 26% free, 11MB/16MB, paused 1.070ms total 160.419ms
01-02 17:55:40.748 17200 17200 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-02 17:55:40.750 17200 17200 F DEBUG : Build fingerprint: 'Android/pico_7d/pico_7d:7.1.2/dev-keys'
01-02 17:55:40.750 17200 17200 F DEBUG : Revision: '0'
01-02 17:55:40.750 17200 17200 F DEBUG : ABI: 'arm'
01-02 17:55:40.750 17200 17200 F DEBUG : pid: 248, tid: 2169, name: le.h264.decoder >>> media.codec <<<
01-02 17:55:40.750 17200 17200 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
01-02 17:55:40.751 17200 17200 F DEBUG : r0 00000000 r1 00000879 r2 00000006 r3 00000008
01-02 17:55:40.751 17200 17200 F DEBUG : r4 aa2ef978 r5 00000006 r6 aa2ef920 r7 0000010c
01-02 17:55:40.751 17200 17200 F DEBUG : r8 aacadbe0 r9 000f4240 sl aaa140a0 fp aaa6e0d0
01-02 17:55:40.751 17200 17200 F DEBUG : ip 00000016 sp aa2ef4b8 lr ab2de257 pc ab2e0ab4 cpsr 200f0010
01-02 17:55:40.796 17200 17200 F DEBUG :
01-02 17:55:40.796 17200 17200 F DEBUG : backtrace:
01-02 17:55:40.797 17200 17200 F DEBUG : #00 pc 00049ab4 /system/lib/libc.so (tgkill+12)
01-02 17:55:40.797 17200 17200 F DEBUG : #01 pc 00047253 /system/lib/libc.so (pthread_kill+34)
01-02 17:55:40.797 17200 17200 F DEBUG : #02 pc 0001d525 /system/lib/libc.so (raise+10)
01-02 17:55:40.797 17200 17200 F DEBUG : #03 pc 00019071 /system/lib/libc.so (__libc_android_abort+34)
01-02 17:55:40.797 17200 17200 F DEBUG : #04 pc 00017034 /system/lib/libc.so (abort+4)
01-02 17:55:40.797 17200 17200 F DEBUG : #05 pc 0000b50b /system/lib/libstagefright_soft_avcdec.so (_ZN7android7SoftAVC13onQueueFilledEj+1334)
01-02 17:55:40.797 17200 17200 F DEBUG : #06 pc 00023175 /system/lib/libstagefright_omx.so (_ZN7android22SimpleSoftOMXComponent17onMessageReceivedERKNS_2spINS_8AMessageEEE+272)
01-02 17:55:40.797 17200 17200 F DEBUG : #07 pc 000241ad /system/lib/libstagefright_omx.so
01-02 17:55:40.797 17200 17200 F DEBUG : #08 pc 0000f505 /system/lib/libstagefright_foundation.so (_ZN7android8AHandler14deliverMessageERKNS_2spINS_8AMessageEEE+24)
01-02 17:55:40.797 17200 17200 F DEBUG : #09 pc 00011795 /system/lib/libstagefright_foundation.so (_ZN7android8AMessage7deliverEv+60)
01-02 17:55:40.798 17200 17200 F DEBUG : #10 pc 0001006d /system/lib/libstagefright_foundation.so (_ZN7android7ALooper4loopEv+380)
01-02 17:55:40.798 17200 17200 F DEBUG : #11 pc 0000e3c1 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+264)
01-02 17:55:40.798 17200 17200 F DEBUG : #12 pc 00046d23 /system/lib/libc.so (_ZL15__pthread_startPv+22)
01-02 17:55:40.798 17200 17200 F DEBUG : #13 pc 00019abd /system/lib/libc.so (__start_thread+6)
01-02 17:55:41.120 511 604 W NativeCrashListener: Couldn't find ProcessRecord for pid 248
01-02 17:55:41.121 17200 17200 E : debuggerd: failed to kill process 248: No such process
01-02 17:55:41.124 511 529 I BootReceiver: Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)
01-02 17:55:41.137 222 222 W : debuggerd: resuming target 248
01-02 17:55:41.194 251 2168 E ACodec : OMX/mediaserver died, signalling error!
01-02 17:55:41.194 251 2168 E ACodec : signalError(omxError 0x8000100d, internalError -32)
01-02 17:55:41.194 251 2214 E ACodec : OMX/mediaserver died, signalling error!
01-02 17:55:41.194 251 2214 E ACodec : signalError(omxError 0x8000100d, internalError -32)
01-02 17:55:41.196 1964 1977 E MediaPlayer: error (100, 2)
01-02 17:55:41.196 1964 1964 E MediaPlayer: Error (100,2)
01-02 17:55:41.196 1964 1964 D VideoView: Error: 100,2
01-02 17:55:41.197 251 2167 E MediaCodec: Codec reported err 0xffffffe0, actionCode 0, while in state 6
01-02 17:55:41.197 251 2166 E NuPlayerDecoder: Decoder (video) reported error : 0xffffffe0
01-02 17:55:41.197 251 2213 E MediaCodec: Codec reported err 0xffffffe0, actionCode 0, while in state 7
01-02 17:55:41.197 251 2163 E NuPlayer: received error(0xffffffe0) from video decoder, flushing(0), now shutting down
01-02 17:55:41.197 251 2163 D NuPlayerDriver: notifyListener_l(0xb1e2ac00), (100, 1, -32), loop setting(0, 0)
01-02 17:55:41.207 1964 1976 E MediaPlayer: error (100, 2)
01-02 17:55:41.217 1964 1977 E MediaPlayer: error (1, -32)
01-02 17:55:41.218 251 2166 E NuPlayerDecoder: failed to flush OMX.google.h264.decoder (err=-38)
01-02 17:55:41.218 251 2163 E NuPlayer: received error(0xffffffda) from video decoder, flushing(2), now shutting down
01-02 17:55:41.218 251 2163 D NuPlayerDriver: notifyListener_l(0xb1e2ac00), (100, 1, -38), loop setting(0, 0)
01-02 17:55:41.225 251 2166 W AMessage: failed to post message as target looper for handler 0 is gone.
01-02 17:55:41.237 238 238 I ServiceManager: service 'media.codec' died
01-02 17:55:41.239 1964 1976 E MediaPlayer: error (1, -38)
01-02 17:55:41.258 1964 1964 E MediaPlayer: Error (100,2)
01-02 17:55:41.258 1964 1964 D VideoView: Error: 100,2
01-02 17:55:41.304 1964 1964 E MediaPlayer: Error (1,-32)
01-02 17:55:41.304 1964 1964 D VideoView: Error: 1,-32
01-02 17:55:41.351 1964 1964 E MediaPlayer: Error (1,-38)
01-02 17:55:41.351 1964 1964 D VideoView: Error: 1,-38
01-02 17:55:41.361 251 2212 E NuPlayerDecoder: failed to flush OMX.google.h264.decoder (err=-32)
01-02 17:55:41.361 251 2204 E NuPlayer: received error(0xffffffe0) from video decoder, flushing(1), now shutting down
01-02 17:55:41.361 251 2204 D NuPlayerDriver: notifyListener_l(0xb060c060), (100, 1, -32), loop setting(0, 0)
01-02 17:55:41.361 1964 1977 E MediaPlayer: error (1, -32)
01-02 17:55:41.367 251 2204 W AMessage: failed to post message as target looper for handler 0 is gone.
01-02 17:55:41.368 250 677 D FslExtractor: HandleSeekOperation do seek index=0
01-02 17:55:41.369 250 677 D FslExtractor: HandleSeekOperation index=0,ts=0,flag=2
01-02 17:55:41.371 251 2204 D NuPlayerDriver: notifyListener_l(0xb060c060), (4, 0, 0), loop setting(0, 0)
01-02 17:55:41.547 1964 1964 E MediaPlayer: Error (1,-32)
01-02 17:55:41.547 1964 1964 D VideoView: Error: 1,-32
01-02 17:55:41.587 17205 17205 I mediacodec: ### mediacodecservice starting
01-02 17:55:41.587 17205 17205 W /system/bin/mediacodec: libminijail: allowing syscall: clock_gettime
01-02 17:55:41.587 17205 17205 W /system/bin/mediacodec: libminijail: allowing syscall: connect
01-02 17:55:41.587 17205 17205 W /system/bin/mediacodec: libminijail: allowing syscall: fcntl64
01-02 17:55:41.587 17205 17205 W /system/bin/mediacodec: libminijail: allowing syscall: socket
01-02 17:55:41.588 17205 17205 W /system/bin/mediacodec: libminijail: allowing syscall: writev
01-02 17:55:41.588 17205 17205 W /system/bin/mediacodec: libminijail: logging seccomp filter failures
01-02 17:55:46.147 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO
01-02 17:55:49.343 582 589 I art : Debugger is no longer active
01-02 17:55:49.344 582 589 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.344 1964 1971 I art : Debugger is no longer active
01-02 17:55:49.344 1964 1971 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.344 781 789 I art : Debugger is no longer active
01-02 17:55:49.344 897 904 I art : Debugger is no longer active
01-02 17:55:49.344 897 904 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.344 781 789 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.345 838 847 I art : Debugger is no longer active
01-02 17:55:49.345 511 517 I art : Debugger is no longer active
01-02 17:55:49.345 838 847 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.345 511 517 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.345 626 643 I art : Debugger is no longer active
01-02 17:55:49.345 626 643 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.348 975 982 I art : Debugger is no longer active
01-02 17:55:49.348 975 982 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.348 880 888 I art : Debugger is no longer active
01-02 17:55:49.348 880 888 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.348 1136 1143 I art : Debugger is no longer active
01-02 17:55:49.348 1136 1143 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.349 596 606 I art : Debugger is no longer active
01-02 17:55:49.349 596 606 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.349 925 931 I art : Debugger is no longer active
01-02 17:55:49.349 925 931 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.349 990 997 I art : Debugger is no longer active
01-02 17:55:49.349 990 997 I art : Starting a blocking GC Instrumentation
01-02 17:55:49.354 17126 17126 D StudioTransport: Profiler:Signal received 1
01-02 17:55:49.354 17126 17126 D StudioTransport: Profiler:TerminationService shutting down with signal 1
01-02 17:55:49.830 17210 17210 I getprop : type=1400 audit(0.0:690): avc: denied { open } for path="/dev/__properties__/u:object_r:safemode_prop:s0" dev="tmpfs" ino=6854 scontext=u:r:shell:s0 tcontext=u:object_r:safemode_prop:s0 tclass=file permissive=1
01-02 17:55:49.850 17210 17210 I getprop : type=1400 audit(0.0:691): avc: denied { getattr } for path="/dev/__properties__/u:object_r:safemode_prop:s0" dev="tmpfs" ino=6854 scontext=u:r:shell:s0 tcontext=u:object_r:safemode_prop:s0 tclass=file permissive=1
01-02 17:55:49.850 17210 17210 I getprop : type=1400 audit(0.0:692): avc: denied { open } for path="/dev/__properties__/u:object_r:mmc_prop:s0" dev="tmpfs" ino=6855 scontext=u:r:shell:s0 tcontext=u:object_r:mmc_prop:s0 tclass=file permissive=1
01-02 17:55:49.850 17210 17210 I getprop : type=1400 audit(0.0:693): avc: denied { getattr } for path="/dev/__properties__/u:object_r:mmc_prop:s0" dev="tmpfs" ino=6855 scontext=u:r:shell:s0 tcontext=u:object_r:mmc_prop:s0 tclass=file permissive=1
01-02 17:55:49.850 17210 17210 I getprop : type=1400 audit(0.0:694): avc: denied { open } for path="/dev/__properties__/u:object_r:device_logging_prop:s0" dev="tmpfs" ino=6857 scontext=u:r:shell:s0 tcontext=u:object_r:device_logging_prop:s0 tclass=file permissive=1
01-02 17:55:49.850 17210 17210 I getprop : type=1400 audit(0.0:695): avc: denied { getattr } for path="/dev/__properties__/u:object_r:device_logging_prop:s0" dev="tmpfs" ino=6857 scontext=u:r:shell:s0 tcontext=u:object_r:device_logging_prop:s0 tclass=file permissive=1
01-02 17:55:51.290 17267 17267 V StudioTransport: Server listening on 127.0.0.1:12389 port:12389
01-02 17:55:56.157 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO
01-02 17:56:06.167 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO
01-02 17:56:15.070 1964 1996 I BatteryMonitor: Battery voltage (V) current (mA), 4.5757, 522
01-02 17:56:15.073 1964 1981 I TemperatureLogger: Unit temperature (deg C), 71.00
01-02 17:56:16.177 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO
01-02 17:56:26.187 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO
01-02 17:56:36.197 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO
01-02 17:56:46.206 1964 2000 I nativePoll: Call timed out and no file descriptors were ready for GPIO

Android MQTT Application

My team is building an Android application which uses MQTT (Mosquito) to connect to a PCBs. We are seeing an issue where once a day (Sometimes more) it'll disconnect and we have to reboot the computer for it to reconnect. Haven't been able to pinpoint the issue but are able to see logs. Any thoughts on this?
2022-03-29 08:11:24.442 1327 1382 W BroadcastQueue: Timeout of broadcast BroadcastRecord{22a1d6f u0 MqttService.pingSender.paho27313692436} - receiver=android.os.BinderProxy#991d308, started 60001ms ago
2022-03-29 08:11:24.443 1327 1382 W BroadcastQueue: Receiver during timeout of BroadcastRecord{22a1d6f u0 MqttService.pingSender.paho27313692436} : BroadcastFilter{4ae74c6 10157/u0 ReceiverList{1937aa1 3293 com.example.deadbolt_frontend/10157/u0 remote:991d308}}
Shortly after it disconnects
2022-03-29 08:14:14.641 3293 3293 I MqttClientImp: Attempting MQTT connection
2022-03-29 08:14:14.643 1327 6371 I am_uid_active: 10054
2022-03-29 08:14:14.845 3293 20643 I payment : \*\*\* permitsImpl keysize: 2048
2022-03-29 08:14:14.845 3293 20644 I payment : \*\*\* permitsImpl keysize: 2048
2022-03-29 08:14:14.846 3293 20643 I payment : getPCIFlag failed.
2022-03-29 08:14:14.846 3293 20644 I payment : getPCIFlag failed.
2022-03-29 08:14:14.846 3293 20643 I payment : RSA minSize: 1024
2022-03-29 08:14:14.846 3293 20644 I payment : RSA minSize: 1024
We tried completing a silent reconnect to no avail.

google photos crashing when selecting from image chooser

When choosing google photos from image chooser it is opening but immediately it is crashing. it is happening only in lenovo k8.
i tried to find why it is crashing but failed.
here is the crash report what i'm getting
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 11675 (RenderThread)
I/crash_dump64: obtaining output fd from tombstoned
I//system/bin/tombstoned: received crash request for pid 11588
I/crash_dump64: performing dump of process 11588 (target tid = 11675)
A/DEBUG: Build fingerprint: 'lenovo/manning_retail/manning:8.0.0/OMB27.43-67/73:user/release-keys'
A/DEBUG: ABI: 'arm64'
A/DEBUG: pid: 11588, tid: 11675, name: RenderThread >>> com.google.android.apps.photos <<<
A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
A/DEBUG: Cause: null pointer dereference
E/libPerfService: Could not open '/proc/driver/thermal/ta_fg_pid'
E/libPerfService: error : 2, No such file or directory
E/ActivityManager: Found activity ActivityRecord{5561e27 u0 com.google.android.apps.photos/.picker.external.ExternalPickerActivity t-1 f} in proc activity list using null instead of expected ProcessRecord{abb7d68 11588:com.google.android.apps.photos/u0a104}
I/BufferQueueConsumer: [ActionableToast:825225c#0](this:0x7072ba1000,id:5379,api:1,p:11588,c:-1) disconnect(C)
E/lowmemorykiller: Error writing /proc/11588/oom_score_adj; errno=22
I/BufferQueueConsumer: [com.google.android.apps.photos/com.google.android.apps.photos.picker.external.ExternalPickerActivity#0](this:0x7072a60800,id:5378,api:1,p:11588,c:-1) disconnect(C)
V/WindowManager: findFocusedWindow: No focusable windows.
E/ProfileFrag: onActivityResult requestCode 100
E/ProfileFrag: onActivityResult resultCode 0
E/ProfileFrag: onActivityResult data null
D/ProcSpeedReader: Failed to read freq stats from null
I/ActivityManager: Killing 11588:com.google.android.apps.photos/u0a104 (adj 199): crash
please help me to solve this
Thanks in advance

android add_service(android.hardware.camera.provider#2.4-service) fails- /dev/vndbinder permission denied

I'm working on HiKey aosp installed running on Linux 16.04, trying to connect v4l2 camera and use it. Currently, I've added the device drivers for v4l2 and usbcamera, and added the camera-hal to ~/(aosp)/device/linaro/hikey/camera directory. media_profiles.xml is contained in this directory.
I'm facing this problem where the camera service provider is killed in the init process and runs infinite loop of the booting process as it constantly tries to start camera service and kill all related processes.
Logcat:
01-01 00:00:14.067 1999 1999 I mediaserver: ServiceManager: 0xf69994c0
01-01 00:00:14.068 1903 1903 E SELinux : avc: denied { add } for service=media.cas pid=1999 uid=1013 scontext=u:r:mediadrmserver:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0
01-01 00:00:14.069 1903 1903 E ServiceManager: **add_service**('media.cas',3) uid=1013 - **PERMISSION DENIED**
01-01 00:00:14.199 1968 1968 W android.hardwar: type=1400 audit(0.0:61): avc: denied { read write } for name="vndbinder" dev="tmpfs" ino=10306 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:vndbinder_device:s0 tclass=chr_file permissive=0
01-01 00:00:14.205 1968 1968 I **android.hardware.camera.provider#2.4-service**: Camera provider Service is starting.
01-01 00:00:14.205 1968 1968 W ProcessState: **Opening '/dev/vndbinder' failed: Permission denied**
01-01 00:00:14.205 1968 1968 F **ProcessState: Binder driver could not be opened. Terminating.**
--------- beginning of crash
01-01 00:00:14.205 1968 1968 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 1968 (android.hardwar), pid 1968 (android.hardwar)
01-01 00:00:14.266 2005 2005 I /vendor/bin/hw/android.hardware.media.omx#1.0-service: mediacodecservice starting
01-01 00:00:14.266 2005 2005 I ProcessState: Wonn1e: initWithDriver [1]
01-01 00:00:14.288 2005 2005 W /vendor/bin/hw/android.hardware.media.omx#1.0-service: Could not read additional policy file '/vendor/etc/seccomp_policy/mediacodec.policy'
01-01 00:00:14.288 2005 2005 W /vendor/bin/hw/android.hardware.media.omx#1.0-service: libminijail[2005]: failed to get path of fd 5: No such file or directory
According to the answer given to Start native service at early-init before coldboot done, native service including this camera provider service would not open the /dev/binder because it starts before the coldboot. Also, it uses the passthrough mode. How can I tweak the init process so that camera provider service would run and not kill itself?

What process should be used to compress SKMaps.zip file for use in Skobbler powered app?

I'm currently using the Skobbler SDK in an Android app to handle mapping and turn-by-turn direction tasks. One issue that came up was the desire to change to frequency at which audio advice is issued from the SDK so that we don't have too many instructions being fired off one after the other.
I found this answer to another question which explains the need to modify an advice_places.adv file which I was able to find within the SDK provided SKMaps.zip file.
The issue I'm experiencing seems to be related to how I re-archive the zip file once I've finished making changes to the advice_places.adv file. I'm working on a Mac and it seems that regardless of if I use the built-in "Compress..." context menu option or if I perform a zip operation via the command line similar to:
zip -vr SKMaps.zip SKMaps/ -x "*.DS_Store"; chmod +x SKMaps.zip
I still can't seem to load my app without it crashing during the Skobbler SDK map initialization process.
I've narrowed down the issue to it being a zip/unzip related issue since I can recreate the crash even if I don't modify any of the contents of the SKMaps.zip but only unzip and then rezip.
Here is a dump of the logs that I see when my app crashes.
SKMaps D SKMapViewHolder----#onResume
D SKMapSurfaceView----#onResume
D SKMapSurfaceView----#onResume preserve GL context is TRUE
WindowManager V Adding window Window{278f3a43 u0 com.company.mymapapp/com.company.mymapapp.activities.MainActivity} at 23 of 32 (before Window{246caca8 u0 SurfaceView})
V Adding window Window{1b0d49f9 u0 SurfaceView} at 23 of 33 (before Window{278f3a43 u0 com.company.mymapapp/com.company.mymapapp.activities.MainActivity})
SKMaps D MapRenderer----#onSurfaceCreated
D MapRenderer----#onSurfaceCreated LinInitialized = true
D MapRenderer---- #initGLView
SkobblerNG D set density JNI - before NG_SetScreenScale
D set density JNI - after NG_SetScreenScale
libc F Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 24828 (GLThread 44711)
btif_config_util D btif_config_save_file(L188): in file name:/data/misc/bluedroid/bt_config.new
DEBUG I *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I Build fingerprint: 'google/shamu/shamu:5.1/LMY47I/1767468:user/release-keys'
I Revision: '33696'
I ABI: 'arm'
I pid: 24493, tid: 24828, name: GLThread 44711 >>> com.company.mymapapp <<<
I signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4
I r0 00000001 r1 00000000 r2 00000001 r3 00000029
I r4 a0edfcd0 r5 00000000 r6 a0edfc00 r7 a044a9b0
I r8 00000000 r9 a044a9d8 sl 00000001 fp 13250820
I ip 80000000 sp a044a978 lr 9e8d5efd pc 9e8d5f22 cpsr 600f0030
I backtrace:
I #00 pc 0018ef22 /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (EarthSphere::SetupTextureInBufferFromTex(SK_WTEXTURE_ID&)+113)
I #01 pc 0018ff23 /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (EarthSphere::Init(unsigned int, unsigned int)+190)
I #02 pc 0011dc7d /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (MapRenderer::InitializeGlobeAndWorldTextures()+116)
I #03 pc 000fe1bd /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (NG_InitializeGL+52)
I #04 pc 000e7fcf /data/app/com.company.mymapapp-1/lib/arm/libngnative.so (Java_com_skobbler_ngx_map_MapRenderer_initgl+14)
I #05 pc 0064b963 /data/dalvik-cache/arm/data#app#com.company.mymapapp-1#base.apk#classes.dex
I Tombstone written to: /data/tombstones/tombstone_07
ActivityManager W Force finishing activity 1 com.company.mymapapp/.activities.MainActivity
BootReceiver I Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)
JavaBinder E !!! FAILED BINDER TRANSACTION !!!
WindowState I WIN DEATH: Window{23adbb9a u0 SurfaceView}
NetlinkEvent E NetlinkEvent::FindParam(): Parameter 'INTERFACE' not found
E NetlinkEvent::FindParam(): Parameter 'TIME_NS' not found
NetdConnector E Error handling '613 IfaceClass active (null)': java.lang.NumberFormatException: Invalid int: "(null)"
WindowState I WIN DEATH: Window{246caca8 u0 SurfaceView}
I WIN DEATH: Window{259e40bc u0 com.company.mymapapp/com.company.mymapapp.activities.IntroActivity}
I WIN DEATH: Window{278f3a43 u0 com.company.mymapapp/com.company.mymapapp.activities.MainActivity}
I WIN DEATH: Window{1b0d49f9 u0 SurfaceView}
Zygote I Process 24493 exited due to signal (11)
ActivityManager W Exception thrown during pause
W android.os.TransactionTooLargeException
W at android.os.BinderProxy.transactNative(Native Method)
W at android.os.BinderProxy.transact(Binder.java:496)
W at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:704)
W at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:825)
W at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2726)
W at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2583)
W at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2497)
W at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11500)
W at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11397)
W at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12081)
W at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:11592)
W at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
lowmemorykiller E Error opening /proc/24493/oom_score_adj; errno=2
Process com.company.mymapapp (PID: 24493) ended
If anyone has any information as to the preferred method of generating a zip file on a Mac for use with the Skobbler SDK in this fashion, I would appreciate any guidance.
Thank you!
Keith
I've had the same issue (I did the zipping/unzipping manually) - I did not get to the bottom of the problem but the trick is not to zip the SkMaps folder (that you get when unzipping) but the content of that folder (all the subfolders) in an archive named SkMaps.zip (go in the unpacked folder, SKMaps, select all the folder and compress them to an SKMaps.zip.
I'm not sure if this is Mac specific or zip specific. The SDK expects that when unzipping SKMaps.zip it will find a number of folders, but when you compress the SKMaps folder directly you end up with an archive that has as root folder a folder named SkMaps (which is wrong) and only inside that folder the correct folder structure.

Categories

Resources