xiaofans / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Test run failed: Instrumentation run failed due to 'Process crashed.' #445

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. I create a simple project, a black box test , i have only the APK
2. I resign it
3. launch the junit

What is the expected output? What do you see instead?
i see the error 

Test run failed: Instrumentation run failed due to 'Process crashed.'

log cat

05-02 18:08:38.509: E/QcrilMsgTunnelSocket(356): 
IOExceptionjava.io.IOException: No such file or directoryReason: No such file 
or directory
05-02 18:08:39.950: E/dalvikvm(11535): Class lookup Ljava/lang/Class; attempted 
with exception pending
05-02 18:08:39.990: E/dalvikvm(11535): VM aborting
05-02 18:08:39.990: A/libc(11535): Fatal signal 11 (SIGSEGV) at 0xdeadd00d 
(code=1), thread 11535 (om.rcs.city1tap)
05-02 18:08:40.911: E/LightSensor(774): Light old sensor_state 0, new 
sensor_state : 128 en : 1
05-02 18:08:41.171: E/MP-Decision(1861): num online cores: 4 reqd : 3 available 
: 4 rq_depth:1.600000 hotplug_avg_load_dw: 89
05-02 18:08:41.171: E/MP-Decision(1861): DOWN cpu:3 core_idx:3 Ns:3.100000 
Ts:240 total_time_down:245.00

What version of the product are you using? On what operating system?
robotium 4.1, android 4.2.2

Please provide any additional information below.

i check all the jar, build path, the manifest is corret, the 
LAUNCHER_ACTIVITY_FULL_CLASSNAME also.

i don't understand what is.. i see the FATAL SIGNAL on "..thread 11535 
(om.app.appundertest)" maybe an error of the apk ? or somethhing related of the 
apk structure?

Original issue reported on code.google.com by luca.c...@gmail.com on 2 May 2013 at 4:19

GoogleCodeExporter commented 9 years ago
this is the code:

package com.example.city;
import com.jayway.android.robotium.solo.Solo;
import java.util.Random;
import android.test.ActivityInstrumentationTestCase2;
@SuppressWarnings("unchecked")
public class MainActivity extends ActivityInstrumentationTestCase2{
private static final String TARGET_PACKAGE_ID="com.rcs.city1tap";
private static final String 
LAUNCHER_ACTIVITY_FULL_CLASSNAME="com.rcs.city1tap.HomeSplash";
private static Class launcherActivityClass;
static{
try
{
launcherActivityClass=Class.forName(LAUNCHER_ACTIVITY_FULL_CLASSNAME);
} catch (ClassNotFoundException e){
throw new RuntimeException(e);
}
}
public MainActivity()throws ClassNotFoundException{
super(launcherActivityClass);
}
private Solo solo;
@Override
protected void setUp() throws Exception
{
solo = new Solo(getInstrumentation(),getActivity());
}
public void testDisplayBlackBox() {

    solo.sleep(6000);
    solo.clickOnButton(2);
    String name = "name" + Math.random();
    String surn = "surn" + Math.random();   
solo.goBack();
solo.clickOnMenuItem("Logout");

}
@Override
public void tearDown() throws Exception {
solo.finishOpenedActivities();
}
}

Original comment by luca.c...@gmail.com on 2 May 2013 at 4:27

GoogleCodeExporter commented 9 years ago
It happens sometime when running on the emulator. Try to run on a real device 
instead. 

Original comment by renasr...@gmail.com on 2 May 2013 at 6:08

GoogleCodeExporter commented 9 years ago
Following the Rena's comments, if this error still comes on real device, please 
send the apk. We will see it.

Regards,
 -Navees

Original comment by luckynav...@gmail.com on 2 May 2013 at 6:11

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
happens on device and emulator

Original comment by luca.c...@gmail.com on 2 May 2013 at 6:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
i cannot send the APK, seems to big ..

Which can be the root causes? i try everything but i cannot resolve, the APK 
under test is under development, has bugs, but we can open it without any 
problems, can depends on some bug of the APK?

thanks

Original comment by luca.c...@gmail.com on 3 May 2013 at 8:10

GoogleCodeExporter commented 9 years ago
i put all the log:

