-
Notifications
You must be signed in to change notification settings - Fork 74.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
protobuf crashes at runtime when loading tensor lib. #12794
Comments
don't know why , somebody pls help beed50ec 812a0da8 /data/app-lib/com.zhuxin.ecg.jijian-1/libecg_sdk.so (std::unordered_map<std::string, google::protobuf::FieldDescriptorProto_Type, google::protobuf::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, google::protobuf::FieldDescriptorProto_Type> > >::operator+48) |
I don't quite understand how you triggered this failure--can you please tell us more about what you built, and what command you issued to get this stack trace? Please provide details about what platform you are using (operating system, architecture). Also include your TensorFlow version. Also, did you compile from source or install a binary? Make sure you also include the exact command if possible to produce the output included in your test case. If you are unclear what to include see the issue template displayed in the Github new issue template. We ask for this in the issue submission template, because it is really difficult to help without that information. Thanks! |
@cy89 |
hi , sorry for taking so long time to reply . phone: protobuf commit version: compiler: crash information: i think it maybe a protobuf issue, not a tensor issue, so i posted this issue to protobuf on git too: any suggestions are highly appreciated~ |
the news now is that i tried don't trigger any interface and :
i assume that it's a runtime error of protobuf , am i right ? on loading time of tensorflow lib , classes call construct function, |
i also tried the compiler : the crash remains |
i down graded the version of protobuf to : the crash remains. the crash information changed to : it seems nothing to do with protobuf, but after i tested : after deeply thinking, there are 2 possible reasons:
|
and i tried protobuf-lite , crashes and reported: which is the same symptom with only load tensor and don't load protobuf |
then i tried a very old compiler: and still crashes: 11-21 15:17:44.940 2970-2970/com.zhuxin.ecg.jijian A/libc: Fatal signal 6 (SIGABRT) at 0x00000b9a (code=-6), thread 2970 (uxin.ecg.jijian) |
ndk r9 's highest supporting gcc version is 4.8, |
by changing the protobuf version, crash information various: /data/app-lib/com.zhuxin.ecg.jijian-1/libecg_sdk.so (std::unordered_map<std::string, google::protobuf::FieldDescriptorProto_Type, google::protobuf::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, google::protobuf::FieldDescriptorProto_Type> > >::operator+48) i started to think about this may tensor lib's issue, is there any possibility that tensor lib is not compatible to various phone cpus ? course tensor incline to use gpu or other hardware..? |
i used: |
could any one tell me : |
i studied the compile procedure of tf, and find that there are three parts of source file : i collected all these source files to one IDE and study the source . |
i found a path for this issue, first i studied tensor lib consists of: 1.pb source files
just wish me luck , guys~ |
my project is a shared lib, and in this lib i called tensorflow lib . and linked the shared lib to apk. i found that even if i cut tensor to hollow, it still crashes. on contrast , my protobuf linked as: so the question turn out to be : |
good news: the solution is : next i will learn what whole archive and no whole archive means. although no one replied , i still thank this tensor discuss forum , for giving me the stress to hold on to what i am looking for. # happy Thanksgiving |
hardware: Huawei P7 Android 4.4.2
i tried ndk r12b , r10e , and api 9, api 14
all run into this error:
09-04 19:10:47.640 21660-21660/com.zhuxin.ecg.jijian A/libc: Fatal signal 6 (SIGABRT) at 0x0000549c (code=-6), thread 21660 (uxin.ecg.jijian)
09-04 19:10:47.740 162-162/? I/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-04 19:10:47.740 162-162/? I/DEBUG: Build fingerprint: 'Huawei/P7-L00/hwp7:4.4.2/HuaweiP7-L00/C17B620:user/ota-rel-keys,release-keys'
09-04 19:10:47.740 162-162/? I/DEBUG: Revision: '0'
09-04 19:10:47.740 162-162/? I/DEBUG: pid: 21660, tid: 21660, name: uxin.ecg.jijian >>> com.zhuxin.ecg.jijian <<<
09-04 19:10:47.740 162-162/? I/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
09-04 19:10:47.880 754-754/? W/View: requestLayout() improperly called by com.android.systemui.statusbar.phone.IconMerger{434090b0 V.E..... ......I. 0,0-270,72 #7f0a0069 app:id/notificationIcons} during layout: running second layout pass
...
09-04 19:10:48.360 162-162/? I/DEBUG: #6 pc 0000274d /system/bin/linker
09-04 19:10:48.360 162-162/? I/DEBUG: #7 pc 00002823 /system/bin/linker
09-04 19:10:48.360 162-162/? I/DEBUG: #8 pc 00002975 /system/bin/linker
09-04 19:10:48.360 162-162/? I/DEBUG: #9 pc 000029e9 /system/bin/linker
09-04 19:10:48.360 162-162/? I/DEBUG: #10 pc 00000f43 /system/bin/linker
09-04 19:10:48.360 162-162/? I/DEBUG: #11 pc 00050ee /system/lib/libdvm.so (dvmLoadNativeCode(char const*, Object*, char**)+182)
09-04 19:10:48.360 162-162/? I/DEBUG: #12 pc 00068885 /system/lib/libdvm.so
09-04 19:10:48.360 162-162/? I/DEBUG: #13 pc 00027ea0 /system/lib/libdvm.so
09-04 19:10:48.360 162-162/? I/DEBUG: #14 pc 0002eef0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
09-04 19:10:48.360 162-162/? I/DEBUG: #15 pc 0002c588 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
09-04 19:10:48.360 162-162/? I/DEBUG: #16 pc 00061595 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
09-04 19:10:48.360 162-162/? I/DEBUG: #17 pc 000615b9 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
09-04 19:10:48.360 162-162/? I/DEBUG: #18 pc 0006cd7d /system/lib/libdvm.so (dvmInitClass+1020)
09-04 19:10:48.360 162-162/? I/DEBUG: #19 pc 0006da87 /system/lib/libdvm.so (dvmResolveMethod+198)
09-04 19:10:48.360 162-162/? I/DEBUG: #20 pc 000234f4 /system/lib/libdvm.so
09-04 19:10:48.360 162-162/? I/DEBUG: #21 pc 0002eef0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
09-04 19:10:48.360 162-162/? I/DEBUG: #22 pc 0002c588 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
09-04 19:10:48.360 162-162/? I/DEBUG: #23 pc 00061879 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+392)
09-04 19:10:48.360 162-162/? I/DEBUG: #24 pc 00069963 /system/lib/libdvm.so
09-04 19:10:48.360 162-162/? I/DEBUG: #25 pc 00027ea0 /system/lib/libdvm.so
09-04 19:10:48.360 162-162/? I/DEBUG: #26 pc 0002eef0 /system/lib/libdvm.so (dvmMterpStd(Thread*)+76)
09-04 19:10:48.360 162-162/? I/DEBUG: #27 pc 0002c588 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
09-04 19:10:48.360 162-162/? I/DEBUG: #28 pc 00061595 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+336)
09-04 19:10:48.360 162-162/? I/DEBUG: #29 pc 0004ac6b /system/lib/libdvm.so
09-04 19:10:48.360 162-162/? I/DEBUG: #30 pc 0004ed47 /system/lib/libandroid_runtime.so
09-04 19:10:48.360 162-162/? I/DEBUG: #31 pc 0004faef /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354)
09-04 19:10:48.360 162-162/? I/DEBUG: stack:
09-04 19:10:48.360 162-162/? I/DEBUG: beed50e0 0006be74
09-04 19:10:48.360 162-162/? I/DEBUG: beed50e4 81cfa290
09-04 19:10:48.360 162-162/? I/DEBUG: beed50e8 beed5104 [stack]
09-04 19:10:48.360 162-162/? I/DEBUG: beed50ec 812a0da8 /data/app-lib/com.zhuxin.ecg.jijian-1/libecg_sdk.so (std::unordered_map<std::string, google::protobuf::FieldDescriptorProto_Type, google::protobuf::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, google::protobuf::FieldDescriptorProto_Type> > >::operator+48)
09-04 19:10:48.360 162-162/? I/DEBUG: beed50f0 beed51a0 [stack]
09-04 19:10:48.360 162-162/? I/DEBUG: beed50f4 81cfa290
09-04 19:10:48.360 162-162/? I/DEBUG: beed50f8 81cfa290
09-04 19:10:48.360 162-162/? I/DEBUG: beed50fc 20492111
09-04 19:10:48.360 162-162/? I/DEBUG: beed5100 81cfa290
09-04 19:10:48.360 162-162/? I/DEBUG: beed5104 00000001
09-04 19:10:48.360 162-162/? I/DEBUG: beed5108 00000015
09-04 19:10:48.370 162-162/? I/DEBUG: beed510c 71a0b990
09-04 19:10:48.370 162-162/? I/DEBUG: beed5110 00000001
09-04 19:10:48.370 162-162/? I/DEBUG: beed5114 4007d9b5 /system/lib/libc.so (write+12)
09-04 19:10:48.370 162-162/? I/DEBUG: beed5118 4008e1d8 /system/lib/libc.so
09-04 19:10:48.370 162-162/? I/DEBUG: beed511c 71a0b990
09-04 19:10:48.370 162-162/? I/DEBUG: #00 beed5120 00000006
09-04 19:10:48.370 162-162/? I/DEBUG: beed5124 00000016
09-04 19:10:48.370 162-162/? I/DEBUG: beed5128 0000549c
09-04 19:10:48.370 162-162/? I/DEBUG: beed512c 400b1f0f /system/bin/linker
09-04 19:10:48.370 162-162/? I/DEBUG: beed5130 400b1f0f /system/bin/linker
09-04 19:10:48.370 162-162/? I/DEBUG: beed5134 4005628d /system/lib/libc.so (pthread_kill+52)
09-04 19:10:48.370 162-162/? I/DEBUG: #1 beed5138 00000006
09-04 19:10:48.370 162-162/? I/DEBUG: beed513c 00000000
09-04 19:10:48.370 162-162/? I/DEBUG: beed5140 74a2f24c
09-04 19:10:48.370 162-162/? I/DEBUG: beed5144 400564a1 /system/lib/libc.so (raise+14)
09-04 19:10:48.370 162-162/? I/DEBUG: #2 beed5148 beed5154 [stack]
09-04 19:10:48.370 162-162/? I/DEBUG: beed514c 400551d7 /system/lib/libc.so
09-04 19:10:48.390 162-162/? I/DEBUG: memory near r1:
.....
09-04 19:10:49.350 754-754/? W/View: requestLayout() improperly called by com.android.systemui.statusbar.phone.IconMerger{434090b0 V.E..... ........ 0,0-270,72 #7f0a0069 app:id/notificationIcons} during second layout pass: posting in next frame
09-04 19:10:49.600 658-694/? W/InputDispatcher: channel '43db7980 com.zhuxin.ecg.jijian/com.ikinloop.ecgapplication.ui.activity.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
09-04 19:10:49.600 658-694/? E/InputDispatcher: channel '43db7980 com.zhuxin.ecg.jijian/com.ikinloop.ecgapplication.ui.activity.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
09-04 19:10:49.710 362-466/? I/logserver: Object Path:/data/system/dropbox/, mask=0x00000080
09-04 19:10:49.710 362-466/? I/logserver: event->len=48, name=[email protected]
09-04 19:10:49.710 362-466/? I/logserver: process_one_event, can not find this event([email protected])
09-04 19:10:49.710 362-466/? I/logserver: clean_cur_cache:962, system(rm -r /data/log/logcache/3577632/* > /dev/null 2>&1)
09-04 19:10:49.710 658-1213/? W/InputDispatcher: Attempted to unregister already unregistered input channel '43db7980 com.zhuxin.ecg.jijian/com.ikinloop.ecgapplication.ui.activity.MainActivity (server)'
09-04 19:10:49.720 1095-1095/? I/HwLauncher: DynamicIcon onWindowVisibilityChanged 4 - com.android.calendar
The text was updated successfully, but these errors were encountered: