xroche/coffeecatch

Doesnt catch my assert

Opened this issue · 0 comments

JNIEXPORT jobject JNICALL Java_com_ircm_controller_MPCController_getInfusion(JNIEnv *env, jobject thiz, jobject object) {

COFFEE_TRY_JNI(env, return Java_com_ircm_controller_MPCController_getInfusion_notProtected(env, thiz, object));

}

JNIEXPORT jobject JNICALL Java_com_ircm_controller_MPCController_getInfusion_notProtected(JNIEnv *env, jobject thiz, jobject object) {

DBLOG("getInfusion Called");

jobject jInfusion;
Measurements& measurements = ircm::Measurements::instance();
SensorMeasurement* measurement = JNIFactory::make_sensor_measurement(env, object);
Infusion infusion = mpc_contr(measurement);
measurements.clearBolusInfusion();
jInfusion = JNIFactory::make_infusion(env, infusion);

DBLOG("getInfusion end");

return jInfusion;

}

Logcat:
07-28 11:25:45.087: I/com.ircm.utils.DBUtils(31297): addMessageToDiagnostic:getInfusion Called
07-28 11:25:45.157: I/com.ircm.utils.DBUtils(31297): addMessageToDiagnostic:make_sensor_measurement Called
07-28 11:25:45.217: I/com.ircm.utils.DBUtils(31297): addMessageToDiagnostic:make_sensor_measurement Called
07-28 11:25:45.267: I/com.ircm.utils.DBUtils(31297): addMessageToDiagnostic:make_sensor_measurement End
07-28 11:25:45.307: I/com.ircm.utils.DBUtils(31297): addMessageToDiagnostic:make_sensor_measurement End
07-28 11:25:45.337: I/com.ircm.utils.DBUtils(31297): addMessageToDiagnostic:mpc_contr Called
07-28 11:25:45.407: I/TAG(31297): print mat
07-28 11:25:45.407: I/TAG(31297): After the begin x0 11 1
07-28 11:25:45.407: I/TAG(31297): NaN
07-28 11:25:45.407: I/TAG(31297): 0.00000
07-28 11:25:45.407: I/TAG(31297): 0.00000
07-28 11:25:45.407: I/TAG(31297): 0.00000
07-28 11:25:45.407: I/TAG(31297): 0.00000
07-28 11:25:45.407: I/TAG(31297): 0.00000
07-28 11:25:45.407: I/TAG(31297): 0.00000
07-28 11:25:45.407: I/TAG(31297): 0.00000
07-28 11:25:45.407: I/TAG(31297): 0.00000
07-28 11:25:45.407: I/TAG(31297): 0.00000
07-28 11:25:45.407: I/TAG(31297): 0.00000
07-28 11:25:45.537: I/TAG(31297): ClpSimplex
07-28 11:25:45.567: A/libc(31297): jni/clp/ClpSimplex.cpp:3519: bool ClpSimplex::createRim(int, bool, int): assertion "fabs(obj[i]) < 1.0e25" failed
07-28 11:25:45.617: A/libc(31297): FATAL ERROR occurring at line: 4858
07-28 11:25:45.617: A/libc(31297): least_addr: 0x40039000, mchunkptr: 0x62eaa808. Segment Infomation:
07-28 11:25:45.617: A/libc(31297): base : size
07-28 11:25:45.617: A/libc(31297): 000 62f47000: 65536
07-28 11:25:45.617: A/libc(31297): 001 62e9a000: 77824
07-28 11:25:45.617: A/libc(31297): 002 62e8c000: 28672
07-28 11:25:45.617: A/libc(31297): 003 62f38000: 32768
07-28 11:25:45.617: A/libc(31297): 004 63025000: 180224
07-28 11:25:45.617: A/libc(31297): 005 62e73000: 36864
07-28 11:25:45.617: A/libc(31297): 006 6538a000: 20480
07-28 11:25:45.617: A/libc(31297): 007 6538f000: 16384
07-28 11:25:45.617: A/libc(31297): 008 63974000: 16384
07-28 11:25:45.617: A/libc(31297): 009 63941000: 24576
07-28 11:25:45.617: A/libc(31297): 010 63948000: 180224
07-28 11:25:45.617: A/libc(31297): 011 6393d000: 16384
07-28 11:25:45.617: A/libc(31297): 012 638e5000: 360448
07-28 11:25:45.617: A/libc(31297): 013 638aa000: 32768
07-28 11:25:45.617: A/libc(31297): 014 63893000: 65536
07-28 11:25:45.617: A/libc(31297): 015 63875000: 106496
07-28 11:25:45.617: A/libc(31297): 016 63978000: 77824
07-28 11:25:45.617: A/libc(31297): 017 68989000: 12288
07-28 11:25:45.617: A/libc(31297): 018 68990000: 69632
07-28 11:25:45.617: A/libc(31297): 019 68978000: 69632
07-28 11:25:45.617: A/libc(31297): 020 68a7d000: 28672
07-28 11:25:45.617: A/libc(31297): 021 68974000: 16384
07-28 11:25:45.617: A/libc(31297): 022 65795000: 81920
07-28 11:25:45.617: A/libc(31297): 023 6575a000: 98304
07-28 11:25:45.617: A/libc(31297): 024 62e70000: 8192
07-28 11:25:45.617: A/libc(31297): 025 6573b000: 126976
07-28 11:25:45.617: A/libc(31297): 026 630b7000: 16384
07-28 11:25:45.617: A/libc(31297): 027 6573a000: 4096
07-28 11:25:45.617: A/libc(31297): 028 657bb000: 286720
07-28 11:25:45.617: A/libc(31297): 029 63641000: 86016
07-28 11:25:45.617: A/libc(31297): 030 6361e000: 8192
07-28 11:25:45.617: A/libc(31297): 031 635da000: 81920
07-28 11:25:45.617: A/libc(31297): 032 635b5000: 8192
07-28 11:25:45.617: A/libc(31297): 033 635ca000: 65536
07-28 11:25:45.617: A/libc(31297): 034 635c1000: 36864
07-28 11:25:45.617: A/libc(31297): 035 635b8000: 36864
07-28 11:25:45.617: A/libc(31297): 036 635aa000: 45056
07-28 11:25:45.617: A/libc(31297): 037 635a4000: 20480
07-28 11:25:45.617: A/libc(31297): 038 63597000: 28672
07-28 11:25:45.617: A/libc(31297): 039 63656000: 122880
07-28 11:25:45.617: A/libc(31297): 040 6358f000: 32768
07-28 11:25:45.617: A/libc(31297): 041 6353b000: 208896
07-28 11:25:45.617: A/libc(31297): 042 63424000: 73728
07-28 11:25:45.617: A/libc(31297): 043 5d1bd000: 65536
07-28 11:25:45.617: A/libc(31297): 044 5d19a000: 16384
07-28 11:25:45.617: A/libc(31297): 045 5d1b7000: 24576
07-28 11:25:45.617: A/libc(31297): 046 5d198000: 8192
07-28 11:25:45.617: A/libc(31297): 047 5d181000: 53248
07-28 11:25:45.617: A/libc(31297): 048 5d157000: 118784
07-28 11:25:45.617: A/libc(31297): 049 5d13f000: 69632
07-28 11:25:45.617: A/libc(31297): 050 5d12f000: 36864
07-28 11:25:45.617: A/libc(31297): 051 5d0fd000: 118784
07-28 11:25:45.617: A/libc(31297): 052 5d0e7000: 61440
07-28 11:25:45.617: A/libc(31297): 053 5d0d1000: 61440
07-28 11:25:45.617: A/libc(31297): 054 5cec5000: 8192
07-28 11:25:45.617: A/libc(31297): 055 61250000: 12288
07-28 11:25:45.617: A/libc(31297): 056 5d263000: 61440
07-28 11:25:45.617: A/libc(31297): 057 61223000: 184320
07-28 11:25:45.617: A/libc(31297): 058 5ffc3000: 233472
07-28 11:25:45.617: A/libc(31297): 059 5e324000: 65536
07-28 11:25:45.617: A/libc(31297): 060 5d2b8000: 4096
07-28 11:25:45.617: A/libc(31297): 061 5fee3000: 86016
07-28 11:25:45.617: A/libc(31297): 062 5e334000: 278528
07-28 11:25:45.617: A/libc(31297): 063 5e310000: 32768
07-28 11:25:45.617: A/libc(31297): 064 5d32e000: 65536
07-28 11:25:45.617: A/libc(31297): 065 5d2ef000: 118784
07-28 11:25:45.617: A/libc(31297): 066 5d30c000: 20480
07-28 11:25:45.617: A/libc(31297): 067 5d2aa000: 57344
07-28 11:25:45.617: A/libc(31297): 068 5d1f3000: 4096
07-28 11:25:45.617: A/libc(31297): 069 5d44d000: 114688
07-28 11:25:45.617: A/libc(31297): 070 5d272000: 32768
07-28 11:25:45.617: A/libc(31297): 071 5d258000: 36864
07-28 11:25:45.617: A/libc(31297): 072 5d1d6000: 118784
07-28 11:25:45.617: A/libc(31297): 073 5bc34000: 4096
07-28 11:25:45.617: A/libc(31297): 074 5d1d4000: 8192
07-28 11:25:45.617: A/libc(31297): 075 5b5aa000: 53248
07-28 11:25:45.617: A/libc(31297): 076 5a5ad000: 4096
07-28 11:25:45.617: A/libc(31297): 077 5a5a2000: 12288
07-28 11:25:45.617: A/libc(31297): 078 5a597000: 12288
07-28 11:25:45.617: A/libc(31297): 079 5a1b5000: 4096
07-28 11:25:45.617: A/libc(31297): 080 5a1a1000: 20480
07-28 11:25:45.617: A/libc(31297): 081 5919c000: 20480
07-28 11:25:45.617: A/libc(31297): 082 59193000: 12288
07-28 11:25:45.617: A/libc(31297): 083 43035000: 24576
07-28 11:25:45.617: A/libc(31297): 084 43031000: 12288
07-28 11:25:45.617: A/libc(31297): 085 40039000: 4096
07-28 11:25:45.617: A/libc(31297): *** *** *** *** *** *** *** HEAP INFO *** *** *** *** *** *** ***
07-28 11:25:45.617: A/libc(31297): chunk ptr 0x62eaa808(p), cinuse(1), pinuse(1), chunksize(-8)
07-28 11:25:45.617: A/libc(31297): 62eaa808: 62eaaf24 prev_foot
07-28 11:25:45.617: A/libc(31297): 62eaa80c: ffffffff head
07-28 11:25:45.617: A/libc(31297): 62eaa810: 6e676973 fd
07-28 11:25:45.617: A/libc(31297): 62eaa814: 36206c61 bk
07-28 11:25:45.617: A/libc(31297): 62eaa818: 72502820 child[0]
07-28 11:25:45.617: A/libc(31297): 62eaa81c: 7365636f child[1]
07-28 11:25:45.617: A/libc(31297): 62eaa820: 62612073 parent
07-28 11:25:45.617: A/libc(31297): *** *** *** *** *** *** *** HEAP INFO *** *** *** *** *** *** ***
07-28 11:25:45.617: A/libc(31297): chunk ptr p->fd is invalid with any segment
07-28 11:25:45.617: A/libc(31297): *** *** *** *** *** *** *** HEAP INFO *** *** *** *** *** *** ***
07-28 11:25:45.617: A/libc(31297): chunk ptr p->bk is invalid with any segment
07-28 11:25:45.617: A/libc(31297): *** *** *** *** *** *** *** HEAP INFO *** *** *** *** *** *** ***
07-28 11:25:45.617: A/libc(31297): chunk ptr "prev" is inuse
07-28 11:25:45.617: A/libc(31297): *** *** *** *** *** *** *** HEAP INFO *** *** *** *** *** *** ***
07-28 11:25:45.617: A/libc(31297): chunk ptr "next" is invalid with any segment
07-28 11:25:45.617: A/libc(31297): *** *** *** *** *** *** *** HEAP INFO *** *** *** *** *** *** ***
07-28 11:25:45.617: A/libc(31297): chunk ptr p->child[0] is invalid with any segment
07-28 11:25:45.617: A/libc(31297): *** *** *** *** *** *** *** HEAP INFO *** *** *** *** *** *** ***
07-28 11:25:45.617: A/libc(31297): chunk ptr p->child[1] is invalid with any segment
07-28 11:25:45.617: A/libc(31297): *** *** *** *** *** *** *** HEAP INFO *** *** *** *** *** *** ***
07-28 11:25:45.617: A/libc(31297): chunk ptr p->parent is invalid with any segment
07-28 11:25:45.617: A/libc(31297): invalid address or address of corrupt block 0x62eaa808 passed to dlfree
07-28 11:25:45.617: A/libc(31297): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 31647 (AsyncTask #5)
07-28 11:25:46.087: D/dalvikvm(32216): Late-enabling CheckJNI
07-28 11:25:46.087: D/dalvikvm(32216): Try to disable coredump for pid 32216

07-28 11:25:46.087: D/dalvikvm(32216): Process 32216 nice name: com.ircm

Is there something i do wrong? Im running under 4.4.2