05-03 14:35:23.296: E/MP-Decision(1861): UP cpu:2 core_idx:2 Nw:2.700000 Tw:90 
total_time_up:98.000000
05-03 14:35:23.346: E/MP-Decision(1861): num online cores: 3 reqd : 4 available 
: 4 rq_depth:4.000000 hotplug_avg_load_dw: 194
05-03 14:35:23.346: E/MP-Decision(1861): UP cpu:1 core_idx:1 Nw:1.900000 Tw:140 
total_time_up:0.000000
05-03 14:35:23.346: E/MP-Decision(1861): UP cpu:2 core_idx:2 Nw:2.700000 Tw:90 
total_time_up:0.000000
05-03 14:35:23.346: E/MP-Decision(1861): UP cpu:3 core_idx:3 Nw:3.500000 Tw:90 
total_time_up:145.000000
05-03 14:35:23.587: E/installd(219): ECS_ECS: * do_linklib  pkg 
[com.example.city]
05-03 14:35:23.587: E/installd(219): ECS_ECS: do_linklib Normal package
05-03 14:35:23.587: E/installd(219): ECS_ECS: Restting the data Path to -data-  
ret [0]
05-03 14:35:23.587: E/installd(219): ECS_ECS: * do_dexopt  pkg 
[/data/app/com.example.city-1.apk]
05-03 14:35:23.587: E/installd(219): ECS_ECS: do_dexopt Normal package
05-03 14:35:23.907: E/installd(219): ECS_ECS: Restting the data Path to -data-  
ret [0]
05-03 14:35:23.997: E/installd(219): ECS_ECS: * do_move_dex  pkg 
[/data/app/com.example.city-1.apk]
05-03 14:35:23.997: E/installd(219): ECS_ECS: do_move_dex Normal package
05-03 14:35:23.997: E/installd(219): ECS_ECS: Restting the data Path to -data-  
ret [0]
05-03 14:35:24.047: E/MP-Decision(1861): num online cores: 4 reqd : 3 available 
: 4 rq_depth:1.100000 hotplug_avg_load_dw: 111
05-03 14:35:24.047: E/MP-Decision(1861): DOWN cpu:3 core_idx:3 Ns:3.100000 
Ts:240 total_time_down:245.000000
05-03 14:35:24.197: E/MP-Decision(1861): num online cores: 3 reqd : 4 available 
: 4 rq_depth:5.300000 hotplug_avg_load_dw: 122
05-03 14:35:24.197: E/MP-Decision(1861): UP cpu:1 core_idx:1 Nw:1.900000 Tw:140 
total_time_up:0.000000
05-03 14:35:24.197: E/MP-Decision(1861): UP cpu:2 core_idx:2 Nw:2.700000 Tw:90 
total_time_up:0.000000
05-03 14:35:24.197: E/MP-Decision(1861): UP cpu:3 core_idx:3 Nw:3.500000 Tw:90 
total_time_up:98.000000
05-03 14:35:24.548: E/AppsCustomizePagedView(4204): Widget 
ComponentInfo{com.sec.android.widgetapp.easyfavoritescontactswidget/com.sec.andr
oid.widgetapp.easyfavoritescontactswidget.SeniorFavoriteWidgetProviderLarge} 
can not fit on this device (750, 1650)
05-03 14:35:24.748: E/AppsCustomizePagedView(4204): Widget 
ComponentInfo{com.sec.android.widgetapp.ap.yahoostock.stockclock/com.sec.android
.widgetapp.ap.yahoostock.stockclock.StockClock_Integration} can not fit on this 
device (1053, 660)
05-03 14:35:25.899: E/BrcmNfcJni(11522): SecureElement::nfaHciCallback: unknown 
event code=0x16 ????
05-03 14:35:26.039: E/BrcmNfcJni(11522): nfcManager_doDeselectSecureElement: 
already deselected
05-03 14:35:26.039: E/BrcmNfcJni(11522): nfcManager_enableDiscovery: already 
polling
05-03 14:35:26.409: E/dalvikvm(23459): Class lookup Ljava/lang/Class; attempted 
with exception pending
05-03 14:35:26.449: E/dalvikvm(23459): VM aborting
05-03 14:35:26.449: A/libc(23459): Fatal signal 11 (SIGSEGV) at 0xdeadd00d 
(code=1), thread 23459 (om.rcs.city1tap)
05-03 14:35:26.990: E/QcrilMsgTunnelSocket(20313): 
IOExceptionjava.io.IOException: No such file or directoryReason: No such file 
or directory
05-03 14:35:27.851: E/MP-Decision(1861): num online cores: 4 reqd : 2 available 
: 4 rq_depth:1.300000 hotplug_avg_load_dw: 89
05-03 14:35:27.851: E/MP-Decision(1861): DOWN cpu:3 core_idx:3 Ns:3.100000 
Ts:240 total_time_down:245.000000

Original comment by luca.c...@gmail.com on 3 May 2013 at 12:37