Android HandlerThread 退出

使用HandlerThread进行消息循环,在APP退出时,终止循环。问题:不知道APP什么时候退出,请问如何在APP退出时终止HandlerThread?

2个回答

OnDestroy生命周期不行?

aygxylxk
aygxylxk 不行的,我不是针对某一个Activity,是针对整个application。如果不是用特别的方法,application是不会退出的。
接近 6 年之前 回复

system.exit(0)杀死进程

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Android中使用Camera2开发聚焦,前后摄像头切换的拍照功能
使用Camera2开发照相机功能,可以进行重复拍照,刚开始拍照是好的,但是重复拍照的时候就会报错如下,有时候第一次拍照就报错,有时候拍了几十张后报错,报错就是闪退 E/AndroidRuntime: FATAL EXCEPTION: LegacyCameraCallback     Process: com.ajmd.hais.mobile, PID: 24711     java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Surface android.hardware.camera2.params.OutputConfiguration.getSurface()' on a null object reference         at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onCaptureErrorLocked(CameraDeviceImpl.java:1925)         at android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onDeviceError(CameraDeviceImpl.java:1693)         at android.hardware.camera2.legacy.CameraDeviceUserShim$CameraCallbackThread$CallbackHandler.handleMessage(CameraDeviceUserShim.java:299)         at android.os.Handler.dispatchMessage(Handler.java:102)         at android.os.Looper.loop(Looper.java:154)         at android.os.HandlerThread.run(HandlerThread.java:61)
HandlerThread怎么更新ui
HandlerThread怎么更新ui,我试了很多方法,都不能更新ui,求大神们指导一下 ``` HandlerThread handlerThread = new HandlerThread(getMainLooper().toString()); handlerThread.start(); MyHandler myHandler = new MyHandler(handlerThread.getLooper()); Message message = myHandler.obtainMessage(); message.sendToTarget(); public class MyHandler extends Handler { public MyHandler(Looper looper){ super(looper); } @Override public void handleMessage(Message msg) { super.handleMessage(msg); } } ``` 在handleMessage(Message msg)方法里怎么不能更新ui
Android覆盖安装后打开闪退
Android app 覆盖安装旧版本后打开闪退,报资源找不到,设置-应用-清理数据后再打开正常。求一个优雅的解决方式。 Log如下: E AndroidRuntime: FATAL EXCEPTION: LogFileWriter E AndroidRuntime: Process: com.demo.music, PID: 29166 E AndroidRuntime: android.content.res.Resources$NotFoundException: String resource ID #0x7f0e008a E AndroidRuntime: at android.content.res.Resources.getText(Resources.java:410) E AndroidRuntime: at android.content.res.HwResources.getText(HwResources.java:465) E AndroidRuntime: at android.content.res.Resources.getString(Resources.java:504) E AndroidRuntime: at android.content.res.Resources.getString(Resources.java:528) E AndroidRuntime: at android.content.Context.getString(Context.java:576) E AndroidRuntime: at com.demo.music.core.LogItem.getString(Unknown Source:37) E AndroidRuntime: at com.demo.music.core.LogFileHandler.writeToExportLog(Unknown Source:7) E AndroidRuntime: at com.demo.music.core.LogFileHandler.writeLogItemToDisk(Unknown Source:42) E AndroidRuntime: at com.demo.music.core.LogFileHandler.handleMessage(Unknown Source:87) E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:108) E AndroidRuntime: at android.os.Looper.loop(Looper.java:166) E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:65)
Android5.0使用屏幕投射API截图问题
我是参考的这个[一种全新的截屏方式](http://blog.csdn.net/zdy0_2004/article/details/48979903 ""); 但是在截屏时要获取[屏幕截取]的权限,要用到startActivityForResult ```java MediaProjectionManager projectionManager = (MediaProjectionManager) getApplication().getSystemService(Context.MEDIA_PROJECTION_SERVICE); startActivityForResult(projectionManager.createScreenCaptureIntent(),1); ``` 但是每次就会出现如下的情况 ![报错](https://img-ask.csdn.net/upload/201603/25/1458898498_366210.png) 下面是我的MainActivity ```java package com.example.ttt; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.nio.ByteBuffer; import java.util.concurrent.atomic.AtomicInteger; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.PixelFormat; import android.graphics.Point; import android.hardware.display.DisplayManager; import android.hardware.display.VirtualDisplay; import android.media.Image; import android.media.ImageReader; import android.media.projection.MediaProjection; import android.media.projection.MediaProjectionManager; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.os.HandlerThread; import android.util.DisplayMetrics; import android.view.View; import android.view.View.OnClickListener; public class MainActivity extends Activity { private MediaProjectionManager projectionManager; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); findViewById(R.id.click).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { projectionManager = (MediaProjectionManager) getApplication().getSystemService(Context.MEDIA_PROJECTION_SERVICE); startActivityForResult(projectionManager.createScreenCaptureIntent(),1); handleScreenShotIntent(); } }); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if(requestCode == 1){ ((MyApplication) getApplication()).setResult(resultCode); ((MyApplication) getApplication()).setIntent(data); } } private void handleScreenShotIntent() { try { onScreenshotTaskBegan(); final MediaProjection mProjection = projectionManager.getMediaProjection( ((MyApplication) getApplication()).getResult(), ((MyApplication) getApplication()).getIntent()); Point size = Utils.getScreenSize(this); final int mWidth = size.x; final int mHeight = size.y; final ImageReader mImageReader = ImageReader.newInstance(mWidth, mHeight, PixelFormat.RGBA_8888, 2); final VirtualDisplay display = mProjection.createVirtualDisplay("screen-mirror", mWidth, mHeight, DisplayMetrics.DENSITY_MEDIUM, DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION, mImageReader.getSurface(), null, null); mImageReader.setOnImageAvailableListener(new ImageReader.OnImageAvailableListener() { @SuppressLint("NewApi") @Override public void onImageAvailable(ImageReader mImageReader) { Image image = null; try { image = mImageReader.acquireLatestImage(); if (image != null) { final Image.Plane[] planes = image.getPlanes(); if (planes.length > 0) { final ByteBuffer buffer = planes[0].getBuffer(); int pixelStride = planes[0].getPixelStride(); int rowStride = planes[0].getRowStride(); int rowPadding = rowStride - pixelStride * mWidth; // create bitmap Bitmap bmp = Bitmap.createBitmap(mWidth + rowPadding / pixelStride, mHeight, Bitmap.Config.ARGB_8888); bmp.copyPixelsFromBuffer(buffer); Bitmap croppedBitmap = Bitmap.createBitmap(bmp, 0, 0, mWidth, mHeight); saveBitmap(croppedBitmap);// 保存图片 if (croppedBitmap != null) { croppedBitmap.recycle(); } if (bmp != null) { bmp.recycle(); } } } } catch (Exception e) { e.printStackTrace(); // showErrorNotification(Utils.getStackTrace(e)); } finally { if (image != null) { image.close(); } if (mImageReader != null) { mImageReader.close(); } if (display != null) { display.release(); } mImageReader.setOnImageAvailableListener(null, null); mProjection.stop(); onScreenshotTaskOver(); } } }, getBackgroundHandler()); } catch (Exception e) { e.printStackTrace(); } } private void saveBitmap(Bitmap bmp) throws IOException { File childFolder = SettingHelper.getOutputFoler(); File imageFile = new File(childFolder.getAbsolutePath() + "/" + SettingHelper.getOutputScreenshotFileName()); OutputStream fOut = new FileOutputStream(imageFile); bmp.compress(Bitmap.CompressFormat.JPEG, 80, fOut);// 将bg输出至文件 fOut.flush(); fOut.close(); // do not forget to close the stream this.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(imageFile))); } static AtomicInteger oneScreenshot = new AtomicInteger(0); private boolean isAlreadyOneScreenshotTask() { return oneScreenshot.get() == 1; } private synchronized void onScreenshotTaskBegan() { oneScreenshot.set(1); } private synchronized void onScreenshotTaskOver() { oneScreenshot.set(0); } // 在后台线程里保存文件 Handler backgroundHandler; private Handler getBackgroundHandler() { if (backgroundHandler == null) { HandlerThread backgroundThread = new HandlerThread("easyscreenshot", android.os.Process.THREAD_PRIORITY_BACKGROUND); backgroundThread.start(); backgroundHandler = new Handler(backgroundThread.getLooper()); } return backgroundHandler; } } ``` MyApplication: ```java package com.example.ttt; import android.app.Application; import android.content.Intent; import android.media.projection.MediaProjectionManager; public class MyApplication extends Application { private int result; private Intent intent; private MediaProjectionManager mMediaProjectionManager; public int getResult() { return result; } public Intent getIntent() { return intent; } public MediaProjectionManager getMediaProjectionManager() { return mMediaProjectionManager; } public void setResult(int result1) { this.result = result1; } public void setIntent(Intent intent1) { this.intent = intent1; } public void setMediaProjectionManager(MediaProjectionManager mMediaProjectionManager) { this.mMediaProjectionManager = mMediaProjectionManager; } } ```
android开发。希望开机发送一个notification,未能实现。
总体思想是:接收RECEIVE_BOOT_COMPLETED广播,启动一个service,在service内发送notification。 结果是开机启动没有发送notification,logcat里显示android.os.deadObjectException。 我在程序里的文本框用click事件启动service是可以发送notification的。 代码如下: Mainfest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.credao.repeater"> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".MainActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <service android:name=".SMSAndCallMonitorService" android:enabled="true" android:exported="true"> </service> <receiver android:name=".OnBootStartReceiver" android:enabled="true" android:exported="true"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </receiver> </application> </manifest> 接收RECEIVE_BOOT_COMPLETED广播的接收器: package com.credao.repeater; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class OnBootStartReceiver extends BroadcastReceiver { public OnBootStartReceiver() { } @Override public void onReceive(Context context, Intent intent) { // TODO: start SMSAndCallMonitorService Intent i=new Intent(); i.setClassName("com.credao.repeater","com.credao.repeater.SMSAndCallMonitorService"); context.startService(i); } } Service: package com.credao.repeater; import android.app.Notification; import android.app.NotificationManager; import android.app.Service; import android.content.Context; import android.content.Intent; import android.os.IBinder; import android.util.Log; import android.widget.Toast; public class SMSAndCallMonitorService extends Service { public SMSAndCallMonitorService() { } @Override public IBinder onBind(Intent intent) { // TODO: Return the communication channel to the service. throw new UnsupportedOperationException("Not yet implemented"); } @Override public int onStartCommand(Intent intent, int flags, int startId) { Log.w("service", "SMSAndCallMonitorService onstartcommand"); Notification.Builder notification=new Notification.Builder(this); notification.setContentTitle("SMSAndCallMonitorService") .setContentText("onStartCommand()") .setSmallIcon(R.drawable.ic_stat_name); NotificationManager nm= (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); nm.notify(1,notification.build()); stopSelf(); return super.onStartCommand(intent,flags,startId); } } Activity中可以正常启动service中notification的代码: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); View text=findViewById(R.id.text); text.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent i=new Intent(); i.setClassName("com.credao.repeater","com.credao.repeater.SMSAndCallMonitorService"); MainActivity.this.startService(i); Log.w("text: ", "text is clicked"); } }); } 错误提示: 2209-3577/? E/IndexSearchManager﹕ MSG_BOOTCOMPLETE mService.bootCompleted error android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(Binder.java:617) at com.huawei.indexsearch.IndexSearchManager$IndexSearchManagerProxy.bootCompleted(IndexSearchManager.java:365) at com.huawei.indexsearch.IndexSearchManager.handleBootCompleted(IndexSearchManager.java:150) at com.huawei.indexsearch.IndexSearchManager.-wrap2(IndexSearchManager.java) at com.huawei.indexsearch.IndexSearchManager$IndexSearchHandler.handleMessage(IndexSearchManager.java:137) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:156) at android.os.HandlerThread.run(HandlerThread.java:61)
andoroid studio 更新2.0后 出错
随便建立一个任务 都跑不起来 我并没有调用google服务 ``` [LegacyBackupAccountManager] Fail to get legacy transport context. android.content.pm.PackageManager$NameNotFoundException: Application package com.google.android.backup not found at android.app.ContextImpl.createPackageContextAsUser(ContextImpl.java:2172) at android.app.ContextImpl.createPackageContext(ContextImpl.java:2148) at android.content.ContextWrapper.createPackageContext(ContextWrapper.java:671) at android.content.ContextWrapper.createPackageContext(ContextWrapper.java:671) at com.google.android.gms.backup.as.<init>(SourceFile:47) at com.google.android.gms.backup.BackupTransportMigratorService.a(SourceFile:150) at com.google.android.gms.backup.BackupTransportMigratorService.onHandleIntent(SourceFile:82) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.os.HandlerThread.run(HandlerThread.java:61) ```
Android 调用SparseArray的put方法报数组越界.
突然报SystemUI crash,查看log是数组越界: 04-23 05:23:58.484 2838 3037 E AndroidRuntime: FATAL EXCEPTION: Recents-TaskResourceLoader 04-23 05:23:58.484 2838 3037 E AndroidRuntime: Process: com.android.systemui, PID: 2838 04-23 05:23:58.484 2838 3037 E AndroidRuntime: java.lang.ArrayIndexOutOfBoundsException: src.length=23 srcPos=-14 dst.length=23 dstPos=-13 length=36 04-23 05:23:58.484 2838 3037 E AndroidRuntime: at java.lang.System.arraycopy(Native Method) 04-23 05:23:58.484 2838 3037 E AndroidRuntime: at com.android.internal.util.GrowingArrayUtils.insert(GrowingArrayUtils.java:150) 04-23 05:23:58.484 2838 3037 E AndroidRuntime: at android.util.SparseArray.put(SparseArray.java:246) 04-23 05:23:58.484 2838 3037 E AndroidRuntime: at com.android.systemui.shared.recents.model.TaskKeyCache.put(TaskKeyCache.java:67) 04-23 05:23:58.484 2838 3037 E AndroidRuntime: at com.android.systemui.shared.recents.model.IconLoader.getIcon(IconLoader.java:77) 04-23 05:23:58.484 2838 3037 E AndroidRuntime: at com.android.systemui.shared.recents.model.BackgroundTaskLoader.processLoadQueueItem(BackgroundTaskLoader.java:140) 04-23 05:23:58.484 2838 3037 E AndroidRuntime: at com.android.systemui.shared.recents.model.BackgroundTaskLoader.run(BackgroundTaskLoader.java:109) 04-23 05:23:58.484 2838 3037 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873) 04-23 05:23:58.484 2838 3037 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) 04-23 05:23:58.484 2838 3037 E AndroidRuntime: at android.os.Looper.loop(Looper.java:210) 04-23 05:23:58.484 2838 3037 E AndroidRuntime: at android.os.HandlerThread.run(HandlerThread.java:65) 查看代码是SparseArray.java的put方法插入值的时候i取了小于0,但是看不懂是怎么负值的: public void put(int key, E value) { // 二分查找,key在mKeys列表中对应的index int i = ContainerHelpers.binarySearch(mKeys, mSize, key); // 如果找到,则直接赋值 if (i >= 0) { mValues[i] = value; } // 找不到 else { // binarySearch方法中,找不到时,i取了其非,这里再次取非,则非非则正 i = ~i; // 如果该位置的数据正好被删除,则赋值 if (i < mSize && mValues[i] == DELETED) { mKeys[i] = key; mValues[i] = value; return; } // 如果有数据被删除了,则gc if (mGarbage && mSize >= mKeys.length) { gc(); // Search again because indices may have changed. i = ~ContainerHelpers.binarySearch(mKeys, mSize, key); } // 插入数据,增长mKeys与mValues列表 mKeys = GrowingArrayUtils.insert(mKeys, mSize, i, key);//这里i取了-14导致异常,不知道怎么回事. mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); mSize++; } } 看了下SparseArray是线程不安全的,怀疑是不是多线程调用的时候被其他线程插入了数据,但是不知道怎么去排查.
Android 热修复tinker补丁加载出错,提示日志如下:
com.tinker.app:patch E/Tinker.ParallelDex: Failed to optimize dex: /data/user/0/com.tinker.app/tinker/patch-985c8c6e/dex/oat java.io.IOException: No original dex files found for dex location /data/user/0/com.tinker.app/tinker/patch-985c8c6e/dex/oat at dalvik.system.DexFile.openDexFileNative(Native Method) at dalvik.system.DexFile.openDexFile(DexFile.java:353) at dalvik.system.DexFile.<init>(DexFile.java:142) at dalvik.system.DexFile.loadDex(DexFile.java:201) at dalvik.system.DexFile.loadDex(DexFile.java:169) at com.tencent.tinker.loader.TinkerParallelDexOptimizer$OptimizeWorker.run(TinkerParallelDexOptimizer.java:131) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:784) com.tinker.app:patch E/Tinker.DefaultPatchReporter: onPatchDexOptFail: com.tencent.tinker.loader.TinkerRuntimeException: Tinker Exception:retry dex optimize file is not exist, name: oat at com.tencent.tinker.lib.patch.DexDiffPatchInternal.patchDexExtractViaDexDiff(DexDiffPatchInternal.java:188) at com.tencent.tinker.lib.patch.DexDiffPatchInternal.tryRecoverDexFiles(DexDiffPatchInternal.java:77) at com.tencent.tinker.lib.patch.UpgradePatch.tryPatch(UpgradePatch.java:132) at com.tencent.tinker.lib.service.TinkerPatchService.onHandleIntent(TinkerPatchService.java:129) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68) at android.os.Handler.dispatchMessage(Handler.java:108) at android.os.Looper.loop(Looper.java:166) at android.os.HandlerThread.run(HandlerThread.java:65)
菜鸟求助:底部虚拟状态栏显示与隐藏的问题
底部状态栏频繁的手动滑出与隐藏,再跳转页面后返回时会导致本页面数据清空然后重新加载。 控制台打出一堆错误信息如下: D/HardwareRenderer: destroy thread Render this = android.view.ThreadedRenderer@1b407311 java.lang.Throwable: loadSystemProperties at android.view.ThreadedRenderer.loadSystemProperties(ThreadedRenderer.java:262) at android.view.ViewRootImpl$4.run(ViewRootImpl.java:6142) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:194) at android.os.HandlerThread.run(HandlerThread.java:61) at com.android.server.ServiceThread.run(ServiceThread.java:46)
使用NDK处理数组,程序直接就停止工作了,下面是提示的错误
Failed to dispatch window animation state change. android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(Binder.java:503) at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534) at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286) at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678) at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java) at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856) at android.view.Choreographer.doCallbacks(Choreographer.java:670) at android.view.Choreographer.doFrame(Choreographer.java:603) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:148) at android.os.HandlerThread.run(HandlerThread.java:61) at com.android.server.ServiceThread.run(ServiceThread.java:46)
关于华为荣耀手机程序运行时闪退的问题?
关于华为荣耀手机程序运行时闪退的问题? 请大佬们帮忙看看是什么原因啊,在此先多谢各位大佬了 ``` 2019-09-06 14:08:47.726 12620-12639/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2019-09-06 14:08:47.787 1790-3421/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:08:47.940 12603-12617/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2019-09-06 14:08:47.986 1790-11981/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:08:48.419 1313-3804/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:08:48.425 12479-12479/? E/nt.mm:appbrand: Invalid ID 0x00000000. 2019-09-06 14:08:48.429 1313-3804/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:08:49.287 720-720/? E/Thermal-daemon: [flash_led] temp_new :39 temp_old :38 2019-09-06 14:08:49.290 720-720/? E/Thermal-daemon: Report temperature: [flash_led] temp :39 report_threshold:1 2019-09-06 14:08:49.290 720-720/? E/Thermal-daemon: [charger_ic] temp_new :40 temp_old :39 2019-09-06 14:08:49.292 720-720/? E/Thermal-daemon: Report temperature: [charger_ic] temp :40 report_threshold:1 2019-09-06 14:08:49.295 720-720/? E/Thermal-daemon: [ap] temp_new :39 temp_old :38 2019-09-06 14:08:49.298 720-720/? E/Thermal-daemon: Report temperature: [ap] temp :39 report_threshold:1 2019-09-06 14:08:49.661 1313-3804/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:08:49.811 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:08:49.821 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:08:50.863 12479-12568/? E/[HOTFIX]: [ThreadDexHotfixMonitor]Bind hotfix monitor service fail! 2019-09-06 14:08:52.225 12620-12743/? E/[HOTFIX]: [ThreadDexHotfixMonitor]Bind hotfix monitor service fail! 2019-09-06 14:08:52.230 12603-12747/? E/[HOTFIX]: [ThreadDexHotfixMonitor]Bind hotfix monitor service fail! 2019-09-06 14:08:52.800 717-12927/? E/HwExtendedCodec: mime: audio/vorbis matching compontent failed! 2019-09-06 14:08:52.827 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:08:52.844 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:08:52.926 724-11678/? E/OMXNodeInstance: setConfig(0xf2f29c20:google.vorbis.decoder, ??(0x6f700006)) ERROR: Undefined(0x80001001) 2019-09-06 14:08:52.929 724-11339/? E/OMXNodeInstance: setConfig(0xf2f29c20:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001) 2019-09-06 14:08:53.488 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:08:53.488 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:08:53.488 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:08:53.489 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:08:53.489 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:08:53.489 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:08:53.684 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:08:54.299 720-720/? E/Thermal-daemon: [battery] temp_new :37 temp_old :35 2019-09-06 14:08:54.301 720-720/? E/Thermal-daemon: Report temperature: [battery] temp :37 report_threshold:1 2019-09-06 14:08:54.302 720-720/? E/Thermal-daemon: [charger_ic] temp_new :41 temp_old :40 2019-09-06 14:08:54.304 720-720/? E/Thermal-daemon: Report temperature: [charger_ic] temp :41 report_threshold:1 2019-09-06 14:09:15.807 13033-11766/? A/google-breakpad: Microdump skipped (uninteresting) 2019-09-06 14:09:15.827 1790-3421/? E/HsmCoreServiceImpl: onTransact in code is: 103 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: -----BEGIN BREAKPAD MICRODUMP----- 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: V UNKNOWN:0.0.0.0 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: O A arm 08 armv8l 4.9.111 #1 SMP PREEMPT Fri Mar 29 23:12:42 CST 2019 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: P UNKNOWN 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: G UNKNOWN 2019-09-06 14:09:15.899 13035-11766/? A/google-breakpad: H 12C00000 FFFF1000 00C4 2CE75000 6DFBE000 0C:41 0D:31 0E:19 0F:10 10:0E 11:04 12:0C 13:02 14:01 15:03 16:01 17:01 1C:01 1D:02 2019-09-06 14:09:15.899 13035-11766/? A/google-breakpad: -----starting crashing thread----- 2019-09-06 14:09:15.914 11758-11766/? A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6ab0bc in tid 11766 (FinalizerDaemon), pid 11758 (ncent.tmgp.zrwp) 2019-09-06 14:09:15.950 1313-12028/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:09:16.041 13042-13042/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: Build fingerprint: 'HONOR/STF-AL00/HWSTF:9/HUAWEISTF-AL00/179C00R1:user/release-keys' 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: Revision: '0' 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: ABI: 'arm' 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: pid: 11758, tid: 11766, name: FinalizerDaemon >>> com.tencent.tmgp.zrwp <<< 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6ab0bc 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: r0 006ab0b8 r1 00000000 r2 006ab0b8 r3 6a6099ca 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: r4 006ab0b8 r5 00000000 r6 e93e01d8 r7 e93e01d8 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: r8 00000000 r9 00000000 r10 e93e01ec r11 6f92ef18 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: ip eaeecd08 sp c7ee04e0 lr e934af41 pc e934aefc 2019-09-06 14:09:16.071 1313-3804/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: backtrace: 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #00 pc 0002fefc /system/lib/libcrypto.so (ASN1_primitive_free+36) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #01 pc 0002ff3d /system/lib/libcrypto.so (ASN1_primitive_free+100) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #02 pc 0002fd71 /system/lib/libcrypto.so (asn1_item_combine_free+160) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #03 pc 0002fd71 /system/lib/libcrypto.so (asn1_item_combine_free+160) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #04 pc 0002fd71 /system/lib/libcrypto.so (asn1_item_combine_free+160) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #05 pc 0002fcad /system/lib/libcrypto.so (ASN1_item_free+20) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #06 pc 000160c3 /system/framework/arm/boot-conscrypt.oat (offset 0x16000) (com.android.org.conscrypt.NativeCrypto.ASN1_TIME_to_Calendar [DEDUPED]+130) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #07 pc 0002e027 /system/framework/arm/boot-conscrypt.oat (offset 0x16000) (com.android.org.conscrypt.OpenSSLX509Certificate.finalize+70) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #08 pc 0018f7bf /system/framework/arm/boot-core-libart.oat (offset 0x8d000) (java.lang.Daemons$FinalizerDaemon.doFinalize+86) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #09 pc 0018fa1b /system/framework/arm/boot-core-libart.oat (offset 0x8d000) (java.lang.Daemons$FinalizerDaemon.runInternal+466) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #10 pc 0012b2ab /system/framework/arm/boot-core-libart.oat (offset 0x8d000) (java.lang.Daemons$Daemon.run+66) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #11 pc 00270911 /system/framework/arm/boot.oat (offset 0x132000) (java.lang.Thread.run+64) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #12 pc 00430375 /system/lib/libart.so (art_quick_invoke_stub_internal+68) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #13 pc 004091a1 /system/lib/libart.so (art_quick_invoke_stub+224) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #14 pc 000a4901 /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+136) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #15 pc 00365029 /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+52) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #16 pc 00365dbd /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+316) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #17 pc 00387d19 /system/lib/libart.so (art::Thread::CreateCallback(void*)+900) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #18 pc 00065ab3 /system/lib/libc.so (__pthread_start(void*)+22) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #19 pc 0001e975 /system/lib/libc.so (__start_thread+32) 2019-09-06 14:09:16.099 11758-11758/? E/ncent.tmgp.zrw: No implementation found for java.lang.String com.tencent.bugly.crashreport.crash.jni.NativeCrashHandler.regist(java.lang.String, boolean, int) (tried Java_com_tencent_bugly_crashreport_crash_jni_NativeCrashHandler_regist and Java_com_tencent_bugly_crashreport_crash_jni_NativeCrashHandler_regist__Ljava_lang_String_2ZI) 2019-09-06 14:09:16.242 1313-4246/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:09:16.386 1845-1861/? E/OPCollectLog: HwForegroundAppAction:duplicate pkgName. 2019-09-06 14:09:16.416 11758-13071/? E/ncent.tmgp.zrw: No implementation found for java.lang.String com.tencent.bugly.crashreport.crash.jni.NativeCrashHandler.regist(java.lang.String, boolean, int) (tried Java_com_tencent_bugly_crashreport_crash_jni_NativeCrashHandler_regist and Java_com_tencent_bugly_crashreport_crash_jni_NativeCrashHandler_regist__Ljava_lang_String_2ZI) 2019-09-06 14:09:16.459 11758-11819/? E/AwareLog: eglSlice: report time too small 2019-09-06 14:09:17.018 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:09:17.029 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:09:17.037 629-629/? E/HWComposer: presentAndGetReleaseFences: present failed for display 0: NotValidated (7) 2019-09-06 14:09:17.052 733-733/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_02 2019-09-06 14:09:17.062 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.090 623-623/? E/TS_Service: hwTsSetAftAlgoOrientation 2019-09-06 14:09:17.103 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.103 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.109 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.110 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.110 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.111 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.152 725-805/? E/AwareLog: iawared: change_property_content open /proc/11758/task/11799/static_vip fail errno(2)! 2019-09-06 14:09:17.170 1881-3034/? E/AwareLog: SPKSchedFeature: Uid has been sent, ignore. 2019-09-06 14:09:17.200 1313-1499/? E/InputDispatcher: channel '316a469 com.tencent.tmgp.zrwp/com.tencent.midas.proxyactivity.APMidasPayProxyActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2019-09-06 14:09:17.200 1313-1499/? E/InputDispatcher: channel '601333 com.tencent.tmgp.zrwp/com.tencent.midas.proxyactivity.APMidasPayProxyActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2019-09-06 14:09:17.214 1881-3092/? E/AwareLog: GameSdkConfigReader: GameSdkLog: idNameMap: null 2019-09-06 14:09:17.229 1313-1499/? E/InputDispatcher: channel 'c46b993 com.tencent.tmgp.zrwp/com.xmen.main.AppActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2019-09-06 14:09:17.297 1313-1352/? E/ActivityManager: Failed to schedule configuration change android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(Binder.java:1147) at android.app.IApplicationThread$Stub$Proxy.scheduleTransaction(IApplicationThread.java:1900) at android.app.servertransaction.ClientTransaction.schedule(ClientTransaction.java:129) at com.android.server.am.ClientLifecycleManager.scheduleTransaction(ClientLifecycleManager.java:47) at com.android.server.am.ClientLifecycleManager.scheduleTransaction(ClientLifecycleManager.java:100) at com.android.server.am.ActivityManagerService.updateGlobalConfigurationLocked(ActivityManagerService.java:24536) at com.android.server.am.ActivityManagerService.updateDisplayOverrideConfigurationLocked(ActivityManagerService.java:24650) at com.android.server.am.ActivityManagerService.updateDisplayOverrideConfiguration(ActivityManagerService.java:24615) at com.android.server.wm.WindowManagerService.sendNewConfiguration(WindowManagerService.java:5075) at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:5606) at android.os.Handler.dispatchMessage(Handler.java:109) at android.os.Looper.loop(Looper.java:207) at android.os.HandlerThread.run(HandlerThread.java:65) at com.android.server.ServiceThread.run(ServiceThread.java:44) 2019-09-06 14:09:17.308 9088-9088/? E/HiBoard_LauncherOverlayService: IllegalArgumentException, mWorkspace have not attach,errmsg:View=com.huawei.intelligent.ui.view.Workspace{80ef296 V.E...... ......I. 0,0-0,0} not attached to window manager 2019-09-06 14:09:17.320 9101-9101/? E/HiSearch9.11.6.301: [LauncherOverlayService]: IllegalArgumentException, mWorkspace have not attach and e: View=com.huawei.search.ui.views.Workspace{6b052d5 VFE...C.. ......I. 0,0-0,0} not attached to window manager 2019-09-06 14:09:17.326 1790-11981/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:09:17.326 1881-3092/? E/AwareLog: GameSdkConfigReader: GameSdkLog: idNameMap: null 2019-09-06 14:09:17.330 1790-1992/? E/Hicom_PolicyCenterService: handleAppDied. null == mMultipathAppsMap 2019-09-06 14:09:17.337 1790-1992/? E/XEngineMpipControl: Invalid SubId 2019-09-06 14:09:17.351 12661-12661/? E/DataSrv-9.3.0.304-O-0709-00:28-PackageUtils: NameNotFoundException: service apk is not installed 2019-09-06 14:09:17.355 725-805/? E/AwareLog: iawared: unknown message:157 2019-09-06 14:09:17.355 725-805/? E/AwareLog: iawared: change_property_content open /proc/11758/task/11796/static_vip fail errno(2)! 2019-09-06 14:09:17.355 725-805/? E/AwareLog: iawared: getProcCpuset open /proc/11758/task/11758/cpuset fail errno(2)! 2019-09-06 14:09:17.355 725-805/? E/AwareLog: iawared: getProcCpuset open /proc/11758/task/11758/cpuset fail errno(2)! 2019-09-06 14:09:17.363 1790-1811/? E/HsmCoreServiceImpl: onTransact in code is: 103 2019-09-06 14:09:17.401 1914-2088/? E/HwLauncher: SettingsEx , no such field. 2019-09-06 14:09:17.404 1675-1675/? E/ndroid.systemu: No package ID ff found for ID 0xffffffff. 2019-09-06 14:09:17.413 1675-1675/? E/ndroid.systemu: No package ID ff found for ID 0xffffffff. 2019-09-06 14:09:17.422 1790-1811/? E/HsmCoreServiceImpl: onTransact in code is: 103 2019-09-06 14:09:17.424 4509-4703/? E/[HwRecSys]HwRecSysService: getIsRportDirectService is false! 2019-09-06 14:09:17.469 1313-1813/? E/ProcessInfoCollector: getProcessInfo: failed to find this proc 2019-09-06 14:09:17.474 13106-13106/? E/ndroid.contact: Not starting debugger since process cannot load the jdwp agent. 2019-09-06 14:09:17.498 3861-3861/? E/UI-KeyboardView: EnShiftState.reset() failed! mKeyboard is null 2019-09-06 14:09:17.500 1790-11981/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:09:17.604 3861-3861/? E/CrashInfoComponent: [ SogouIME:onInitializeInterface 2019-09-06 14:09:17:595 ] 2019-09-06 14:09:17.604 3861-3861/? E/CrashInfoComponent: [ MainImeServiceDel:onInitializeInterface start 2019-09-06 14:09:17:604 ] 2019-09-06 14:09:17.705 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:09:17.757 13106-13131/? E/Contacts: RcsFeatureManager isRcsEnabled = true 2019-09-06 14:09:17.812 3861-3861/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /data/user/0/com.sohu.inputmethod.sogou/files/.theme/sogou_custom/res/composing_bg.png (No such file or directory) 2019-09-06 14:09:17.814 1313-1813/? E/ProcessInfoCollector: getProcessInfo: failed to find this proc 2019-09-06 14:09:17.819 13140-13140/? E/d.process.acor: Not starting debugger since process cannot load the jdwp agent. 2019-09-06 14:09:17.831 3861-3861/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /data/user/0/com.sohu.inputmethod.sogou/files/.theme/sogou_custom/res/composing_bg.png (No such file or directory) 2019-09-06 14:09:17.847 1790-26786/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:09:17.901 13106-13122/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2019-09-06 14:09:18.205 13106-13106/? E/Contacts: AlphaScroller Resources.NotFoundException in AlphaScroller 2019-09-06 14:09:18.212 13106-13106/? E/Contacts: AlphaScroller Resources.NotFoundException in AlphaScroller 2019-09-06 14:09:18.242 13106-13106/? E/SQLiteLog: (1) 2019-09-06 14:09:18.242 13106-13106/? E/Contacts: ContactsAppProvider makeInsertOperation gets SQLiteException. 2019-09-06 14:09:18.297 13140-13156/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2019-09-06 14:09:18.374 732-899/? E/JankService: JankFrequencyMonitor action return :0 2019-09-06 14:09:18.826 13106-13145/? E/ndroid.contact: Invalid ID 0x00000000. 2019-09-06 14:09:18.827 13106-13145/? E/ndroid.contact: Invalid ID 0x00000000. 2019-09-06 14:09:18.897 13106-13145/? E/ndroid.contact: Invalid ID 0x00000000. 2019-09-06 14:09:19.553 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:19.554 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:19.554 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:19.554 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:19.555 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:19.555 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:20.035 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:09:20.047 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:09:21.561 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:21.562 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:21.562 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:21.562 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:21.563 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:21.563 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.054 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:09:23.067 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:09:23.090 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.090 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.092 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.092 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.093 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.093 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.094 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.095 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.096 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.096 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.097 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.097 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.099 1845-2036/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =130 lastSpdLev=3 index=3 2019-09-06 14:09:23.102 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.102 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.102 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.103 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.104 1313-1667/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10097 has no location permission 2019-09-06 14:09:23.105 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.105 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:24.333 720-720/? E/Thermal-daemon: [battery] temp_new :36 temp_old :35 2019-09-06 14:09:24.334 720-720/? E/Thermal-daemon: Report temperature: [battery] temp :36 report_threshold:1 ```
Android 发生ANR时候在traces根本发现不了哪里错了,求解答
# App里面Log日志报的ANR错: 11-09 16:46:42.739: E/ActivityManager(1309): ANR in com.dingdingpai.paybox (com.dingdingpai.paybox/com.zftpay.paybox.activity.acquirer.nearby.NearByPaySucAct) 11-09 16:46:42.739: E/ActivityManager(1309): PID: 28531 11-09 16:46:42.739: E/ActivityManager(1309): Reason: Input dispatching timed out (Waiting because the touched window has not finished processing the input events that were previously delivered to it.) 11-09 16:46:42.739: E/ActivityManager(1309): Load: 19.43 / 18.81 / 18.84 11-09 16:46:42.739: E/ActivityManager(1309): CPU usage from 36891ms to 0ms ago with 99% awake: 11-09 16:46:42.739: E/ActivityManager(1309): 86% 28531/com.dingdingpai.paybox: 82% user + 3.9% kernel / faults: 179 minor 29 major 11-09 16:46:42.739: E/ActivityManager(1309): 2% 406/adbd: 0.1% user + 1.9% kernel / faults: 1549 minor 11-09 16:46:42.739: E/ActivityManager(1309): 1.1% 213/mediaserver: 0% user + 1.1% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0.9% 1695/android.process.media: 0.4% user + 0.4% kernel / faults: 1 minor 11-09 16:46:42.739: E/ActivityManager(1309): 0.8% 1309/system_server: 0.5% user + 0.2% kernel / faults: 853 minor 36 major 11-09 16:46:42.739: E/ActivityManager(1309): 0.6% 2623/mpdecision: 0% user + 0.6% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0.4% 20721/kworker/0:2H: 0% user + 0.4% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0.4% 1457/com.android.systemui: 0.2% user + 0.1% kernel / faults: 1467 minor 532 major 11-09 16:46:42.739: E/ActivityManager(1309): 0.3% 127/w1_bus_master1: 0% user + 0.3% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0.2% 25402/com.xiaomi.gamecenter: 0% user + 0.2% kernel / faults: 4 minor 1 major 11-09 16:46:42.739: E/ActivityManager(1309): 0.1% 1784/com.android.phone: 0.1% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0.1% 2248/com.miui.securitycenter.remote: 0.1% user + 0% kernel / faults: 1244 minor 96 major 11-09 16:46:42.739: E/ActivityManager(1309): 0.1% 25659/kworker/0:3H: 0% user + 0.1% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0.1% 3/ksoftirqd/0: 0% user + 0.1% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0.1% 30244/kworker/0:2: 0% user + 0.1% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 7/kworker/u:0H: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 26627/logcat: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 30827/kworker/u:4: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 155/mmcqd/0: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 200/servicemanager: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 210/surfaceflinger: 0% user + 0% kernel / faults: 1 minor 1 major 11-09 16:46:42.739: E/ActivityManager(1309): 0% 402/thermal-engine: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 13894/wpa_supplicant: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 30833/kworker/u:12: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 2/kthreadd: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 33/kworker/u:1H: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 222/qrngd: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 336/sdcard: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 400/location-mq: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 821/mdss_fb0: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 1741/com.sohu.inputmethod.sogou.xiaomi: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 1827/com.miui.whetstone: 0% user + 0% kernel / faults: 4 minor 11-09 16:46:42.739: E/ActivityManager(1309): 0% 1860/com.miui.home: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 2138/com.miui.powerkeeper:service: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 2226/com.miui.networkassistant.deamon: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 2590/mcd: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 2957/sogou.mobile.explorer.hotwords: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 13881/MC_Thread: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 0% 13883/RX_Thread: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): +0% 31241/migration/1: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): +0% 31242/kworker/1:0: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): +0% 31243/kworker/1:0H: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): +0% 31244/ksoftirqd/1: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): +0% 31254/kworker/1:1: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): +0% 31433/kworker/1:1H: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): +0% 31434/kworker/0:1H: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): +0% 31437/kworker/1:2H: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 55% TOTAL: 49% user + 6% kernel + 0% iowait + 0% softirq 11-09 16:46:42.739: E/ActivityManager(1309): CPU usage from 2259ms to 2795ms later: 11-09 16:46:42.739: E/ActivityManager(1309): 108% 28531/com.dingdingpai.paybox: 107% user + 1.7% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 16% 30950/Thread-1615: 16% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 14% 31058/Thread-1623: 14% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 14% 31096/Thread-1627: 14% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 14% 31176/Thread-1631: 12% user + 1.7% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 12% 30866/Thread-1612: 12% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 12% 31043/Thread-1621: 12% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 12% 31089/Thread-1625: 12% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 12% 31119/Thread-1629: 12% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 1.7% 28554/FileObserver: 1.7% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 7.2% 1309/system_server: 5.4% user + 1.8% kernel / faults: 1 minor 11-09 16:46:42.739: E/ActivityManager(1309): 7.2% 1338/ActivityManager: 3.6% user + 3.6% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 1.8% 213/mediaserver: 0% user + 1.8% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 1.8% 406/adbd: 0% user + 1.8% kernel / faults: 32 minor 11-09 16:46:42.739: E/ActivityManager(1309): 1.8% 406/adbd: 0% user + 1.8% kernel 11-09 16:46:42.739: E/ActivityManager(1309): +0% 31531/adbd: 0% user + 0% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 1.3% 31244/ksoftirqd/1: 0% user + 1.3% kernel 11-09 16:46:42.739: E/ActivityManager(1309): 43% TOTAL: 39% user + 3.4% kernel # 然后我在traces文件里面去找PID: 28531的根本发现不了什么错 # 单独拉出来PID=28531的拉出来如下: "Thread-1633" prio=5 tid=1 VMWAIT | group="main" sCount=1 dsCount=0 obj=0x42b18010 self=0x416f4860 | sysTid=28531 nice=0 sched=0/0 cgrp=apps handle=1074823508 | state=S schedstat=( 23570772482 18096225770 108042 ) utm=1866 stm=491 core=0 #00 pc 00021a98 /system/lib/libc.so (__futex_syscall3+8) #01 pc 0000f034 /system/lib/libc.so (__pthread_cond_timedwait_relative+48) #02 pc 0000f094 /system/lib/libc.so (__pthread_cond_timedwait+64) #03 pc 0004d663 /system/lib/libdvm.so #04 pc 0003cd0d /system/lib/libdvm.so #05 pc 0004f255 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*, bool)+420) #06 pc 00001063 /system/bin/app_process #07 pc 0000e4bb /system/lib/libc.so (__libc_init+50) #08 pc 00000d80 /system/bin/app_process at dalvik.system.NativeStart.run(Native Method) # 但是根本不知道是哪里报错了啊,好纠结啊,用了腾讯的bugly也根本不行啊,有点崩溃,哪位大神给看下到底出错了啊,拜谢 # 下面是pid=28531的全部traces日志: ----- pid 28531 at 2016-11-09 16:46:39 ----- Cmd line: com.dingdingpai.paybox JNI: CheckJNI is off; workarounds are off; pins=1; globals=498 DALVIK THREADS: (mutexes: tll=0 tsl=0 tscl=0 ghl=0) "Thread-1631" prio=5 tid=26 TIMED_WAIT | group="main" sCount=1 dsCount=0 obj=0x42b0e968 self=0x62c1cec8 | sysTid=31176 nice=0 sched=0/0 cgrp=apps handle=1656772904 | state=S schedstat=( 3633299697 1606457029 4432 ) utm=337 stm=26 core=1 at java.lang.VMThread.sleep(Native Method) at java.lang.Thread.sleep(Thread.java:1013) at java.lang.Thread.sleep(Thread.java:995) at com.zftpay.paybox.widget.customsialog.LoadingDialogView$UpdataThread.run(LoadingDialogView.java:111) at java.lang.Thread.run(Thread.java:841) "Thread-1633" prio=5 tid=1 VMWAIT | group="main" sCount=1 dsCount=0 obj=0x42b18010 self=0x416f4860 | sysTid=28531 nice=0 sched=0/0 cgrp=apps handle=1074823508 | state=S schedstat=( 23570772482 18096225770 108042 ) utm=1866 stm=491 core=0 #00 pc 00021a98 /system/lib/libc.so (__futex_syscall3+8) #01 pc 0000f034 /system/lib/libc.so (__pthread_cond_timedwait_relative+48) #02 pc 0000f094 /system/lib/libc.so (__pthread_cond_timedwait+64) #03 pc 0004d663 /system/lib/libdvm.so #04 pc 0003cd0d /system/lib/libdvm.so #05 pc 0004f255 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*, bool)+420) #06 pc 00001063 /system/bin/app_process #07 pc 0000e4bb /system/lib/libc.so (__libc_init+50) #08 pc 00000d80 /system/bin/app_process at dalvik.system.NativeStart.run(Native Method) "Thread-1629" prio=5 tid=34 SUSPENDED | group="main" sCount=1 dsCount=0 obj=0x424ef5a0 self=0x61f39890 | sysTid=31119 nice=0 sched=0/0 cgrp=apps handle=1621144376 | state=S schedstat=( 3689865326 1726587225 4851 ) utm=343 stm=25 core=1 #00 pc 00021a98 /system/lib/libc.so (__futex_syscall3+8) #01 pc 0000f034 /system/lib/libc.so (__pthread_cond_timedwait_relative+48) #02 pc 0000f094 /system/lib/libc.so (__pthread_cond_timedwait+64) #03 pc 0005655f /system/lib/libdvm.so #04 pc 00056b21 /system/lib/libdvm.so (dvmChangeStatus(Thread*, ThreadStatus)+34) #05 pc 00055c81 /system/lib/libdvm.so #06 pc 00055ce7 /system/lib/libdvm.so (dvmThreadSleep(unsigned long long, unsigned int)+62) #07 pc 00000214 /dev/ashmem/dalvik-jit-code-cache (deleted) at java.lang.VMThread.sleep(Native Method) at java.lang.Thread.sleep(Thread.java:1013) at java.lang.Thread.sleep(Thread.java:995) at com.zftpay.paybox.widget.customsialog.LoadingDialogView$UpdataThread.run(LoadingDialogView.java:111) at java.lang.Thread.run(Thread.java:841) "Thread-1627" prio=5 tid=33 MONITOR | group="main" sCount=1 dsCount=0 obj=0x428e4638 self=0x61f1c890 | sysTid=31096 nice=0 sched=0/0 cgrp=apps handle=1643236584 | state=S schedstat=( 3674041640 1764672973 5137 ) utm=332 stm=35 core=1 at android.os.MessageQueue.enqueueMessage(MessageQueue.java:~318) - waiting to lock <0x4244ee90> (a android.os.MessageQueue) held by tid=30 (Thread-1623) at android.os.Handler.enqueueMessage(Handler.java:626) at android.os.Handler.sendMessageAtTime(Handler.java:595) at android.os.Handler.sendMessageDelayed(Handler.java:566) at android.os.Handler.sendEmptyMessageDelayed(Handler.java:530) at android.os.Handler.sendEmptyMessage(Handler.java:515) at com.zftpay.paybox.widget.customsialog.LoadingDialogView$UpdataThread.run(LoadingDialogView.java:112) at java.lang.Thread.run(Thread.java:841) "Thread-1625" prio=5 tid=32 MONITOR | group="main" sCount=1 dsCount=0 obj=0x424e1200 self=0x61ee9860 | sysTid=31089 nice=0 sched=0/0 cgrp=apps handle=1643027640 | state=S schedstat=( 3708275048 1726739259 5283 ) utm=337 stm=33 core=1 at android.os.MessageQueue.enqueueMessage(MessageQueue.java:~318) - waiting to lock <0x4244ee90> (a android.os.MessageQueue) held by tid=30 (Thread-1623) at android.os.Handler.enqueueMessage(Handler.java:626) at android.os.Handler.sendMessageAtTime(Handler.java:595) at android.os.Handler.sendMessageDelayed(Handler.java:566) at android.os.Handler.sendEmptyMessageDelayed(Handler.java:530) at android.os.Handler.sendEmptyMessage(Handler.java:515) at com.zftpay.paybox.widget.customsialog.LoadingDialogView$UpdataThread.run(LoadingDialogView.java:112) at java.lang.Thread.run(Thread.java:841) "Thread-1623" prio=5 tid=30 SUSPENDED | group="main" sCount=1 dsCount=0 obj=0x426c2158 self=0x62c222b8 | sysTid=31058 nice=0 sched=0/0 cgrp=apps handle=1656829440 | state=S schedstat=( 3700224020 1786775127 5578 ) utm=344 stm=26 core=1 at android.os.MessageQueue.enqueueMessage(MessageQueue.java:~343) at android.os.Handler.enqueueMessage(Handler.java:626) at android.os.Handler.sendMessageAtTime(Handler.java:595) at android.os.Handler.sendMessageDelayed(Handler.java:566) at android.os.Handler.sendEmptyMessageDelayed(Handler.java:530) at android.os.Handler.sendEmptyMessage(Handler.java:515) at com.zftpay.paybox.widget.customsialog.LoadingDialogView$UpdataThread.run(LoadingDialogView.java:112) at java.lang.Thread.run(Thread.java:841) "Thread-1621" prio=5 tid=29 MONITOR | group="main" sCount=1 dsCount=0 obj=0x42b37f08 self=0x62c5c1d0 | sysTid=31043 nice=0 sched=0/0 cgrp=apps handle=1621199688 | state=S schedstat=( 3730750307 1943187029 5817 ) utm=347 stm=26 core=1 at android.os.MessageQueue.enqueueMessage(MessageQueue.java:~318) - waiting to lock <0x4244ee90> (a android.os.MessageQueue) held by tid=30 (Thread-1623) at android.os.Handler.enqueueMessage(Handler.java:626) at android.os.Handler.sendMessageAtTime(Handler.java:595) at android.os.Handler.sendMessageDelayed(Handler.java:566) at android.os.Handler.sendEmptyMessageDelayed(Handler.java:530) at android.os.Handler.sendEmptyMessage(Handler.java:515) at com.zftpay.paybox.widget.customsialog.LoadingDialogView$UpdataThread.run(LoadingDialogView.java:112) at java.lang.Thread.run(Thread.java:841) "AudioRecord" prio=10 tid=28 NATIVE | group="main" sCount=1 dsCount=0 obj=0x424969d0 self=0x62c207d0 | sysTid=30963 nice=-16 sched=0/0 cgrp=apps handle=1621178400 | state=S schedstat=( 4357705 17892868 76 ) utm=0 stm=0 core=0 #00 pc 00021a9c /system/lib/libc.so (__futex_syscall3+12) #01 pc 0000f034 /system/lib/libc.so (__pthread_cond_timedwait_relative+48) #02 pc 00051bbd /system/lib/libmedia.so (android::AudioRecord::AudioRecordThread::threadLoop()+100) #03 pc 0000ea4d /system/lib/libutils.so (android::Thread::_threadLoop(void*)+104) #04 pc 0004e485 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68) #05 pc 0000e5ef /system/lib/libutils.so #06 pc 0000d240 /system/lib/libc.so (__thread_entry+72) #07 pc 0000d3d8 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) "Thread-1615" prio=5 tid=25 SUSPENDED | group="main" sCount=1 dsCount=0 obj=0x42b044e0 self=0x62c6ae78 | sysTid=30950 nice=0 sched=0/0 cgrp=apps handle=1615996768 | state=S schedstat=( 8791873112 4710523269 7727 ) utm=851 stm=28 core=1 #00 pc 00021a98 /system/lib/libc.so (__futex_syscall3+8) #01 pc 0000f034 /system/lib/libc.so (__pthread_cond_timedwait_relative+48) #02 pc 0000f094 /system/lib/libc.so (__pthread_cond_timedwait+64) #03 pc 0005655f /system/lib/libdvm.so #04 pc 00056b21 /system/lib/libdvm.so (dvmChangeStatus(Thread*, ThreadStatus)+34) #05 pc 0004c3b3 /system/lib/libdvm.so #06 pc 0004e073 /system/lib/libdvm.so #07 pc 00083623 /system/lib/libandroid_runtime.so #08 pc 0008365b /system/lib/libandroid_runtime.so #09 pc 0002034c /system/lib/libdvm.so (dvmPlatformInvoke+112) #10 pc 00050fcf /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398) #11 pc 00000214 /dev/ashmem/dalvik-jit-code-cache (deleted) at android.media.AudioRecord.native_read_in_short_array(Native Method) at android.media.AudioRecord.read(AudioRecord.java:663) at com.tuner168.ble_bracelet_sim.audio.RecognizeThread.run(RecognizeThread.java:102) "Timer-2" prio=5 tid=20 TIMED_WAIT | group="main" sCount=1 dsCount=0 obj=0x42b1baf8 self=0x6057c798 | sysTid=30909 nice=0 sched=0/0 cgrp=apps handle=1621135960 | state=S schedstat=( 20484377 5202030 40 ) utm=2 stm=0 core=0 at java.lang.Object.wait(Native Method) - waiting on <0x42b1baf8> (a java.util.Timer$TimerImpl) at java.lang.Object.wait(Object.java:401) at java.util.Timer$TimerImpl.run(Timer.java:238) "pool-3-thread-2" prio=5 tid=24 TIMED_WAIT | group="main" sCount=1 dsCount=0 obj=0x4292c330 self=0x6057d638 | sysTid=30867 nice=0 sched=0/0 cgrp=apps handle=1658670960 | state=S schedstat=( 32660106 13747029 65 ) utm=3 stm=0 core=1 at java.lang.Object.wait(Native Method) - waiting on <0x4292c450> (a java.lang.VMThread) held by tid=24 (pool-3-thread-2) at java.lang.Thread.parkFor(Thread.java:1205) at sun.misc.Unsafe.park(Unsafe.java:325) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:197) at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:429) at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:331) at java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:910) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) "Thread-1612" prio=5 tid=23 MONITOR | group="main" sCount=1 dsCount=0 obj=0x42927908 self=0x62dd56c0 | sysTid=30866 nice=0 sched=0/0 cgrp=apps handle=1656995496 | state=S schedstat=( 3839698317 1806337748 7682 ) utm=350 stm=33 core=1 at android.os.MessageQueue.enqueueMessage(MessageQueue.java:~318) - waiting to lock <0x4244ee90> (a android.os.MessageQueue) held by tid=30 (Thread-1623) at android.os.Handler.enqueueMessage(Handler.java:626) at android.os.Handler.sendMessageAtTime(Handler.java:595) at android.os.Handler.sendMessageDelayed(Handler.java:566) at android.os.Handler.sendEmptyMessageDelayed(Handler.java:530) at android.os.Handler.sendEmptyMessage(Handler.java:515) at com.zftpay.paybox.widget.customsialog.LoadingDialogView$UpdataThread.run(LoadingDialogView.java:112) at java.lang.Thread.run(Thread.java:841) "RefQueueWorker@org.apache.http.impl.conn.tsccm.ConnPoolByRoute@428b4460" daemon prio=5 tid=19 WAIT | group="main" sCount=1 dsCount=0 obj=0x428b72f8 self=0x62c0a5d8 | sysTid=30852 nice=0 sched=0/0 cgrp=apps handle=1616152720 | state=S schedstat=( 305990 46979 6 ) utm=0 stm=0 core=2 at java.lang.Object.wait(Native Method) - waiting on <0x428b6338> (a java.lang.ref.ReferenceQueue) at java.lang.Object.wait(Object.java:401) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:102) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:73) at org.apache.http.impl.conn.tsccm.RefQueueWorker.run(RefQueueWorker.java:102) at java.lang.Thread.run(Thread.java:841) "CommunicationWithDeviceThread" prio=5 tid=21 NATIVE | group="main" sCount=1 dsCount=0 obj=0x427db388 self=0x60517ec0 | sysTid=28580 nice=0 sched=0/0 cgrp=apps handle=1615950296 | state=S schedstat=( 281667 0 2 ) utm=0 stm=0 core=0 #00 pc 000218d0 /system/lib/libc.so (epoll_wait+12) #01 pc 0001081b /system/lib/libutils.so (android::Looper::pollInner(int)+98) #02 pc 00010a45 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+92) #03 pc 0006bb19 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22) #04 pc 0002034c /system/lib/libdvm.so (dvmPlatformInvoke+112) #05 pc 00050fcf /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398) #06 pc 000297e0 /system/lib/libdvm.so #07 pc 00030c6c /system/lib/libdvm.so (dvmMterpStd(Thread*)+76) #08 pc 0002e304 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184) #09 pc 00063431 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336) #10 pc 00063455 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20) #11 pc 00058133 /system/lib/libdvm.so #12 pc 0000d240 /system/lib/libc.so (__thread_entry+72) #13 pc 0000d3d8 /system/lib/libc.so (pthread_create+240) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:138) at android.os.Looper.loop(Looper.java:123) at android.os.HandlerThread.run(HandlerThread.java:61) "Binder_4" prio=5 tid=18 NATIVE | group="main" sCount=1 dsCount=0 obj=0x4266e1c8 self=0x60525cf0 | sysTid=28564 nice=0 sched=0/0 cgrp=apps handle=1616009896 | state=S schedstat=( 17960418 45819164 121 ) utm=1 stm=0 core=3 #00 pc 0002071c /system/lib/libc.so (__ioctl+8) #01 pc 0002cf83 /system/lib/libc.so (ioctl+14) #02 pc 0001d471 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140) #03 pc 0001db7b /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6) #04 pc 0001dc11 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48) #05 pc 00021a89 /system/lib/libbinder.so #06 pc 0000eabd /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216) #07 pc 0004e485 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68) #08 pc 0000e5ef /system/lib/libutils.so #09 pc 0000d240 /system/lib/libc.so (__thread_entry+72) #10 pc 0000d3d8 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) "WifiManager" prio=5 tid=17 NATIVE | group="main" sCount=1 dsCount=0 obj=0x42573cd8 self=0x60524008 | sysTid=28561 nice=0 sched=0/0 cgrp=apps handle=1616004192 | state=S schedstat=( 17615048 65286354 145 ) utm=0 stm=1 core=0 #00 pc 000218d0 /system/lib/libc.so (epoll_wait+12) #01 pc 0001081b /system/lib/libutils.so (android::Looper::pollInner(int)+98) #02 pc 00010a45 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+92) #03 pc 0006bb19 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22) #04 pc 0002034c /system/lib/libdvm.so (dvmPlatformInvoke+112) #05 pc 00050fcf /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398) #06 pc 00000214 /dev/ashmem/dalvik-jit-code-cache (deleted) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:138) at android.os.Looper.loop(Looper.java:123) at android.os.HandlerThread.run(HandlerThread.java:61) "Binder_3" prio=5 tid=16 NATIVE | group="main" sCount=1 dsCount=0 obj=0x425317f8 self=0x60514010 | sysTid=28559 nice=0 sched=0/0 cgrp=apps handle=1615936968 | state=S schedstat=( 17389168 46019273 138 ) utm=0 stm=1 core=3 #00 pc 0002071c /system/lib/libc.so (__ioctl+8) #01 pc 0002cf83 /system/lib/libc.so (ioctl+14) #02 pc 0001d471 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140) #03 pc 0001db7b /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6) #04 pc 0001dc11 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48) #05 pc 00021a89 /system/lib/libbinder.so #06 pc 0000eabd /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216) #07 pc 0004e485 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68) #08 pc 0000e5ef /system/lib/libutils.so #09 pc 0000d240 /system/lib/libc.so (__thread_entry+72) #10 pc 0000d3d8 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) "java.lang.ProcessManager" daemon prio=5 tid=15 WAIT | group="main" sCount=1 dsCount=0 obj=0x4252fd28 self=0x60513768 | sysTid=28557 nice=0 sched=0/0 cgrp=apps handle=1615934240 | state=S schedstat=( 5171247 879583 37 ) utm=0 stm=0 core=1 at java.lang.Object.wait(Native Method) - waiting on <0x4252fb50> (a java.util.HashMap) at java.lang.Object.wait(Object.java:364) at java.lang.ProcessManager.waitForMoreChildren(ProcessManager.java:140) at java.lang.ProcessManager.watchChildren(ProcessManager.java:105) at java.lang.ProcessManager.access$000(ProcessManager.java:40) at java.lang.ProcessManager$1.run(ProcessManager.java:58) "FileObserver" prio=5 tid=14 SUSPENDED | group="main" sCount=1 dsCount=0 obj=0x424c8d30 self=0x5f551718 | sysTid=28554 nice=0 sched=0/0 cgrp=apps handle=1616506096 | state=S schedstat=( 2674007 4621617 16 ) utm=0 stm=0 core=0 at java.lang.StackTraceElement.<init>(StackTraceElement.java:~61) at dalvik.system.VMStack.getThreadStackTrace(Native Method) at java.lang.Thread.getStackTrace(Thread.java:579) at java.lang.Thread.getAllStackTraces(Thread.java:521) at com.tencent.bugly.proguard.a.a(BUGLY:943) at com.tencent.bugly.crashreport.crash.anr.b.a(BUGLY:395) at com.tencent.bugly.crashreport.crash.anr.b$1.onEvent(BUGLY:462) at android.os.FileObserver$ObserverThread.onEvent(FileObserver.java:125) at android.os.FileObserver$ObserverThread.observe(Native Method) at android.os.FileObserver$ObserverThread.run(FileObserver.java:88) "BUGLY_THREAD" prio=5 tid=12 TIMED_WAIT | group="main" sCount=1 dsCount=0 obj=0x42491a18 self=0x60297378 | sysTid=28553 nice=0 sched=0/0 cgrp=apps handle=1599414472 | state=S schedstat=( 13214376 14080415 57 ) utm=1 stm=0 core=0 at java.lang.Object.wait(Native Method) - waiting on <0x42491b38> (a java.lang.VMThread) held by tid=12 (BUGLY_THREAD) at java.lang.Thread.parkFor(Thread.java:1205) at sun.misc.Unsafe.park(Unsafe.java:325) at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:197) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2056) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1062) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:778) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) "BUGLY_THREAD" prio=5 tid=13 WAIT | group="main" sCount=1 dsCount=0 obj=0x4248fea8 self=0x6028f940 | sysTid=28552 nice=0 sched=0/0 cgrp=apps handle=1613299096 | state=S schedstat=( 109396885 61975669 283 ) utm=3 stm=7 core=2 at java.lang.Object.wait(Native Method) - waiting on <0x4248ffc8> (a java.lang.VMThread) held by tid=13 (BUGLY_THREAD) at java.lang.Thread.parkFor(Thread.java:1205) at sun.misc.Unsafe.park(Unsafe.java:325) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2017) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1057) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:778) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) "BUGLY_THREAD" prio=5 tid=11 WAIT | group="main" sCount=1 dsCount=0 obj=0x4247f7d8 self=0x5f550d68 | sysTid=28550 nice=0 sched=0/0 cgrp=apps handle=1599410624 | state=S schedstat=( 25886336 22998661 313 ) utm=1 stm=1 core=0 at java.lang.Object.wait(Native Method) - waiting on <0x4247f9c8> (a java.lang.VMThread) held by tid=11 (BUGLY_THREAD) at java.lang.Thread.parkFor(Thread.java:1205) at sun.misc.Unsafe.park(Unsafe.java:325) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2017) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1057) at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:778) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) "Binder_2" prio=5 tid=10 NATIVE | group="main" sCount=1 dsCount=0 obj=0x4244dec0 self=0x5f4d4008 | sysTid=28545 nice=0 sched=0/0 cgrp=apps handle=1596783464 | state=S schedstat=( 19653653 26620362 131 ) utm=1 stm=0 core=3 #00 pc 0002071c /system/lib/libc.so (__ioctl+8) #01 pc 0002cf83 /system/lib/libc.so (ioctl+14) #02 pc 0001d471 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140) #03 pc 0001db7b /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6) #04 pc 0001dc11 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48) #05 pc 00021a89 /system/lib/libbinder.so #06 pc 0000eabd /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216) #07 pc 0004e485 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68) #08 pc 0000e5ef /system/lib/libutils.so #09 pc 0000d240 /system/lib/libc.so (__thread_entry+72) #10 pc 0000d3d8 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) "Binder_1" prio=5 tid=9 NATIVE | group="main" sCount=1 dsCount=0 obj=0x4244dd20 self=0x5f2cf250 | sysTid=28544 nice=0 sched=0/0 cgrp=apps handle=1596780552 | state=S schedstat=( 17057920 52076197 126 ) utm=1 stm=0 core=3 #00 pc 0002071c /system/lib/libc.so (__ioctl+8) #01 pc 0002cf83 /system/lib/libc.so (ioctl+14) #02 pc 0001d471 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140) #03 pc 0001db7b /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6) #04 pc 0001dc11 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48) #05 pc 00021a89 /system/lib/libbinder.so #06 pc 0000eabd /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216) #07 pc 0004e485 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68) #08 pc 0000e5ef /system/lib/libutils.so #09 pc 0000d240 /system/lib/libc.so (__thread_entry+72) #10 pc 0000d3d8 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) "FinalizerWatchdogDaemon" daemon prio=5 tid=8 WAIT | group="system" sCount=1 dsCount=0 obj=0x424487f0 self=0x5bde28b0 | sysTid=28541 nice=0 sched=0/0 cgrp=apps handle=1541287176 | state=S schedstat=( 451876 609218 14 ) utm=0 stm=0 core=0 at java.lang.Object.wait(Native Method) - waiting on <0x417de668> (a java.lang.Daemons$FinalizerWatchdogDaemon) at java.lang.Object.wait(Object.java:364) at java.lang.Daemons$FinalizerWatchdogDaemon.waitForObject(Daemons.java:230) at java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:207) at java.lang.Thread.run(Thread.java:841) "FinalizerDaemon" daemon prio=5 tid=7 WAIT | group="system" sCount=1 dsCount=0 obj=0x42448640 self=0x5bde2008 | sysTid=28540 nice=0 sched=0/0 cgrp=apps handle=1541284960 | state=S schedstat=( 14235421 8436818 47 ) utm=1 stm=0 core=0 at java.lang.Object.wait(Native Method) - waiting on <0x417c97d8> (a java.lang.ref.ReferenceQueue) at java.lang.Object.wait(Object.java:401) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:102) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:73) at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:170) at java.lang.Thread.run(Thread.java:841) "ReferenceQueueDaemon" daemon prio=5 tid=6 WAIT | group="system" sCount=1 dsCount=0 obj=0x424484d8 self=0x5ec14460 | sysTid=28539 nice=0 sched=0/0 cgrp=apps handle=1589725368 | state=S schedstat=( 2807867 4756510 18 ) utm=0 stm=0 core=0 at java.lang.Object.wait(Native Method) - waiting on <0x417c9700> at java.lang.Object.wait(Object.java:364) at java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:130) at java.lang.Thread.run(Thread.java:841) "Compiler" daemon prio=5 tid=5 VMWAIT | group="system" sCount=1 dsCount=0 obj=0x424483e8 self=0x5ec14008 | sysTid=28538 nice=0 sched=0/0 cgrp=apps handle=1541294864 | state=S schedstat=( 374628429 196207032 2486 ) utm=19 stm=18 core=0 #00 pc 00021a98 /system/lib/libc.so (__futex_syscall3+8) #01 pc 0000f034 /system/lib/libc.so (__pthread_cond_timedwait_relative+48) #02 pc 0000f094 /system/lib/libc.so (__pthread_cond_timedwait+64) #03 pc 00076c4b /system/lib/libdvm.so #04 pc 00057815 /system/lib/libdvm.so #05 pc 0000d240 /system/lib/libc.so (__thread_entry+72) #06 pc 0000d3d8 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) "JDWP" daemon prio=5 tid=4 VMWAIT | group="system" sCount=1 dsCount=0 obj=0x42448300 self=0x58b35830 | sysTid=28537 nice=0 sched=0/0 cgrp=apps handle=1487448632 | state=S schedstat=( 2560678 3524426 20 ) utm=0 stm=0 core=0 #00 pc 0002086c /system/lib/libc.so (select+20) #01 pc 0006433f /system/lib/libdvm.so #02 pc 00066e91 /system/lib/libdvm.so #03 pc 00057815 /system/lib/libdvm.so #04 pc 0000d240 /system/lib/libc.so (__thread_entry+72) #05 pc 0000d3d8 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) "Signal Catcher" daemon prio=5 tid=3 RUNNABLE | group="system" sCount=0 dsCount=0 obj=0x42448208 self=0x5bdde338 | sysTid=28536 nice=0 sched=0/0 cgrp=apps handle=1589714456 | state=R schedstat=( 21778283 13446303 35 ) utm=1 stm=1 core=1 at dalvik.system.NativeStart.run(Native Method) "GC" daemon prio=5 tid=2 VMWAIT | group="system" sCount=1 dsCount=0 obj=0x42448128 self=0x58b37830 | sysTid=28535 nice=0 sched=0/0 cgrp=apps handle=1541266408 | state=S schedstat=( 290835661 1780590841 14137 ) utm=2 stm=27 core=0 #00 pc 00021a98 /system/lib/libc.so (__futex_syscall3+8) #01 pc 0000f034 /system/lib/libc.so (__pthread_cond_timedwait_relative+48) #02 pc 0000f094 /system/lib/libc.so (__pthread_cond_timedwait+64) #03 pc 0007560f /system/lib/libdvm.so #04 pc 00057815 /system/lib/libdvm.so #05 pc 0000d240 /system/lib/libc.so (__thread_entry+72) #06 pc 0000d3d8 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) NATIVE THREADS: "gdingpai.paybox" sysTid=30946 nice=0 sched=0/0 cgrp=apps | state=S schedstat=( 9895416 257812 7 ) utm=0 stm=0 core=0 "gdingpai.paybox" sysTid=30947 nice=0 sched=0/0 cgrp=apps | state=S schedstat=( 49167 106614 2 ) utm=0 stm=0 core=0 "gdingpai.paybox" sysTid=30948 nice=0 sched=0/0 cgrp=apps | state=S schedstat=( 60885 0 2 ) utm=0 stm=0 core=0 "gdingpai.paybox" sysTid=30949 nice=0 sched=0/0 cgrp=apps | state=S schedstat=( 43230 9980989 3 ) utm=0 stm=0 core=0 "GL updater" sysTid=31132 nice=-10 sched=0/0 cgrp=apps | state=S schedstat=( 364636 305104 4 ) utm=0 stm=0 core=1 ----- end 28531 -----
安卓app进程结束一段时间启动闪退
android.content.res.Resources$NotFoundException: String resource ID #0x0 at android.content.res.Resources.getText(Resources.java:352) at android.content.res.Resources.getString(Resources.java:398) at io.rong.push.notification.RongNotificationInterface.createNotification(RongNotificationInterface.java:207) at io.rong.push.notification.RongNotificationInterface.sendNotification(RongNotificationInterface.java:102) at io.rong.push.core.MessageHandleService.onHandleIntent(MessageHandleService.java:63) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.os.HandlerThread.run(HandlerThread.java:61)
FragmentTabhost用法,运行报错
activity_main.xml----------------------/ <LinearLayout 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" android:orientation="vertical"> <FrameLayout android:id="@+id/activity_home_container" android:layout_width="fill_parent" android:layout_height="0dp" android:layout_weight="1"></FrameLayout> <android.support.v4.app.FragmentTabHost android:id="@android:id/tabhost" android:layout_width="match_parent" android:layout_height="wrap_content"> <TabWidget android:id="@android:id/tabs" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:background="#009999"></TabWidget> <FrameLayout android:id="@android:id/tabcontent" android:layout_width="0dp" android:layout_height="0dp"></FrameLayout> </android.support.v4.app.FragmentTabHost> </LinearLayout> --------------------------------------------------/ MainActivity.class-----------------------------/ public class MainActivity extends FragmentActivity { private static final String TAB_CHAT = "chat"; private FragmentTabHost tabhost; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); // 1. 初始化TabHost tabhost = (FragmentTabHost) findViewById(android.R.id.tabhost); tabhost.setup(this, getSupportFragmentManager(), R.id.activity_home_container); // 2、新建TabSpec TabHost.TabSpec spec = tabhost.newTabSpec(TAB_CHAT); spec.setIndicator("消息"); //3、添加TabSpec tabhost.addTab(spec,MyFragment.class,null); } } 运行不了,直接报错,求大神 11-03 03:58:18.350 1801-1801/? E/ActivityThread﹕ Service com.android.email.service.EmailBroadcastProcessorService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@23e60f46 that was originally bound here android.app.ServiceConnectionLeaked: Service com.android.email.service.EmailBroadcastProcessorService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@23e60f46 that was originally bound here at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:1077) at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:971) at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1782) at android.app.ContextImpl.bindService(ContextImpl.java:1765) at android.content.ContextWrapper.bindService(ContextWrapper.java:539) at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:181) at com.android.emailcommon.service.ServiceProxy.test(ServiceProxy.java:224) at com.android.email.service.EmailServiceUtils.isServiceAvailable(EmailServiceUtils.java:160) at com.android.email.provider.AccountReconciler.reconcileAccountsInternal(AccountReconciler.java:171) at com.android.email.provider.AccountReconciler.reconcileAccounts(AccountReconciler.java:115) at com.android.email.service.EmailBroadcastProcessorService.reconcileAndStartServices(EmailBroadcastProcessorService.java:305) at com.android.email.service.EmailBroadcastProcessorService.onBootCompleted(EmailBroadcastProcessorService.java:295) at com.android.email.service.EmailBroadcastProcessorService.onHandleIntent(EmailBroadcastProcessorService.java:130) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.os.HandlerThread.run(HandlerThread.java:61)
android4.4.2 在文件管理器安装一个apk, 提示 “app not installed”
下面是log D/PowerManagerNotifier( 432): onUserActivity: event=2, uid=1000 D/Surface ( 1170): Surface::queueBuffer [ 0, 0, 1072, 1448] D/Surface ( 949): Surface::queueBuffer [ 0, 0, 580, 868] D/SurfaceFlinger( 100): doComposeSurfaces---count = 3, timer = 54708 D/hwcomposer( 100): --disp=0,ture_disp = 0, -psDisplay->force_flip=0 D/hwcomposer( 100): ---UpdateRectCount=2-sunxi_set commit_time = 2955605753867 D/hwcomposer( 100): -------commit_data.force_flip[0] =0 D/hwcomposer( 100): request ratate module err E/ion ( 100): ioctl c0084907 failed with code -1: Bad file number E/ion ( 100): ioctl c0084907 failed with code -1: Bad file number E/ion ( 100): ioctl c0084907 failed with code -1: Bad file number D/Surface ( 949): Surface::queueBuffer [290, 812, 572, 860] V/AudioSystem( 432): getFrameCount() streamType 1, output 2, frameCount 2048 I/ActivityManager( 432): START u0 {dat=file:///mnt/sdcard/com.unicom.zworeader.ui_540.apk cmp=com.android.packageinstaller/.InstallAppProgress (has extras)} from pid 949 D/PowerManagerNotifier( 432): onWakeLockAcquired: flags=1, tag="ActivityManager-Launch", packageName=android, ownerUid=1000, ownerPid=432, workSource=null D/PowerManagerService( 432): --------mCanUdatePowerState =true, mPowerState = 0 D/SurfaceFlinger( 100): doComposeSurfaces---count = 3, timer = 55541 D/hwcomposer( 100): --disp=0,ture_disp = 0, -psDisplay->force_flip=0 D/hwcomposer( 100): ---UpdateRectCount=1-sunxi_set commit_time = 2955685407992 D/hwcomposer( 100): -------commit_data.force_flip[0] =0 D/hwcomposer( 100): request ratate module err E/ion ( 100): ioctl c0084907 failed with code -1: Bad file number E/ion ( 100): ioctl c0084907 failed with code -1: Bad file number E/ion ( 100): ioctl c0084907 failed with code -1: Bad file number V/AudioSystem( 432): getOutputSamplingRate() reading from output desc V/AudioSystem( 432): getSamplingRate() streamType 1, output 2, sampling rate 48000 D/DisplayPowerController( 432): requestPowerState: screenState=2, useProximitySensor=false, screenBrightness=0, screenAutoBrightnessAdjustment=0.0, useAutoBrightness=false, blockScreenOn=false, waitForNegativeProximity=false V/AudioSystem( 432): getLatency() streamType 1, output 2, latency 85 V/AudioSystem( 432): getFrameCount() streamType 1, output 2, frameCount 2048 V/AudioSystem( 432): getOutputSamplingRate() reading from output desc V/AudioSystem( 432): getSamplingRate() streamType 1, output 2, sampling rate 48000 D/StatusBarManagerService( 432): java.lang.Throwable D/StatusBarManagerService( 432): at com.android.server.StatusBarManagerService.setSystemUiVisibility(StatusBarManagerService.java:334) D/StatusBarManagerService( 432): at com.android.internal.policy.impl.PhoneWindowManager$27.run(PhoneWindowManager.java:5767) D/StatusBarManagerService( 432): at android.os.Handler.handleCallback(Handler.java:733) D/StatusBarManagerService( 432): at android.os.Handler.dispatchMessage(Handler.java:95) D/StatusBarManagerService( 432): at android.os.Looper.loop(Looper.java:136) D/StatusBarManagerService( 432): at android.os.HandlerThread.run(HandlerThread.java:61) D/PhoneStatusBar( 481): showing the MENU button D/PowerManagerService( 432): --------mCanUdatePowerState =true, mPowerState = 0 D/codec_audio_speaker( 102): #################set_normal_path,headset_on =0,headphone_on =0,speaker_on =2 V/codec_audio_speaker( 102): in normal mode, headset or speaker on,****LINE:146,FUNC:set_normal_path D/codec_audio_speaker( 102): #################set_normal_volume,new_vol=63,headset_on =4,headphone_on =0,speaker_on =0 D/PowerManagerNotifier( 432): onWakeLockAcquired: flags=1, tag="AudioMix", packageName=media, ownerUid=0, ownerPid=102, workSource=null D/DisplayPowerController( 432): requestPowerState: screenState=2, useProximitySensor=false, screenBrightness=0, screenAutoBrightnessAdjustment=0.0, useAutoBrightness=false, blockScreenOn=false, waitForNegativeProximity=false V/codec_audio_speaker( 102): ****LINE:59,FUNC:set_normal_volume D/codec_audio_speaker( 102): #################set_normal_volume,new_vol=31,headset_on =0,headphone_on =0,speaker_on =2 V/codec_audio_speaker( 102): ****LINE:55,FUNC:set_normal_volume D/audio_hw_primary( 102): start_output_stream,l:1371, card:0, port:0,format:0,PCM_FORMAT_S16_LE=0,PCM_FORMAT_S24_LE=3,p_size:2048,p_count:4,channels:2, rate:48000 D/codec_audio_speaker( 102): #################get_normal_volume, headset_on =1096364328,headphone_on =4,speaker_on =0 V/codec_audio_speaker( 102): ****LINE:85,FUNC:get_normal_volume D/audio_hw_primary( 102): normal_get_play_volume nTmpVolume = 63 D/codec_audio_speaker( 102): #################set_normal_volume,new_vol=0,headset_on =4,headphone_on =0,speaker_on =0 V/codec_audio_speaker( 102): ****LINE:59,FUNC:set_normal_volume D/alsa_pcm( 102): pcm_open:,sparams.stop_threshold:6000, config->stop_threshold:0 D/codec_audio_speaker( 102): #################set_normal_volume,new_vol=63,headset_on =4,headphone_on =0,speaker_on =0 V/PhoneStatusBar( 481): setLightsOn(true) V/codec_audio_speaker( 102): ****LINE:59,FUNC:set_normal_volume D/PowerManagerNotifier( 432): onWakeLockReleased: flags=1, tag="AudioMix", packageName=media, ownerUid=0, ownerPid=102, workSource=null D/PowerManagerNotifier( 432): onWakeLockAcquired: flags=1, tag="AudioMix", packageName=media, ownerUid=0, ownerPid=102, workSource=WorkSource{1000} D/PhoneStatusBar( 481): setSystemUiVisibility vis=0 mask=1 oldVal=0 newVal=0 diff=0 D/Surface ( 949): Surface::queueBuffer [290, 812, 572, 860] D/PowerManagerNotifier( 432): onWakeLockReleased: flags=1, tag="AudioMix", packageName=media, ownerUid=0, ownerPid=102, workSource=WorkSource{1000} D/PowerManagerNotifier( 432): onWakeLockAcquired: flags=1, tag="AudioMix", packageName=media, ownerUid=0, ownerPid=102, workSource=null D/SurfaceFlinger( 100): doComposeSurfaces---count = 3, timer = 56250 D/hwcomposer( 100): --disp=0,ture_disp = 0, -psDisplay->force_flip=0 D/hwcomposer( 100): ---UpdateRectCount=1-sunxi_set commit_time = 2955805085575 D/hwcomposer( 100): -------commit_data.force_flip[0] =0 D/hwcomposer( 100): request ratate module err E/ion ( 100): ioctl c0084907 failed with code -1: Bad file number E/ion ( 100): ioctl c0084907 failed with code -1: Bad file number E/ion ( 100): ioctl c0084907 failed with code -1: Bad file number D/Process ( 432): setProcessGroup: ^^^ pid 966 (com.android.defcontainer)
RuntimeException: bad array lengths
Fatal Exception: java.lang.RuntimeException: bad array lengths at android.os.Parcel.readIntArray(Parcel.java:926) at android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag(INotificationManager.java:777) at android.app.NotificationManager.notify(NotificationManager.java:272) at android.app.NotificationManager.notify(NotificationManager.java:211) at cc.netpas.android_firewall.service.BackgroundDaemon$3.run(BackgroundDaemon.java:297) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:158) at android.os.HandlerThread.run(HandlerThread.java:61) 设置通知栏时会发生以上错误,有哪位大神指点指点 这是代码: private Runnable updateConnectedTimer = new Runnable() { @Override public void run() { if (BackgroundDaemon.this.connectedTime == 0) { BackgroundDaemon.this.connectedTime = System.currentTimeMillis(); } long resultTime = System.currentTimeMillis() - connectedTime; Notification notification = showNotification(BackgroundDaemon.this, "", Utils.getElapsedTimeInFormat(resultTime)); notificationManager.notify(0x100, notification); // } if (handler != null) { handler.postDelayed(this, 1000); } } };
安卓7.1上原生的Launcher2运行报错
我用安卓7.1代码里的Launcher2替代原来的Launcher后,开机无法启动桌面,强制停止,大神们帮忙看看是什么问题,感激不尽 01-01 00:02:31.297 E/AndroidRuntime( 7262): Process: com.android.launcher, PID: 7262 01-01 00:02:31.297 E/AndroidRuntime( 7262): DeadSystemException: The system died; earlier logs will point to the root cause 01-01 00:02:31.299 W/ActivityManager( 4362): Process com.android.launcher has crashed too many times: killing! 01-01 00:02:31.299 W/ActivityManager( 4362): Force finishing activity com.android.launcher/com.android.launcher2.Launcher 01-01 00:02:31.304 I/ActivityManager( 4362): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000100 cmp=com.android.launcher/com.android.launcher2.Launcher} from uid 0 on display 0 01-01 00:02:31.306 W/WindowManager( 4362): Failed looking up window 01-01 00:02:31.306 W/WindowManager( 4362): java.lang.IllegalArgumentException: Requested window android.view.ViewRootImpl$W@8d24662 does not exist 01-01 00:02:31.306 W/WindowManager( 4362): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9415) 01-01 00:02:31.306 W/WindowManager( 4362): at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9406) 01-01 00:02:31.306 W/WindowManager( 4362): at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2387) 01-01 00:02:31.306 W/WindowManager( 4362): at com.android.server.wm.Session.remove(Session.java:193) 01-01 00:02:31.306 W/WindowManager( 4362): at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3290) 01-01 00:02:31.306 W/WindowManager( 4362): at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5917) 01-01 00:02:31.306 W/WindowManager( 4362): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3626) 01-01 00:02:31.306 W/WindowManager( 4362): at android.os.Handler.dispatchMessage(Handler.java:102) 01-01 00:02:31.306 W/WindowManager( 4362): at android.os.Looper.loop(Looper.java:154) 01-01 00:02:31.306 W/WindowManager( 4362): at android.os.HandlerThread.run(HandlerThread.java:61) 01-01 00:02:31.306 W/WindowManager( 4362): at com.android.server.ServiceThread.run(ServiceThread.java:46) 01-01 00:02:31.309 I/ActivityManager( 4362): Killing 7262:com.android.launcher/1000 (adj 0): crash 01-01 00:02:31.309 D/ActivityManager( 4362): cleanUpApplicationRecord -- 7262 01-01 00:02:31.310 I/libprocessgroup( 4362): Killing pid 7281 in uid 1000 as part of process group 7262 01-01 00:02:31.325 I/ActivityManager( 4362): Start proc 7284:com.android.launcher/1000 for activity com.android.launcher/com.android.launcher2.Launcher 01-01 00:02:31.353 W/System ( 7284): ClassLoader referenced unknown path: /system/priv-app/Launcher2/lib/arm64 01-01 00:02:31.357 W/art ( 7284): JIT profile information will not be recorded: profile file does not exits. 01-01 00:02:31.366 W/ContextImpl( 7284): Failed to ensure /data/user_de/0/com.android.launcher/code_cache: mkdir failed: EACCES (Permission denied) 01-01 00:02:31.386 D/FrameBuffer( 4029): GLES, req offset: 1080 01-01 00:02:31.539 W/WallpaperManager( 7284): WallpaperService not running 01-01 00:02:31.539 E/AndroidRuntime( 7284): FATAL EXCEPTION: setWallpaperDimension 01-01 00:02:31.539 E/AndroidRuntime( 7284): Process: com.android.launcher, PID: 7284 01-01 00:02:31.539 E/AndroidRuntime( 7284): DeadSystemException: The system died; earlier logs will point to the root cause 01-01 00:02:31.541 W/ActivityManager( 4362): Force finishing activity com.android.launcher/com.android.launcher2.Launcher
求助UI线程问题,Only the original threa
com.example.joey.lbstest E/AndroidRuntime: FATAL EXCEPTION: LocationClient Process: com.example.joey.lbstest, PID: 6619 android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6916) at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:1080) at android.view.View.requestLayout(View.java:19664) at android.view.View.requestLayout(View.java:19664) at android.view.View.requestLayout(View.java:19664) at android.view.View.requestLayout(View.java:19664) at android.view.View.requestLayout(View.java:19664) at android.view.View.requestLayout(View.java:19664) at android.view.View.requestLayout(View.java:19664) at android.widget.TextView.checkForRelayout(TextView.java:7370) at android.widget.TextView.setText(TextView.java:4482) at android.widget.TextView.setText(TextView.java:4339) at android.widget.TextView.setText(TextView.java:4314) at com.example.joey.lbstest.MainActivity$MyLocationListener.onReceiveLocation(MainActivity.java:91) at com.baidu.location.LocationClient.sendFirstLoc(Unknown Source) at com.baidu.location.LocationClient.access$3200(Unknown Source) at com.baidu.location.LocationClient$a.handleMessage(Unknown Source) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:160) at android.os.HandlerThread.run(HandlerThread.java:61) 花了好长时间都没法解决,有大神帮忙吗0.0 MainActivity:
Android Camera2的使用到底是哪里错了?
![图片说明](https://img-ask.csdn.net/upload/201602/25/1456395899_171582.png) 代码如下: public class CameraTwoActivity extends AppCompatActivity implements TextureView.SurfaceTextureListener { @Bind(R.id.textureview) android.view.TextureView mPreviewView; private Handler mHandler; private HandlerThread mThreadHandler; private Size mPreviewSize=null; private CaptureRequest.Builder mPreviewBuilder; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.camera_activity); ButterKnife.bind(this); mThreadHandler = new HandlerThread("CAMERA2"); mThreadHandler.start(); mHandler = new Handler(mThreadHandler.getLooper()); mPreviewView.setSurfaceTextureListener(this); } @TargetApi(Build.VERSION_CODES.LOLLIPOP) public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { try { //获得CameraManager CameraManager cameraManager = (CameraManager) getSystemService(Context.CAMERA_SERVICE); //获得属性 CameraCharacteristics characteristics = cameraManager.getCameraCharacteristics("0"); //支持的STREAM CONFIGURATION StreamConfigurationMap map = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); //显示的size mPreviewSize = map.getOutputSizes(SurfaceTexture.class)[0]; //打开相机 if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) { // TODO: Consider calling // ActivityCompat#requestPermissions // here to request the missing permissions, and then overriding // public void onRequestPermissionsResult(int requestCode, String[] permissions, // int[] grantResults) // to handle the case where the user grants the permission. See the documentation // for ActivityCompat#requestPermissions for more details. return; } cameraManager.openCamera("0", mCameraDeviceStateCallback, mHandler); } catch (Exception e) { e.printStackTrace(); } } @Override public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { } @Override public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { return false; } //TextureView.SurfaceTextureListener @Override public void onSurfaceTextureUpdated(SurfaceTexture surface) { } private CameraDevice.StateCallback mCameraDeviceStateCallback = new CameraDevice.StateCallback() { @Override public void onOpened(CameraDevice camera) { try { startPreview(camera); } catch (CameraAccessException e) { e.printStackTrace(); } } @Override public void onDisconnected(CameraDevice camera) { } @Override public void onError(CameraDevice camera, int error) { } }; //开始预览,主要是camera.createCaptureSession这段代码很重要,创建会话 private void startPreview(CameraDevice camera) throws CameraAccessException { SurfaceTexture texture = mPreviewView.getSurfaceTexture(); texture.setDefaultBufferSize(mPreviewSize.getWidth(), mPreviewSize.getHeight()); Surface surface = new Surface(texture); Log.i(getClass().getName(),"1111"); try { mPreviewBuilder = camera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW); } catch (CameraAccessException e) { Log.i(getClass().getName(),"2222"); e.printStackTrace(); } Log.i(getClass().getName(),"3333"); mPreviewBuilder.addTarget(surface); camera.createCaptureSession(Arrays.asList(surface), mSessionStateCallback, mHandler); } private CameraCaptureSession.StateCallback mSessionStateCallback = new CameraCaptureSession.StateCallback() { @Override public void onConfigured(CameraCaptureSession session) { try { updatePreview(session); } catch (CameraAccessException e) { e.printStackTrace(); } } @Override public void onConfigureFailed(CameraCaptureSession session) { } }; private void updatePreview(CameraCaptureSession session) throws CameraAccessException { session.setRepeatingRequest(mPreviewBuilder.build(), null, mHandler); } }
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
此博客仅为我业余记录文章所用,发布到此,仅供网友阅读参考,如有侵权,请通知我,我会删掉。 补充 有不少读者留言说本文章没有用,因为天气预报直接打开手机就可以收到了,为何要多此一举发送到邮箱呢!!!那我在这里只能说:因为你没用,所以你没用!!! 这里主要介绍的是思路,不是天气预报!不是天气预报!!不是天气预报!!!天气预报只是用于举例。请各位不要再刚了!!! 下面是我会用到的两个场景: 每日下
面试官问我:什么是消息队列?什么场景需要他?用了会出现什么问题?
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸,打败了无数
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
MyBatis研习录(01)——MyBatis概述与入门
C语言自学完备手册(33篇) Android多分辨率适配框架 JavaWeb核心技术系列教程 HTML5前端开发实战系列教程 MySQL数据库实操教程(35篇图文版) 推翻自己和过往——自定义View系列教程(10篇) 走出思维困境,踏上精进之路——Android开发进阶精华录 讲给Android程序员看的前端系列教程(40集免费视频教程+源码) 版权声明 本文原创作者:谷哥的小弟 作者博客
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
你知道的越多,你不知道的越多 点赞再看,养成习惯 本文 GitHub https://github.com/JavaFamily 已收录,有一线大厂面试点思维导图,也整理了很多我的文档,欢迎Star和完善,大家面试可以参照考点复习,希望我们一起有点东西。 前前言 为啥今天有个前前言呢? 因为你们的丙丙啊,昨天有牌面了哟,直接被微信官方推荐,知乎推荐,也就仅仅是还行吧(心里乐开花)
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
Python爬虫精简步骤1 获取数据
爬虫的工作分为四步: 1.获取数据。爬虫程序会根据我们提供的网址,向服务器发起请求,然后返回数据。 2.解析数据。爬虫程序会把服务器返回的数据解析成我们能读懂的格式。 3.提取数据。爬虫程序再从中提取出我们需要的数据。 4.储存数据。爬虫程序把这些有用的数据保存起来,便于你日后的使用和分析。 这一篇的内容就是:获取数据。 首先,我们将会利用一个强大的库——requests来获取数据。 在电脑上安装
Python绘图,圣诞树,花,爱心 | Turtle篇
1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle() circle.shape('circle') circle.color('red') circle.speed('fastest') circle.up() square = turtle.Turtle()
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 更多有趣分析教程,扫描下方二维码关注vx公号「裸睡的猪」 即可查看! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布
web前端javascript+jquery知识点总结
Javascript javascript 在前端网页中占有非常重要的地位,可以用于验证表单,制作特效等功能,它是一种描述语言,也是一种基于对象(Object)和事件驱动并具有安全性的脚本语言 ,语法同java类似,是一种解释性语言,边执行边解释。 JavaScript的组成: ECMAScipt 用于描述: 语法,变量和数据类型,运算符,逻辑控制语句,关键字保留字,对象。 浏览器对象模型(Br
Python实战:抓肺炎疫情实时数据,画2019-nCoV疫情地图
文章目录1. 前言2. 数据下载3. 数据处理4. 数据可视化 1. 前言 今天,群里白垩老师问如何用python画武汉肺炎疫情地图。白垩老师是研究海洋生态与地球生物的学者,国家重点实验室成员,于不惑之年学习python,实为我等学习楷模。先前我并没有关注武汉肺炎的具体数据,也没有画过类似的数据分布图。于是就拿了两个小时,专门研究了一下,遂成此文。 2月6日追记:本文发布后,腾讯的数据源多次变更u
听说想当黑客的都玩过这个Monyer游戏(1~14攻略)
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
渗透测试-灰鸽子远控木马
木马概述 灰鸽子( Huigezi),原本该软件适用于公司和家庭管理,其功能十分强大,不但能监视摄像头、键盘记录、监控桌面、文件操作等。还提供了黑客专用功能,如:伪装系统图标、随意更换启动项名称和表述、随意更换端口、运行后自删除、毫无提示安装等,并采用反弹链接这种缺陷设计,使得使用者拥有最高权限,一经破解即无法控制。最终导致被黑客恶意使用。原作者的灰鸽子被定义为是一款集多种控制方式于一体的木马程序
Python:爬取疫情每日数据
前言 有部分同学留言说为什么412,这是因为我代码里全国的cookies需要你自己打开浏览器更新好后替换,而且这个cookies大概只能持续20秒左右! 另外全国卫健委的数据格式一直在变,也有可能会导致爬取失败! 我现在已根据2月14日最新通报稿的格式修正了! 目前每天各大平台,如腾讯、今日头条都会更新疫情每日数据,他们的数据源都是一样的,主要都是通过各地的卫健委官网通报。 为什么已经有大量平台做
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。   再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。   下文是原回答,希望能对你能有所启发。   如果我说,这个世界上人真的分三六九等,
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计
Python新型冠状病毒疫情数据自动爬取+统计+发送报告+数据屏幕(三)发送篇
今天介绍的项目是使用 Itchat 发送统计报告 项目功能设计: 定时爬取疫情数据存入Mysql 进行数据分析制作疫情报告 使用itchat给亲人朋友发送分析报告(本文) 基于Django做数据屏幕 使用Tableau做数据分析 来看看最终效果 目前已经完成,预计2月12日前更新 使用 itchat 发送数据统计报告 itchat 是一个基于 web微信的一个框架,但微信官方并不允
作为程序员的我,大学四年一直自学,全靠这些实用工具和学习网站!
我本人因为高中沉迷于爱情,导致学业荒废,后来高考,毫无疑问进入了一所普普通通的大学,实在惭愧...... 我又是那么好强,现在学历不行,没办法改变的事情了,所以,进入大学开始,我就下定决心,一定要让自己掌握更多的技能,尤其选择了计算机这个行业,一定要多学习技术。 在进入大学学习不久后,我就认清了一个现实:我这个大学的整体教学质量和学习风气,真的一言难尽,懂的人自然知道怎么回事? 怎么办?我该如何更好的提升
粒子群算法求解物流配送路线问题(python)
粒子群算法求解物流配送路线问题(python) 1.查找论文文献 找一篇物流配送路径优化+粒子群算法求解的论文 参考文献:基于混沌粒子群算法的物流配送路径优化 2.了解粒子群算法的原理 讲解通俗易懂,有数学实例的博文:https://blog.csdn.net/daaikuaichuan/article/details/81382794 3.确定编码方式和解码策略 3.1编码方式 物流配送路线的
教你如何编写第一个简单的爬虫
很多人知道爬虫,也很想利用爬虫去爬取自己想要的数据,那么爬虫到底怎么用呢?今天就教大家编写一个简单的爬虫。 下面以爬取笔者的个人博客网站为例获取第一篇文章的标题名称,教大家学会一个简单的爬虫。 第一步:获取页面 #!/usr/bin/python # coding: utf-8 import requests #引入包requests link = "http://www.santostang.
前端JS初级面试题二 (。•ˇ‸ˇ•。)老铁们!快来瞧瞧自己都会了么
1. 传统事件绑定和符合W3C标准的事件绑定有什么区别? 传统事件绑定 &lt;div onclick=""&gt;123&lt;/div&gt; div1.onclick = function(){}; &lt;button onmouseover=""&gt;&lt;/button&gt; 注意: 如果给同一个元素绑定了两次或多次相同类型的事件,那么后面的绑定会覆盖前面的绑定 (不支持DOM事...
相关热词 c# 压缩图片好麻烦 c#计算数组中的平均值 c#获取路由参数 c#日期精确到分钟 c#自定义异常必须继承 c#查表并返回值 c# 动态 表达式树 c# 监控方法耗时 c# listbox c#chart显示滚动条
立即提问