Problems detecting Network state on Android

71 views
Skip to first unread message

Carsten Thielepape

unread,
Mar 27, 2015, 3:57:09 PM3/27/15
to kivy-...@googlegroups.com
Again:

I am struggling to get the Network state on android.

I am using the following code fragment (try/exception block around this) :

            from jnius import autoclass
           
Hardware = autoclass('org.renpy.android.Hardware')
           
return Hardware.checkNetwork()

The app is compiled with --permission ACCESS_WIFI_STATE --permission ACCESS_NETWORK_STATE attributes

No exception will be thrown, the app is quitting without any messages or deinitialisation, sometime the app quits a few milliseconds later. The code is so simple, but I have no idea whats wrong. Using kivy 1.9.0 (februar)

adb log segment:

03-27 19:43:13.950: I/python(7579): [DEBUG             ] [2015-03-27 19|43|13.941] Checking Android network connectivity
03-27 19:43:13.950: I/python(7579): [DEBUG             ] [2015-03-27 19|43|13.957] Leavin Thread
03-27 19:43:13.950: D/dalvikvm(7579): threadid=12: thread exiting, not yet detached (count=0)
03-27 19:43:13.950: D/dalvikvm(7579): threadid=12: thread exiting, not yet detached (count=1)
03-27 19:43:13.950: E/dalvikvm(7579): threadid=12: native thread exited without detaching
03-27 19:43:13.950: E/dalvikvm(7579): VM aborting
03-27 19:43:13.950: A/libc(7579): Fatal signal 11 (SIGSEGV), thread 7629 (Thread-208)
03-27 19:43:13.980: D/dalvikvm(532): GC_EXPLICIT freed 333K, 30% free 13486K/18996K, paused 2ms+5ms, total 68ms
03-27 19:43:14.050: I/DEBUG(176): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-27 19:43:14.050: I/DEBUG(176): Build fingerprint: 'google/razor/flo:4.3/JSS15Q/779366:user/release-keys'
03-27 19:43:14.050: I/DEBUG(176): Revision: '0'
03-27 19:43:14.050: I/DEBUG(176): pid: 7579, tid: 7629, name: Thread-208  >>> org.orca.orcaremote:python <<<
03-27 19:43:14.050: I/DEBUG(176): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
03-27 19:43:14.150: I/DEBUG(176):     r0 00000000  r1 00000000  r2 00000000  r3 409ef1a0
03-27 19:43:14.150: I/DEBUG(176):     r4 deadd00d  r5 0000020c  r6 40993bd9  r7 00000001
03-27 19:43:14.150: I/DEBUG(176):     r8 401394b4  r9 401392a0  sl 79c70e00  fp 401392a0
03-27 19:43:14.150: I/DEBUG(176):     ip 1dcd4001  sp 79c70b90  lr 00000001  pc 40986b3c  cpsr 60000030
03-27 19:43:14.150: I/DEBUG(176):     d0  0000000000000000  d1  0000000000000000
03-27 19:43:14.150: I/DEBUG(176):     d2  0000000000000000  d3  0000000000000000
03-27 19:43:14.150: I/DEBUG(176):     d4  000002a900000325  d5  0000026e00000325
03-27 19:43:14.150: I/DEBUG(176):     d6  0000022c00000325  d7  00700f80000002fe
03-27 19:43:14.150: I/DEBUG(176):     d8  0000000000000000  d9  0000000000000000
03-27 19:43:14.150: I/DEBUG(176):     d10 0000000000000000  d11 0000000000000000
03-27 19:43:14.150: I/DEBUG(176):     d12 0000000000000000  d13 0000000000000000
03-27 19:43:14.150: I/DEBUG(176):     d14 0000000000000000  d15 0000000000000000
03-27 19:43:14.150: I/DEBUG(176):     d16 0069007600610065  d17 006800540020006e
03-27 19:43:14.150: I/DEBUG(176):     d18 0020002000200020  d19 0020002000200020
03-27 19:43:14.150: I/DEBUG(176):     d20 005d002000200020  d21 00300032005b0020
03-27 19:43:14.150: I/DEBUG(176):     d22 0030002d00350031  d23 00370032002d0033
03-27 19:43:14.150: I/DEBUG(176):     d24 430eb4f590307670  d25 430c6bf526340000
03-27 19:43:14.150: I/DEBUG(176):     d26 403c000000000000  d27 430c6bf526340000
03-27 19:43:14.150: I/DEBUG(176):     d28 c000000000000000  d29 0000000000000000
03-27 19:43:14.150: I/DEBUG(176):     d30 0000000000000000  d31 4000000000000000
03-27 19:43:14.150: I/DEBUG(176):     scr 28000012
03-27 19:43:14.150: I/DEBUG(176): backtrace:
03-27 19:43:14.150: I/DEBUG(176):     #00  pc 00045b3c  /system/lib/libdvm.so (dvmAbort+67)
03-27 19:43:14.150: I/DEBUG(176):     #01  pc 0000d058  /system/lib/libc.so
03-27 19:43:14.150: I/DEBUG(176):     #02  pc 0000e7f4  /system/lib/libc.so (pthread_exit+80)
03-27 19:43:14.150: I/DEBUG(176):     #03  pc 0000cd5c  /system/lib/libc.so (pthread_create+208)
03-27 19:43:14.150: I/DEBUG(176): stack:
03-27 19:43:14.150: I/DEBUG(176):          79c70b50  4013b65c  
03-27 19:43:14.150: I/DEBUG(176):          79c70b54  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70b58  4013b65c  
03-27 19:43:14.150: I/DEBUG(176):          79c70b5c  4013bea8  
03-27 19:43:14.150: I/DEBUG(176):          79c70b60  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70b64  401107ed  /system/lib/libc.so (__sflush_locked+40)
03-27 19:43:14.150: I/DEBUG(176):          79c70b68  40138220  /system/lib/libc.so
03-27 19:43:14.150: I/DEBUG(176):          79c70b6c  4013b65c  
03-27 19:43:14.150: I/DEBUG(176):          79c70b70  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70b74  401117c7  /system/lib/libc.so (_fwalk+34)
03-27 19:43:14.150: I/DEBUG(176):          79c70b78  79c70b94  [stack:7629]
03-27 19:43:14.150: I/DEBUG(176):          79c70b7c  0000020c  
03-27 19:43:14.150: I/DEBUG(176):          79c70b80  40993bd9  /system/lib/libdvm.so
03-27 19:43:14.150: I/DEBUG(176):          79c70b84  00000001  
03-27 19:43:14.150: I/DEBUG(176):          79c70b88  df002777  
03-27 19:43:14.150: I/DEBUG(176):          79c70b8c  e3a070ad  
03-27 19:43:14.150: I/DEBUG(176):     #00  79c70b90  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70b94  6c756e28  /dev/ashmem/dalvik-mark-stack (deleted)
03-27 19:43:14.150: I/DEBUG(176):          79c70b98  0000296c  
03-27 19:43:14.150: I/DEBUG(176):          79c70b9c  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70ba0  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70ba4  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70ba8  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70bac  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70bb0  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70bb4  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70bb8  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70bbc  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70bc0  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70bc4  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70bc8  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70bcc  00000000  
03-27 19:43:14.150: I/DEBUG(176):          ........  ........
03-27 19:43:14.150: I/DEBUG(176):     #01  79c70da8  799ddc70  
03-27 19:43:14.150: I/DEBUG(176):          79c70dac  799e62b8  
03-27 19:43:14.150: I/DEBUG(176):          79c70db0  00000002  
03-27 19:43:14.150: I/DEBUG(176):          79c70db4  401392a0  /system/lib/libc.so
03-27 19:43:14.150: I/DEBUG(176):          79c70db8  73697d90  /data/app-lib/org.orca.orcaremote-2/libpython2.7.so
03-27 19:43:14.150: I/DEBUG(176):          79c70dbc  799ddc70  
03-27 19:43:14.150: I/DEBUG(176):          79c70dc0  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70dc4  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70dc8  00100000  
03-27 19:43:14.150: I/DEBUG(176):          79c70dcc  79b71000  
03-27 19:43:14.150: I/DEBUG(176):          79c70dd0  79c70e00  [stack:7629]
03-27 19:43:14.150: I/DEBUG(176):          79c70dd4  74ca6700  [stack:7602]
03-27 19:43:14.150: I/DEBUG(176):          79c70dd8  799ddc70  
03-27 19:43:14.150: I/DEBUG(176):          79c70ddc  400fe7f8  /system/lib/libc.so (pthread_exit+84)
03-27 19:43:14.150: I/DEBUG(176):     #02  79c70de0  79c70e00  [stack:7629]
03-27 19:43:14.150: I/DEBUG(176):          79c70de4  400fcbe4  /system/lib/libc.so (__thread_entry+76)
03-27 19:43:14.150: I/DEBUG(176):          79c70de8  74ca7e08  [stack:7602]
03-27 19:43:14.150: I/DEBUG(176):          79c70dec  00000000  
03-27 19:43:14.150: I/DEBUG(176):          79c70df0  00100000  
03-27 19:43:14.150: I/DEBUG(176):          79c70df4  00000078  
03-27 19:43:14.150: I/DEBUG(176):          79c70df8  73697d90  /data/app-lib/org.orca.orcaremote-2/libpython2.7.so
03-27 19:43:14.150: I/DEBUG(176):          79c70dfc  400fcd60  /system/lib/libc.so (pthread_create+212)
03-27 19:43:14.160: I/DEBUG(176): memory near r3:
03-27 19:43:14.160: I/DEBUG(176):     409ef180 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     409ef190 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     409ef1a0 415c6d50 415c6d40 01000000 20000000  
03-27 19:43:14.160: I/DEBUG(176):     409ef1b0 0c000000 00000000 00000000 3fe80000  
03-27 19:43:14.160: I/DEBUG(176):     409ef1c0 00080000 00800000 00004000 00006000  
03-27 19:43:14.160: I/DEBUG(176):     409ef1d0 00000001 00000101 00000002 00000001  
03-27 19:43:14.160: I/DEBUG(176):     409ef1e0 00000000 00000000 00000000 00000002  
03-27 19:43:14.160: I/DEBUG(176):     409ef1f0 000001f4 4021e435 4021e66d 00000000  
03-27 19:43:14.160: I/DEBUG(176):     409ef200 4021e41d 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     409ef210 415c8008 00000000 00000002 00000003  
03-27 19:43:14.160: I/DEBUG(176):     409ef220 00000001 00000001 00010100 00000100  
03-27 19:43:14.160: I/DEBUG(176):     409ef230 00000000 415c6ef8 00000003 00000000  
03-27 19:43:14.160: I/DEBUG(176):     409ef240 415c6ee8 415c9948 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     409ef250 415c9908 50000c4f 6e485008 00000000  
03-27 19:43:14.160: I/DEBUG(176):     409ef260 6d484e78 6d484e98 415cb1e8 415cb2a8  
03-27 19:43:14.160: I/DEBUG(176):     409ef270 415cb350 415cb3f8 415cb4a0 415cb548  
03-27 19:43:14.160: I/DEBUG(176): memory near r6:
03-27 19:43:14.160: I/DEBUG(176):     40993bb8 e8bdb002 f7f24010 b002bf9b bf00bd10  
03-27 19:43:14.160: I/DEBUG(176):     40993bc8 000570ec fffffe58 0003b436 000419d0  
03-27 19:43:14.160: I/DEBUG(176):     40993bd8 4604b573 f8d04e20 447e3358 491fb953  
03-27 19:43:14.160: I/DEBUG(176):     40993be8 4a1f2005 44796a63 b002447a 4070e8bd  
03-27 19:43:14.160: I/DEBUG(176):     40993bf8 bbe8f036 03b0f8d0 dc1d2801 4a1a4d19  
03-27 19:43:14.160: I/DEBUG(176):     40993c08 20039000 6a63447d 447a4629 ebccf7ca  
03-27 19:43:14.160: I/DEBUG(176):     40993c18 13b0f8d4 c054f8df 46211c4a 23b0f8c4  
03-27 19:43:14.160: I/DEBUG(176):     40993c28 300cf856 03a8f8d3 ee6af7ca 4a10b188  
03-27 19:43:14.160: I/DEBUG(176):     40993c38 46292006 e004447a 2006490e 44794a0e  
03-27 19:43:14.160: I/DEBUG(176):     40993c48 6a63447a ebb0f7ca e8bdb002 f7f24070  
03-27 19:43:14.160: I/DEBUG(176):     40993c58 b002bf4f bf00bd70 0005709e 0003b3f8  
03-27 19:43:14.160: I/DEBUG(176):     40993c68 000419b9 0003b3da 000419cd fffffe58  
03-27 19:43:14.160: I/DEBUG(176):     40993c78 000419dc 0003b3a0 000419fc 4604b510  
03-27 19:43:14.160: I/DEBUG(176):     40993c88 f8d0b1f8 b1580360 1a406ce1 ebb0f7ca  
03-27 19:43:14.160: I/DEBUG(176):     40993c98 490cb130 4a0c2005 447a4479 eb84f7ca  
03-27 19:43:14.160: I/DEBUG(176):     40993ca8 00a8f104 e848f7d5 705bf504 fb62f7fe  
03-27 19:43:14.160: I/DEBUG(176): memory near r8:
03-27 19:43:14.160: I/DEBUG(176):     40139494 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401394a4 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401394b4 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401394c4 00000002 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401394d4 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401394e4 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401394f4 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139504 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139514 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139524 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139534 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139544 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139554 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139564 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139574 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139584 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176): memory near r9:
03-27 19:43:14.160: I/DEBUG(176):     40139280 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139290 00000000 ffffffff 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401392a0 00000001 0fffffff 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401392b0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401392c0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401392d0 40102415 40102411 40102da9 40102fb5  
03-27 19:43:14.160: I/DEBUG(176):     401392e0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401392f0 40993bd9 40393fac 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139300 00000000 401c05b1 401797f5 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139310 00000000 739bdfdc 00000000 40103049  
03-27 19:43:14.160: I/DEBUG(176):     40139320 4012352d 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139330 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139340 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139350 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139360 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139370 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176): memory near sl:
03-27 19:43:14.160: I/DEBUG(176):     79c70de0 79c70e00 400fcbe4 74ca7e08 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70df0 00100000 00000078 73697d90 400fcd60  
03-27 19:43:14.160: I/DEBUG(176):     79c70e00 79c70e00 799ddc70 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70e10 00000000 3b6871c1 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70e20 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70e30 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70e40 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70e50 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70e60 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70e70 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70e80 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70e90 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70ea0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70eb0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70ec0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70ed0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176): memory near fp:
03-27 19:43:14.160: I/DEBUG(176):     40139280 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139290 00000000 ffffffff 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401392a0 00000001 0fffffff 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401392b0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401392c0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401392d0 40102415 40102411 40102da9 40102fb5  
03-27 19:43:14.160: I/DEBUG(176):     401392e0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     401392f0 40993bd9 40393fac 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139300 00000000 401c05b1 401797f5 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139310 00000000 739bdfdc 00000000 40103049  
03-27 19:43:14.160: I/DEBUG(176):     40139320 4012352d 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139330 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139340 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139350 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139360 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     40139370 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176): memory near ip:
03-27 19:43:14.160: I/DEBUG(176):     1dcd3fe0 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd3ff0 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd4000 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd4010 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd4020 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd4030 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd4040 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd4050 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd4060 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd4070 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd4080 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd4090 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd40a0 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd40b0 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd40c0 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176):     1dcd40d0 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.160: I/DEBUG(176): memory near sp:
03-27 19:43:14.160: I/DEBUG(176):     79c70b70 00000000 401117c7 79c70b94 0000020c  
03-27 19:43:14.160: I/DEBUG(176):     79c70b80 40993bd9 00000001 df002777 e3a070ad  
03-27 19:43:14.160: I/DEBUG(176):     79c70b90 00000000 6c756e28 0000296c 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70ba0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70bb0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70bc0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70bd0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70be0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70bf0 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70c00 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70c10 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70c20 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70c30 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70c40 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70c50 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176):     79c70c60 00000000 00000000 00000000 00000000  
03-27 19:43:14.160: I/DEBUG(176): code around pc:
03-27 19:43:14.160: I/DEBUG(176):     40986b1c 46204a18 34ccf8d5 7100f44f f7d7447a  
03-27 19:43:14.160: I/DEBUG(176):     40986b2c 2200ec78 5d114615 e004b9a9 4c0d4780  
03-27 19:43:14.160: I/DEBUG(176):     40986b3c f7d77025 4910edb2 4a102006 447a4479  
03-27 19:43:14.160: I/DEBUG(176):     40986b4c ec30f7d7 f7d72000 4b0dece8 6dd8447b  
03-27 19:43:14.160: I/DEBUG(176):     40986b5c d1eb2800 3201e7eb f5b2186d d0ea7f00  
03-27 19:43:14.160: I/DEBUG(176):     40986b6c bf00e7e1 deadd00d 0006417c fffffe5c  
03-27 19:43:14.160: I/DEBUG(176):     40986b7c 0006868a 000490b7 0004849e 0004a35e  
03-27 19:43:14.160: I/DEBUG(176):     40986b8c 00068644 4604b570 68406806 f1a0e005  
03-27 19:43:14.160: I/DEBUG(176):     40986b9c 46280518 fca4f7f3 42b04628 6820d1f7  
03-27 19:43:14.160: I/DEBUG(176):     40986bac 68a1b128 f0221a0a f7ff0107 4620fe6a  
03-27 19:43:14.160: I/DEBUG(176):     40986bbc 0000bd70 f00fb570 4b3dfb63 f8d3447b  
03-27 19:43:14.170: I/DEBUG(176):     40986bcc b10803cc ff32f01d 25004c3a 6c20447c  
03-27 19:43:14.170: I/DEBUG(176):     40986bdc ebd6f7d7 64256ea0 ebd2f7d7 66a56f20  
03-27 19:43:14.170: I/DEBUG(176):     40986bec ebcef7d7 f00c6725 f00cf83d f8d4fa69  
03-27 19:43:14.170: I/DEBUG(176):     40986bfc 28030098 f02dd101 f00ffb81 492ef8a9  
03-27 19:43:14.170: I/DEBUG(176):     40986c0c f8914479 b1322033 2003492c 44794a2c  
03-27 19:43:14.170: I/DEBUG(176): code around lr:
03-27 19:43:14.170: I/DEBUG(176):     00000000 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     00000010 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     00000020 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     00000030 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     00000040 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     00000050 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     00000060 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     00000070 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     00000080 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     00000090 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     000000a0 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     000000b0 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     000000c0 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     000000d0 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     000000e0 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176):     000000f0 ffffffff ffffffff ffffffff ffffffff  
03-27 19:43:14.170: I/DEBUG(176): memory map around fault addr deadd00d:
03-27 19:43:14.170: I/DEBUG(176):     be882000-be8a3000 rw- [stack]
03-27 19:43:14.170: I/DEBUG(176):     (no map for address)
03-27 19:43:14.170: I/DEBUG(176):     ffff0000-ffff1000 r-x [vectors]
03-27 19:43:14.280: D/dalvikvm(997): GC_EXPLICIT freed 439K, 85% free 2972K/18996K, paused 2ms+2ms, total 19ms
03-27 19:43:14.330: W/ActivityManager(532):   Force finishing activity org.orca.orcaremote/org.renpy.android.PythonActivity
03-27 19:43:14.330: I/BootReceiver(532): Copying /data/tombstones/tombstone_01 to DropBox (SYSTEM_TOMBSTONE)
03-27 19:43:14.350: W/InputDispatcher(532): channel '41b794f0 org.orca.orcaremote/org.renpy.android.PythonActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
03-27 19:43:14.350: E/InputDispatcher(532): channel '41b794f0 org.orca.orcaremote/org.renpy.android.PythonActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
03-27 19:43:14.350: W/AudioFlinger(180): session id 237 not found for pid 180
03-27 19:43:14.360: W/InputDispatcher(532): Attempted to unregister already unregistered input channel '41b794f0 org.orca.orcaremote/org.renpy.android.PythonActivity (server)'
03-27 19:43:14.360: I/WindowState(532): WIN DEATH: Window{41b794f0 u0 org.orca.orcaremote/org.renpy.android.PythonActivity}
03-27 19:43:14.370: I/WindowState(532): WIN DEATH: Window{41d62160 u0 SurfaceView}
03-27 19:43:14.411: D/Zygote(178): Process 7579 terminated by signal (11)
03-27 19:43:14.411: D/dalvikvm(532): GC_FOR_ALLOC freed 2004K, 27% free 13974K/18996K, paused 46ms, total 47ms
03-27 19:43:14.421: W/ActivityManager(532): Exception thrown during pause
03-27 19:43:14.421: W/ActivityManager(532): android.os.DeadObjectException
03-27 19:43:14.421: W/ActivityManager(532):     at android.os.BinderProxy.transact(Native Method)
03-27 19:43:14.421: W/ActivityManager(532):     at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:635)
03-27 19:43:14.421: W/ActivityManager(532):     at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1007)
03-27 19:43:14.421: W/ActivityManager(532):     at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3863)
03-27 19:43:14.421: W/ActivityManager(532):     at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3795)
03-27 19:43:14.421: W/ActivityManager(532):     at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:8423)
03-27 19:43:14.421: W/ActivityManager(532):     at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:8300)
03-27 19:43:14.421: W/ActivityManager(532):     at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:8979)
03-27 19:43:14.421: W/ActivityManager(532):     at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:8534)
03-27 19:43:14.421: W/ActivityManager(532):     at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
03-27 19:43:14.421: I/ActivityManager(532): Process org.orca.orcaremote:python (pid 7579) has died.
03-27 19:43:14.881: D/dalvikvm(5568): GC_FOR_ALLOC freed 553K, 82% free 3590K/18996K, paused 15ms, total 15ms
03-27 19:43:15.662: D/dalvikvm(997): GC_EXPLICIT freed 412K, 85% free 2970K/18996K, paused 1ms+3ms, total 19ms
03-27 19:43:15.942: I/iu.UploadsManager(5568): End new media; added: 50, uploading: 0, time: 4539 ms
03-27 19:43:15.962: D/dalvikvm(5568): GC_FOR_ALLOC freed 498K, 82% free 3579K/18996K, paused 14ms, total 14ms
03-27 19:43:17.343: D/audio_hw_primary(180): out_standby: enter: usecase(1: low-latency-playback)
03-27 19:43:17.393: D/audio_hw_primary(180): stop_output_stream: enter: usecase(1: low-latency-playback)
03-27 19:43:17.393: D/audio_hw_primary(180): disable_audio_route: reset mixer path: low-latency-playback
03-27 19:43:17.393: D/audio_hw_primary(180): disable_snd_device: snd_device(2: speaker)
03-27 19:43:17.393: D/audio_hw_primary(180): stop_output_stream: exit: status(0)
03-27 19:43:17.393: D/audio_hw_primary(180): out_standby: exit




