Try to run host test using test.py but Failed to create runtime

124 views
Skip to first unread message

Nicholas.J.E

unread,
Apr 16, 2020, 10:38:16 AM4/16/20
to Android Building
- Steps to reproduce the problem (including sample code if appropriate).
  1. download aosp codes: repo init -u https://android.googlesource.com/platform/manifest -b master; repo sync
  2. mmma art; mmma art/test
  3. art/test.py --host -r -t 001-HelloWorld
- What happened.
  bunch of error shown up

I'm new to aosp and try to build art, run some basic test and see what would happen, but i cann't find any solutions to problem below, any advice?  thanks for advance.

----------------------start of error message ------------------------------
10:54:57 Build sandboxing disabled due to nsjail error.
Concurrency: 72                                                                                                                                                                                                                                          
[ 10% 1/10 ] test-art-host-run-test-debug-prebuild-speed-profile-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32 FAIL                                                                                                                                                                                                                                       
[ 20% 2/10 ] test-art-host-run-test-debug-prebuild-interp-ac-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32 FAIL                                                                                                                                                                                                                                         
[ 30% 3/10 ] test-art-host-run-test-debug-prebuild-optimizing-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32 FAIL                                                                                                                                                                                                                                           
[ 40% 4/10 ] test-art-host-run-test-debug-prebuild-jit-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32 FAIL                                                                                                                                                                                                                                          
[ 50% 5/10 ] test-art-host-run-test-debug-prebuild-interpreter-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32 FAIL                                                                                                                                                                                                                                           
[ 60% 6/10 ] test-art-host-run-test-debug-prebuild-optimizing-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld64 PASS                                                                                                                                                                                                                                          
[ 70% 7/10 ] test-art-host-run-test-debug-prebuild-interpreter-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld64 PASS                                                                                                                                                                                                                                       
[ 80% 8/10 ] test-art-host-run-test-debug-prebuild-interp-ac-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld64 PASS                                                                                                                                                                                                                                        
[ 90% 9/10 ] test-art-host-run-test-debug-prebuild-jit-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld64 PASS                                                                                                                                                                                                                                        
[ 100% 10/10 ] test-art-host-run-test-debug-prebuild-speed-profile-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld64 PASS                                                                                                                                                                                                                                        
5/10 (50%) tests passed.
FAILED: 
test-art-host-run-test-debug-prebuild-speed-profile-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32
/art/test/run-test  --output-path /tmp/test-art-67iue7mh/tmp1wrbw543 --always-clean  --host --prebuild --compact-dex-level fast --random-profile --no-relocate --runtime-option -Xcheck:jni  001-HelloWorld
/art/test/001-HelloWorld: building...
/art/test/001-HelloWorld: running...
run exit status: 2
/art/test/001-HelloWorld: FAILED!
 
#################### info
# Imported from oat test. Print "Hello World."
#################### diffs
--- expected.txt 2020-04-14 15:20:04.086221795 +0800
+++ output.txt 2020-04-16 10:54:59.286624708 +0800
@@ -1 +1,4 @@
-Hello, world!
+dex2oatd E 04-16 10:54:59 62932 62932 image_space.cc:3708] Could not create image space with image file '/out/host/linux-x86/framework/core.art:*'. Attempting to fall back to imageless running. Error was: Cannot compile image to /tmp/test-art-67iue7mh/tmp1wrbw543/dalvik-cache/x86/out@host@linux-x86@framework@core.art: Image compilation disabled.
+dex2oatd E 04-16 10:54:59 62932 62932 runtime.cc:1416] Dex file fallback disabled, cannot continue without image.
+dex2oatd E 04-16 10:54:59 62932 62932 dex2oat.cc:2826] Failed to create runtime
+Dex2oat failed.
####################
 
001-HelloWorld files deleted from host 

test-art-host-run-test-debug-prebuild-interp-ac-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32
/art/test/run-test  --output-path /tmp/test-art-67iue7mh/tmpzb0jxazn --always-clean  --host --prebuild --compact-dex-level fast --interpreter --verify-soft-fail --no-relocate --runtime-option -Xcheck:jni  001-HelloWorld
/art/test/001-HelloWorld: building...
/art/test/001-HelloWorld: running...
run exit status: 2
/art/test/001-HelloWorld: FAILED!
 
#################### info
# Imported from oat test. Print "Hello World."
#################### diffs
--- expected.txt 2020-04-14 15:20:04.086221795 +0800
+++ output.txt 2020-04-16 10:54:59.322624706 +0800
@@ -1 +1,4 @@
-Hello, world!
+dex2oatd E 04-16 10:54:59 62985 62985 image_space.cc:3708] Could not create image space with image file '/out/host/linux-x86/framework/core.art:*'. Attempting to fall back to imageless running. Error was: Cannot compile image to /tmp/test-art-67iue7mh/tmpzb0jxazn/dalvik-cache/x86/out@host@linux-x86@framework@core.art: Image compilation disabled.
+dex2oatd E 04-16 10:54:59 62985 62985 runtime.cc:1416] Dex file fallback disabled, cannot continue without image.
+dex2oatd E 04-16 10:54:59 62985 62985 dex2oat.cc:2826] Failed to create runtime
+Dex2oat failed.
####################
 
001-HelloWorld files deleted from host 

