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

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

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

問題描述

限時送ChatGPT賬號..

我有大約 700 個測試要執行.當我全部運行它們時,引發了崩潰

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

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

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

經過一段時間的執行,大約 10 分鐘和約 360-370 次執行測試.

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

Logcat 不包含有關此崩潰的任何信息

Logcat doesn't contain any information about this crash

它適用于從 Android Studio 運行,從 cmd(在 PC 和 Mac 上).使用的設備 - 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>

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

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.

請幫我解決這個問題,我試圖在兩周內理解它.

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

推薦答案

我不知道你的問題是否仍然存在,但我自己也遇到過這樣的問題.三星設備上的某些 Android 版本存在一個錯誤:它們沒有正確關閉文件描述符,從而導致文件描述符泄漏.創建 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/問題/詳細信息?id=32470

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

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.

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

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

相關文檔推薦

Cut, copy, paste in android(在android中剪切、復制、粘貼)
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 位小數的數字)
Changing where cursor starts in an expanded EditText(更改光標在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
主站蜘蛛池模板: 国产欧美日韩一区二区三区在线 | 视频二区 | 国产在线观看av | 欲色av | 久久久久久久久蜜桃 | 久久久久久亚洲 | 日韩中文字幕一区二区 | 国产精品国产成人国产三级 | 国产精品不卡 | 国产视频精品免费 | 成人精品鲁一区一区二区 | 日本成人在线免费视频 | 中国黄色在线视频 | 视频精品一区二区三区 | a在线视频 | 日韩色在线 | 日韩在线观看一区二区三区 | 国产传媒在线观看 | av黄色国产| 成人国产一区二区三区精品麻豆 | 黄色一级免费观看 | 日韩精品在线一区 | 亚洲国产精品99久久久久久久久 | 日韩三极 | 久久精品小短片 | av首页在线| 成人a视频在线观看 | 国产成人精品一区二区三区网站观看 | 91p在线观看 | 日韩不卡视频在线观看 | 精品久久久久久久久久久久久久 | 亚洲免费一区 | 久久99精品久久久水蜜桃 | 91色视频在线观看 | 91av久久久| www国产成人免费观看视频,深夜成人网 | 岛国av一区二区三区 | 欧美 日韩 综合 | 91久久精品日日躁夜夜躁国产 | 伊人网91 | 日韩三级电影一区二区 |