Federico Curzel

unread,
Mar 28, 2015, 5:56:32 AM3/28/15
to kivy-...@googlegroups.com

I don't know where the problem is, but can't you just use a different approach?

Using a different android class :
http://viralpatel.net/blogs/android-internet-connection-status-network-change/

You can also use pure python approach or simply run an http request to a website (Google.com or Google dns)...
All what you need is to run the request with a small timeout, check out :

http://kivy.org/docs/api-kivy.network.urlrequest.html

Carsten Thielepape

unread,
Mar 28, 2015, 2:09:17 PM3/28/15
to kivy-...@googlegroups.com
Hi Frederico,

urlrequest is not an option as I need to verify LAN access and not Internet connect. I am using a ping approach, which works, but is a little bit laggy.

Nevertheless, I will give a try the code I found here:

https://github.com/knappador/kivy-netcheck/blob/master/src/netcheck/androidconn.py

Thanks for pointing in some other directions
...

Federico Curzel

unread,
Mar 28, 2015, 2:32:17 PM3/28/15
to kivy-...@googlegroups.com

Great, nave a Nice day ;)


--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mathieu Virbel

unread,
Apr 5, 2015, 4:27:20 AM4/5/15
to kivy-...@googlegroups.com
Hi,

This is sad. Could you try to check the code behind Hardware.checkNetwork, and maybe reimplement it with pyjnius?
Our goal later is to get ride of thoses facades done in the old days, in favor of jnius-based implementation that might goes into Plyer.

Thanks :)


Carsten Thielepape

unread,
Apr 16, 2015, 10:13:28 AM4/16/15
to kivy-...@googlegroups.com
Found it (after I managed to bypass an buildozer error and being able to compile an apk again)

It looks like that you can't call jnius or autoclass from a thread

    from jnius import autoclass
   
Hardware = autoclass('org.renpy.android.Hardware')
   
return Hardware.checkNetwork()

This called called from a thread quits the app with "threadid=xx: native thread exited without detaching"

Same code called from the "main thread", works fine.
@Frederico: same effect with your code example as well
@Mathiew: Is this known or should I raise a bug report?

Kived Devik

unread,
Apr 16, 2015, 10:31:14 AM4/16/15
to kivy-...@googlegroups.com

You need to call detach (from jnius import detach) after you've finished using pyjnius from a thread.

...
Reply all
Reply to author
Forward
0 new messages