test-art-host-run-test-debug-prebuild-optimizing-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32
/art/test/run-test  --output-path /tmp/test-art-67iue7mh/tmpl20g5a6r --always-clean  --host --prebuild --compact-dex-level fast --optimizing --no-relocate --runtime-option -Xcheck:jni  001-HelloWorld
/art/test/001-HelloWorld: building...
/art/test/001-HelloWorld: running...
run exit status: 2
/art/test/001-HelloWorld: FAILED!
 
#################### info
# Imported from oat test. Print "Hello World."
#################### diffs
--- expected.txt 2020-04-14 15:20:04.086221795 +0800
+++ output.txt 2020-04-16 10:54:59.322624706 +0800
@@ -1 +1,4 @@
-Hello, world!
+dex2oatd E 04-16 10:54:59 63063 63063 image_space.cc:3708] Could not create image space with image file '/out/host/linux-x86/framework/core.art:*'. Attempting to fall back to imageless running. Error was: Cannot compile image to /tmp/test-art-67iue7mh/tmpl20g5a6r/dalvik-cache/x86/out@host@linux-x86@framework@core.art: Image compilation disabled.
+dex2oatd E 04-16 10:54:59 63063 63063 runtime.cc:1416] Dex file fallback disabled, cannot continue without image.
+dex2oatd E 04-16 10:54:59 63063 63063 dex2oat.cc:2826] Failed to create runtime
+Dex2oat failed.
####################
 
001-HelloWorld files deleted from host 

test-art-host-run-test-debug-prebuild-jit-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32
/art/test/run-test  --output-path /tmp/test-art-67iue7mh/tmpm8ga17nf --always-clean  --host --prebuild --compact-dex-level fast --jit --no-relocate --runtime-option -Xcheck:jni  001-HelloWorld
/art/test/001-HelloWorld: building...
/art/test/001-HelloWorld: running...
run exit status: 2
/art/test/001-HelloWorld: FAILED!
 
#################### info
# Imported from oat test. Print "Hello World."
#################### diffs
--- expected.txt 2020-04-14 15:20:04.086221795 +0800
+++ output.txt 2020-04-16 10:54:59.322624706 +0800
@@ -1 +1,4 @@
-Hello, world!
+dex2oatd E 04-16 10:54:59 62971 62971 image_space.cc:3708] Could not create image space with image file '/out/host/linux-x86/framework/core.art:*'. Attempting to fall back to imageless running. Error was: Cannot compile image to /tmp/test-art-67iue7mh/tmpm8ga17nf/dalvik-cache/x86/out@host@linux-x86@framework@core.art: Image compilation disabled.
+dex2oatd E 04-16 10:54:59 62971 62971 runtime.cc:1416] Dex file fallback disabled, cannot continue without image.
+dex2oatd E 04-16 10:54:59 62971 62971 dex2oat.cc:2826] Failed to create runtime
+Dex2oat failed.
####################
 
001-HelloWorld files deleted from host 

test-art-host-run-test-debug-prebuild-interpreter-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32
/art/test/run-test  --output-path /tmp/test-art-67iue7mh/tmpo058m8fc --always-clean  --host --prebuild --compact-dex-level fast --interpreter --no-relocate --runtime-option -Xcheck:jni  001-HelloWorld
/art/test/001-HelloWorld: building...
/art/test/001-HelloWorld: running...
run exit status: 2
/art/test/001-HelloWorld: FAILED!
 
#################### info
# Imported from oat test. Print "Hello World."
#################### diffs
--- expected.txt 2020-04-14 15:20:04.086221795 +0800
+++ output.txt 2020-04-16 10:54:59.322624706 +0800
@@ -1 +1,4 @@
-Hello, world!
+dex2oatd E 04-16 10:54:59 63038 63038 image_space.cc:3708] Could not create image space with image file '/out/host/linux-x86/framework/core.art:*'. Attempting to fall back to imageless running. Error was: Cannot compile image to /tmp/test-art-67iue7mh/tmpo058m8fc/dalvik-cache/x86/out@host@linux-x86@framework@core.art: Image compilation disabled.
+dex2oatd E 04-16 10:54:59 63038 63038 runtime.cc:1416] Dex file fallback disabled, cannot continue without image.
+dex2oatd E 04-16 10:54:59 63038 63038 dex2oat.cc:2826] Failed to create runtime
+Dex2oat failed.
####################
 
001-HelloWorld files deleted from host 

----------
test-art-host-run-test-debug-prebuild-interp-ac-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32
test-art-host-run-test-debug-prebuild-interpreter-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32
test-art-host-run-test-debug-prebuild-jit-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32
test-art-host-run-test-debug-prebuild-optimizing-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32
test-art-host-run-test-debug-prebuild-speed-profile-no-relocate-ntrace-cms-checkjni-picimage-ndebuggable-no-jvmti-cdex-fast-001-HelloWorld32
['/art/test/testrunner/testrunner.py', '--host', '-t', '001-HelloWorld']

Orion Hodson

unread,
Apr 16, 2020, 11:58:35 AM4/16/20
to android-...@googlegroups.com
Hi Nicolas

There is an overview of ART test scripts in art/test/README.md.

If you want to run ART tests on host, build the minimal test dependencies using:

  art/tools/buildbot-build.sh --host

and then invoke test.py with --host as an argument.

If you want to run device tests, follw the instructions in art/test/README.chroot.md.

Thanks
Orion

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/a061c9e4-9d9e-42c0-acf9-4d7ff523381a%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages