[android-developers] Re: Android 2.2, SDK, Emulator and “Bad address family” on Socket Connect
I'm also seeing the same problem on the 2.2 emulator, whereas it worked fine on the 2.1 emulator and device. I'm using the DNSJava library, which apparently does something similar, since the exception also occurs during Selector.open. Swapping out the library for something different is unfortunately not an option for me. Should this be reported as a bug? W/System.err( 436): java.net.SocketException: Bad address family W/System.err( 436):at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native Method) W/System.err( 436):at org.apache.harmony.luni.platform.OSNetworkSystem.connect(OSNetworkSystem.java: 115) W/System.err( 436):at org.apache.harmony.nio.internal.SocketChannelImpl.connect(SocketChannelImpl.java: 272) W/System.err( 436):at org.apache.harmony.nio.internal.PipeImpl $SinkChannelImpl.finishConnect(PipeImpl.java:164) W/System.err( 436):at org.apache.harmony.nio.internal.PipeImpl.init(PipeImpl.java:48) W/System.err( 436):at org.apache.harmony.nio.internal.SelectorProviderImpl.openPipe(SelectorProviderImpl.java: 51) W/System.err( 436):at org.apache.harmony.nio.internal.SelectorImpl.init(SelectorImpl.java: 141) W/System.err( 436):at org.apache.harmony.nio.internal.SelectorProviderImpl.openSelector(SelectorProviderImpl.java: 58) W/System.err( 436):at java.nio.channels.Selector.open(Selector.java:48) W/System.err( 436):at org.xbill.DNS.Client.init(Client.java:21) W/System.err( 436):at org.xbill.DNS.UDPClient.init(UDPClient.java:23) W/System.err( 436):at org.xbill.DNS.UDPClient.sendrecv(UDPClient.java:111) W/System.err( 436):at org.xbill.DNS.SimpleResolver.send(SimpleResolver.java:252) W/System.err( 436):at org.xbill.DNS.ExtendedResolver $Resolution.start(ExtendedResolver.java:95) W/System.err( 436):at org.xbill.DNS.ExtendedResolver.send(ExtendedResolver.java:358) W/System.err( 436):at org.xbill.DNS.Lookup.lookup(Lookup.java: 449) W/System.err( 436):at org.xbill.DNS.Lookup.resolve(Lookup.java: 501) W/System.err( 436):at org.xbill.DNS.Lookup.run(Lookup.java:515) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Native crash of /system/bin/dex2oat
Dear all, currently I'm using the pre-launch-reports for my app. The reports are running well, but for one device (Pixel, Android 7.1) there is a strange error "Native crash of /system/bin/dex2oat". The app is running normally and I have no idea what is happening. As this is a native crash no Java stack trace is included and the error message is very cryptic "Check failed: super_class->IsResolved()", you can find the output below. Sadly no class is mentioned which could be affected. I'm wondering if this is either a bug in the dex2oat tool (and not in my app) or if it could be possible to get a hint, what is going wrong. Has anybody an idea what this error means? Kind regards, Ulf *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint: 'google/sailfish/sailfish:7.1.1/NMF26U/3562008:user/release-keys' Revision: '0' ABI: 'arm' pid: 10210, tid: 10223, name: Compiler driver >>> /system/bin/dex2oat <<< signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr Abort message: 'art/runtime/class_linker.cc:5452] Check failed: super_class->IsResolved() ' r0 r1 27ef r2 0006 r3 0008 r4 ee2ff978 r5 0006 r6 ee2ff920 r7 010c r8 eefe42f8 r9 f39cad4f sl 000a fp f3f85400 ip sp ee2fe5a8 lr f3eb8537 pc f3ebada0 cpsr 600f0010 backtrace: #00 pc 00049da0 /system/lib/libc.so (tgkill+12) #01 pc 00047533 /system/lib/libc.so (pthread_kill+34) #02 pc 0001d635 /system/lib/libc.so (raise+10) #03 pc 00019181 /system/lib/libc.so (__libc_android_abort+34) #04 pc 00017048 /system/lib/libc.so (abort+4) #05 pc 0031b43d /system/lib/libart.so (_ZN3art7Runtime5AbortEPKc+328) #06 pc 000b526b /system/lib/libart.so (_ZN3art10LogMessageD2Ev+1134) #07 pc 000e7529 /system/lib/libart.so (_ZN3art11ClassLinker22LoadSuperAndInterfacesENS_6HandleINS_6mirror5ClassEEERKNS_7DexFileE+932) #08 pc 000e4d1f /system/lib/libart.so (_ZN3art11ClassLinker11DefineClassEPNS_6ThreadEPKcjNS_6HandleINS_6mirror11ClassLoaderEEERKNS_7DexFileERKNS9_8ClassDefE+410) #09 pc 000e4a15 /system/lib/libart.so (_ZN3art11ClassLinker26FindClassInPathClassLoaderERNS_33ScopedObjectAccessAlreadyRunnableEPNS_6ThreadEPKcjNS_6HandleINS_6mirror11ClassLoaderEEEPPNS8_5ClassE+1016) #10 pc 000e55ef /system/lib/libart.so (_ZN3art11ClassLinker9FindClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE+658) #11 pc 000d2a3d /system/lib/libart.so (_ZN3art11ClassLinker11ResolveTypeERKNS_7DexFileEtNS_6HandleINS_6mirror8DexCacheEEENS4_INS5_11ClassLoaderEEE+132) #12 pc 000d9a5b /system/lib/libart.so (_ZN3art11ClassLinker11ResolveTypeERKNS_7DexFileEtPNS_6mirror5ClassE+98) #13 pc 000e722d /system/lib/libart.so (_ZN3art11ClassLinker22LoadSuperAndInterfacesENS_6HandleINS_6mirror5ClassEEERKNS_7DexFileE+168) #14 pc 000e4d1f /system/lib/libart.so (_ZN3art11ClassLinker11DefineClassEPNS_6ThreadEPKcjNS_6HandleINS_6mirror11ClassLoaderEEERKNS_7DexFileERKNS9_8ClassDefE+410) #15 pc 000e4a15 /system/lib/libart.so (_ZN3art11ClassLinker26FindClassInPathClassLoaderERNS_33ScopedObjectAccessAlreadyRunnableEPNS_6ThreadEPKcjNS_6HandleINS_6mirror11ClassLoaderEEEPPNS8_5ClassE+1016) #16 pc 000e55ef /system/lib/libart.so (_ZN3art11ClassLinker9FindClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE+658) #17 pc 00372d8b /system/lib/libart.so (_ZN3art8verifier12RegTypeCache12ResolveClassEPKcPNS_6mirror11ClassLoaderE+106) #18 pc 00372989 /system/lib/libart.so (_ZN3art8verifier12RegTypeCache4FromEPNS_6mirror11ClassLoaderEPKcb+408) #19 pc 0035d12d /system/lib/libart.so (_ZN3art8verifier14MethodVerifier26ResolveClassAndCheckAccessEj+192) #20 pc 0035ec3f /system/lib/libart.so (_ZN3art8verifier14MethodVerifier25CodeFlowVerifyInstructionEPj+5682) #21 pc 0035cecf /system/lib/libart.so (_ZN3art8verifier14MethodVerifier20CodeFlowVerifyMethodEv+238) #22 pc 00359e29 /system/lib/libart.so (_ZN3art8verifier14MethodVerifier14VerifyCodeFlowEv+628) #23 pc 00357579 /system/lib/libart.so (_ZN3art8verifier14MethodVerifier6VerifyEv+484) #24 pc 00356a79 /system/lib/libart.so (_ZN3art8verifier14MethodVerifier12VerifyMethodEPNS_6ThreadEjPKNS_7DexFileENS_6HandleINS_6mirror8DexCacheEEENS7_INS8_11ClassLoaderEEEPKNS4_8ClassDefEPKNS4_8CodeItemEPNS_9ArtMethodEjPNS_17CompilerCallbacksEbNS_11LogSeverityEbPNSt3__112basic_stringIcNSO_11char_traitsIcEENSO_9allocatorIc+108) #25 pc 00356743 /system/lib/libart.so (_ZN3art8verifier14MethodVerifier13VerifyMethodsILb0EEENS1_11FailureDataEPNS_6ThreadEPNS_11ClassLinkerEPKNS_7DexFileEPKNS8_8ClassDefEPNS_21ClassDataItemIteratorENS_6HandleINS_6mirror8DexCacheEEENSG_INSH_11ClassLoaderEEEPNS_17CompilerCallbacksEbNS_11LogSeverityEbPNSt3__112basic_stringIcNSP_11char_traitsIcEENSP_9allocatorIc+434
[android-developers] Maps not showing when used in activity group
Hi! I originaly posted this thread in beginners but it's maybe not a beginners question so I'll try it out here instead. I have a slight problem with my android application. My thought was to re-use as many acitivites as possible in different places so I thought an activity group would be the best shot for me to use in some places and hence I would be able to re-use my map activity and a couple of ListActivities. On one screen I have a standalone map, that is, a map ativity shown over the entire screen and that works just fine. The problem comes when I try to add this map activity to an ActivityGroup just below a ListAcitivity. The list works just as it should but the map just refuses to render itself! (I can see the Google text and the background). Even though it doesn't show the map itself I can still see how the map keeps switching position when i click something in my list (tells it to move to the adress specified in the list). I really don't get it, there must be something I forgot to do when adding the MapActivity to the ActivityGroup!? -Java begin -- // create new LinearLayout and LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT); LinearLayout l = new LinearLayout(this); l.setLayoutParams(lp); l.setOrientation(LinearLayout.VERTICAL); LocalActivityManager localActivityManager = this .getLocalActivityManager(); // our 2 different intents to be started. Intent map = new Intent(this, ShowMapActivity.class); Intent hallplatser = new Intent (this,ListaHallplatserINarhetenActivity.class); // start the activities View mapview = localActivityManager.startActivity(KARTA_ID, map ) .getDecorView(); View hallplatsview = localActivityManager.startActivity(HALLPLATS_ID, hallplatser).getDecorView(); WindowManager w = getWindowManager(); Display d = w.getDefaultDisplay(); int width = d.getWidth(); int height = d.getHeight(); map view.setLayoutParams(new ViewGroup.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, height / 2)); hallplatsview.setLayoutParams(new ViewGroup.LayoutParams( ViewGroup.LayoutParams.FILL_PARENT, height / 2)); // add the both views to the linearlayout and set it as the contentview l.addView(hallplatsview); l.addView(mapview); setContentView(l); Java end -- As I said before, the ShowMapActivity works just fine on it's own but not when added to this activity group, any suggestions? :) All permissions are also set (of course since the map works just fine normally). Is this maybe a bug? Tried in emulator and HTC Hero running SDK 1.5. / Ulf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---