久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

由于“進程崩潰",檢測運行失敗.經(jīng)過長時間

Instrumentation run failed due to #39;Process crashed.#39; after long tests execution(由于“進程崩潰,檢測運行失敗.經(jīng)過長時間的測試執(zhí)行)
本文介紹了由于“進程崩潰",檢測運行失敗.經(jīng)過長時間的測試執(zhí)行的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

限時送ChatGPT賬號..

我有大約 700 個測試要執(zhí)行.當(dāng)我全部運行它們時,引發(fā)了崩潰

I have about 700 tests to execute. When I run them all, there raised a crash

由于進程崩潰",儀器運行失敗."檢查設(shè)備詳細(xì)信息.測試運行失敗:檢測運行失敗由于進程崩潰".

"Instrumentation run failed due to 'Process crashed.'" Check device logcat for details. Test running failed: Instrumentation run failed due to 'Process crashed.'

經(jīng)過一段時間的執(zhí)行,大約 10 分鐘和約 360-370 次執(zhí)行測試.

after some time of execution, about 10 minutes and ~360-370th executed test.

Logcat 不包含有關(guān)此崩潰的任何信息

Logcat doesn't contain any information about this crash

它適用于從 Android Studio 運行,從 cmd(在 PC 和 Mac 上).使用的設(shè)備 - Android 4.1.1 上的三星 S3

It is applicable by running from Android Studio, from cmd (on PC and Mac). Device used - Samsung S3 on Android 4.1.1

build.gradle 文件:

build.gradle file:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 18
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.xxx.yyy"
        minSdkVersion 9
        targetSdkVersion 18

        testApplicationId "com.xxx.zzz"
        testInstrumentationRunner "android.test.InstrumentationTestRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }

    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
    }

    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }

    project.gradle.taskGraph.whenReady {
        connectedAndroidTestDebug  {
            ignoreFailures = true
        }
    }
}


repositories {
    // The local cache should be used first
    mavenLocal()

    jcenter()
    mavenCentral()
}

dependencies {
    compile 'junit:junit:4.12'

    compile fileTree(include: '*.jar', dir: 'libs')
}

AndroidManifest.xml

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.xxx.yyy"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />
        <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.INTERNET" /> 
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.CAMERA.autoFocus" />
    <uses-feature android:name="android.hardware.camera" />
    <uses-feature android:name="android.hardware.camera.autofocus" />
    <application
        android:allowBackup="true"
        android:largeHeap="true"
        android:icon="@drawable/ic_launcher"

        android:label="@string/app_name"
        android:theme="@style/AppTheme" >

        <activity
            android:name="com.xxx.yyy.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>
        <meta-data
            android:name="roboguice.annotations.packages"
            android:value="com.xxx"/>
        <meta-data
            android:name="roboguice.modules"
            android:value="com.xxx.yyy.MainModule"/>
    </application>

</manifest>

還要補充一點:在我之前發(fā)布的代碼中,不會發(fā)生這種崩潰,但我找不到導(dǎo)致崩潰的確切變化.

One more to add: on previous released of my code this crash is not happen, but I can't find what exactly change gave a crash.

請幫我解決這個問題,我試圖在兩周內(nèi)理解它.

Please help me with this issue, I'm trying to understand it over two weeks.

推薦答案

我不知道你的問題是否仍然存在,但我自己也遇到過這樣的問題.三星設(shè)備上的某些 Android 版本存在一個錯誤:它們沒有正確關(guān)閉文件描述符,從而導(dǎo)致文件描述符泄漏.創(chuàng)建 1028 個描述符后 - 進程崩潰.

I don't know if the problem is still actual for you, but I have encountered such problem myself. There was a bug in certain Android versions on Samsung devices: they didn't close file descriptors properly thus creating file descriptors leak. After 1028 descriptors are created - the process crashes.

http://code.google.com/p/android/問題/詳細(xì)信息?id=32470

為了避免這種情況,我不得不在我的測試中減少 HandlerThreads 的使用,并在可能的情況下重新使用它們.但更好的解決方案可能是更換設(shè)備.

To avoid this I had to cut on the usage of HandlerThreads in my tests, and re-use them where possible. But the better solution would be to change the device, probably.

這篇關(guān)于由于“進程崩潰",檢測運行失敗.經(jīng)過長時間的測試執(zhí)行的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Cut, copy, paste in android(在android中剪切、復(fù)制、粘貼)
android EditText blends into background(android EditText 融入背景)
Change Line Color of EditText - Android(更改 EditText 的線條顏色 - Android)
EditText showing numbers with 2 decimals at all times(EditText 始終顯示帶 2 位小數(shù)的數(shù)字)
Changing where cursor starts in an expanded EditText(更改光標(biāo)在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
主站蜘蛛池模板: 日韩中文字幕第一页 | 国产91九色 | 一二三区在线 | 亚洲风情在线观看 | 日韩欧美国产精品一区二区三区 | 日韩福利电影 | 色综合一区 | 亚洲精品二区 | 日韩免费视频一区二区 | 精品1区| 偷拍自拍网 | 成人三区 | 青青久久久| 欧美日韩电影在线 | 在线免费观看亚洲 | 国产视频中文字幕 | 在线a视频网站 | 成人免费看片又大又黄 | 日韩在线视频一区 | 欧洲国产精品视频 | 夜夜骚视频 | 亚洲视频在线看 | 免费看国产一级特黄aaaa大片 | 91免费电影| 日本不卡免费新一二三区 | 国产精品亚洲欧美日韩一区在线 | 大陆一级毛片免费视频观看 | 一区二区在线观看免费视频 | 狠狠狠色丁香婷婷综合久久五月 | 国产在线精品一区 | 岛国在线免费观看 | av免费观看在线 | 五月天婷婷激情 | 女同久久另类99精品国产 | 日本精品一区二区三区在线观看视频 | 欧美成人精品 | 国产成人精品免费视频大全最热 | 精品一区二区三区中文字幕 | 中文字幕一区二区三区不卡在线 | 国产一区二区三区四区五区加勒比 | 久久久久久久一区 |