Re: [android-building] Emulator does soft reboot when build is instrumented (EMMA_INSTRUMENT_STATIC=true)

170 views
Skip to first unread message

Ying Wang

unread,
May 7, 2013, 1:28:10 PM5/7/13
to Android Building
I don't know that specific error, but you shouldn't use EMMA_INSTRUMENT_STATIC in this case. 
Use just EMMA_INSTRUMENT instead:
$ rm -rf out # We need a clean build
$ make -j showcommands EMMA_INSTRUMENT=true

EMMA_INSTRUMENT_STATIC means the the emma.jar will be built into every target Java module;
while EMMA_INSTRUMENT will build emma.jar into core.jar and it's shared by all modules.


On Mon, May 6, 2013 at 9:49 PM, Senthil R <pr.sent...@gmail.com> wrote:
Hello,

I tried generic build on 4.2.2 branch and built the code using below command

EMMA_INSTRUMENT_STATIC=true
make -j4

When I started the emulator, emulator stuck on the android screen itself. 

In adb logcat i was able to see below error message.

I/System.out( 1900): EMMA: collecting runtime coverage data ...
W/System.err( 1900): java.net.BindException: bind failed: EADDRINUSE (Address already in use)
W/System.err( 1900):    at libcore.io.IoBridge.bind(IoBridge.java:89)
W/System.err( 1900):    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:150)
W/System.err( 1900):    at java.net.ServerSocket.<init>(ServerSocket.java:100)
W/System.err( 1900):    at java.net.ServerSocket.<init>(ServerSocket.java:69)
W/System.err( 1900):    at com.vladium.emma.rt.RTController.start(RTController.java:99)
W/System.err( 1900):    at com.vladium.emma.rt.RT.reset(RT.java:222)
W/System.err( 1900):    at com.vladium.emma.rt.RT.<clinit>(RT.java:540)
W/System.err( 1900):    at com.android.providers.settings.SettingsProvider.$VRi(SettingsProvider.java)
W/System.err( 1900):    at com.android.providers.settings.SettingsProvider.<clinit>(SettingsProvider.java)
W/System.err( 1900):    at java.lang.Class.newInstanceImpl(Native Method)
W/System.err( 1900):    at java.lang.Class.newInstance(Class.java:1319)
W/System.err( 1900):    at android.app.ActivityThread.installProvider(ActivityThread.java:4862)
W/System.err( 1900):    at android.app.ActivityThread.installContentProviders(ActivityThread.java:4487)
W/System.err( 1900):    at android.app.ActivityThread.installSystemProviders(ActivityThread.java:5025)
W/System.err( 1900):    at com.android.server.am.ActivityManagerService.installSystemProviders(ActivityManagerService.java:6943)
W/System.err( 1900):    at com.android.server.ServerThread.run(SystemServer.java:341)
W/System.err( 1900): Caused by: libcore.io.ErrnoException: bind failed: EADDRINUSE (Address already in use)
W/System.err( 1900):    at libcore.io.Posix.bind(Native Method)
W/System.err( 1900):    at libcore.io.ForwardingOs.bind(ForwardingOs.java:40)
W/System.err( 1900):    at libcore.io.IoBridge.bind(IoBridge.java:87)
W/System.err( 1900):    ... 15 more
W/dalvikvm( 1900): Exception Ljava/lang/Error; thrown while initializing Lcom/vladium/emma/rt/RT;
W/dalvikvm( 1900): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Lcom/android/providers/settings/SettingsProvider;
W/dalvikvm( 1900): Class init failed in newInstance call (Lcom/android/providers/settings/SettingsProvider;)
W/dalvikvm( 1900): threadid=12: thread exiting with uncaught exception (group=0x40b72930)
E/AndroidRuntime( 1900): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
E/AndroidRuntime( 1900): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 1900):        at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime( 1900):        at java.lang.Class.newInstance(Class.java:1319)
E/AndroidRuntime( 1900):        at android.app.ActivityThread.installProvider(ActivityThread.java:4862)
E/AndroidRuntime( 1900):        at android.app.ActivityThread.installContentProviders(ActivityThread.java:4487)
E/AndroidRuntime( 1900):        at android.app.ActivityThread.installSystemProviders(ActivityThread.java:5025)
E/AndroidRuntime( 1900):        at com.android.server.am.ActivityManagerService.installSystemProviders(ActivityManagerService.java:6943)
E/AndroidRuntime( 1900):        at com.android.server.ServerThread.run(SystemServer.java:341)
E/AndroidRuntime( 1900): Caused by: java.lang.ExceptionInInitializerError
E/AndroidRuntime( 1900):        at com.android.providers.settings.SettingsProvider.$VRi(SettingsProvider.java)
E/AndroidRuntime( 1900):        at com.android.providers.settings.SettingsProvider.<clinit>(SettingsProvider.java)
E/AndroidRuntime( 1900):        ... 7 more
E/AndroidRuntime( 1900): Caused by: java.lang.Error: EMMA: runtime controller could not be started, aborting
E/AndroidRuntime( 1900):        at com.vladium.emma.rt.RT.reset(RT.java:233)
E/AndroidRuntime( 1900):        at com.vladium.emma.rt.RT.<clinit>(RT.java:540)
E/AndroidRuntime( 1900):        ... 9 more

--
--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages