Realm notification subscription dispose

Hi @nirinchev Nikola,
hope everything is fine. (copying also my colleagues @Stefano_Gobbi @Alessandro_Facchini )
About our topic we stopped investigations on the specific Memory Leak topic while accessing the REALM DB since we understood that we had another kind of issue with some Garbage Collector configuration that we had to fix (if you are curious about the technicality I ask my developers to send you more details).

I’m instead asking your help to find out if you have any suggestion for another issue we are facing.
In our testing we often see in our logs the following error

03-16 15:14:55.810 26588 26835 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0xdc99f76d in tid 26835 (Thread Pool Wor)
03-16 15:14:55.810 26588 26588 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0xdc99f76d in tid 26588 (com.vimar.view)
03-16 15:14:55.810 26588 26588 I libc : Another thread contacted debuggerd first; not contacting debuggerd.
03-16 15:14:55.810 26588 26869 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0xdc99f76d in tid 26869 (Thread Pool Wor)
03-16 15:14:55.810 26588 26869 I libc : Another thread contacted debuggerd first; not contacting debuggerd.
03-16 15:14:55.810 2128 2128 W : debuggerd: handling request: pid=26588 uid=10057 gid=10057 tid=26835
03-16 15:14:55.869 26882 26882 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-16 15:14:55.869 26882 26882 F DEBUG : Build fingerprint: ‘samsung/beyondlqxx/beyondlq:7.1.2/QP1A.190711.020/G977UUCS5DTK2:user/release-keys’
03-16 15:14:55.869 26882 26882 F DEBUG : Revision: ‘0’
03-16 15:14:55.869 26882 26882 F DEBUG : ABI: ‘x86’
03-16 15:14:55.870 26882 26882 F DEBUG : pid: 26588, tid: 26835, name: Thread Pool Wor >>> com.vimar.view <<<
03-16 15:14:55.870 26882 26882 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xdc99f76d
03-16 15:14:55.870 26882 26882 F DEBUG : eax dc99f768 ebx 9d2c4214 ecx 86bebe34 edx 00000000
03-16 15:14:55.870 26882 26882 F DEBUG : esi dc99f768 edi 00000000
03-16 15:14:55.870 26882 26882 F DEBUG : xcs 00000073 xds 0000007b xes 0000007b xfs 0000003b xss 0000007b
03-16 15:14:55.870 26882 26882 F DEBUG : eip 9ca6536b ebp 9c2b4708 esp 9c2b4700 flags 00210286
03-16 15:14:55.874 26882 26882 F DEBUG :
03-16 15:14:55.874 26882 26882 F DEBUG : backtrace:
03-16 15:14:55.874 26882 26882 F DEBUG : #00 pc 000e336b /data/app/com.vimar.view-1/lib/x86/librealm-wrappers.so
03-16 15:14:55.874 26882 26882 F DEBUG : #01 pc 00407885 /data/app/com.vimar.view-1/lib/x86/librealm-wrappers.so
03-16 15:14:55.874 26882 26882 F DEBUG : #02 pc 000e3290 /data/app/com.vimar.view-1/lib/x86/librealm-wrappers.so
03-16 15:14:55.874 26882 26882 F DEBUG : #03 pc 001282a5 /data/app/com.vimar.view-1/lib/x86/librealm-wrappers.so
03-16 15:14:55.874 26882 26882 F DEBUG : #04 pc 00128249 /data/app/com.vimar.view-1/lib/x86/librealm-wrappers.so
03-16 15:14:55.874 26882 26882 F DEBUG : #05 pc 004364b5 /data/app/com.vimar.view-1/lib/x86/librealm-wrappers.so
03-16 15:14:55.874 26882 26882 F DEBUG : #06 pc 0043cb2e /data/app/com.vimar.view-1/lib/x86/librealm-wrappers.so
03-16 15:14:55.875 26882 26882 F DEBUG : #07 pc 001b6e47 /data/app/com.vimar.view-1/lib/x86/librealm-wrappers.so
03-16 15:14:55.875 26882 26882 F DEBUG : #08 pc 001b5c58 /data/app/com.vimar.view-1/lib/x86/librealm-wrappers.so
03-16 15:14:55.875 26882 26882 F DEBUG : #09 pc 001b5b1f /data/app/com.vimar.view-1/lib/x86/librealm-wrappers.so
03-16 15:14:55.875 26882 26882 F DEBUG : #10 pc 0017d277 /data/app/com.vimar.view-1/lib/x86/librealm-wrappers.so
03-16 15:14:55.875 26882 26882 F DEBUG : #11 pc 000f79a6 /data/app/com.vimar.view-1/lib/x86/librealm-wrappers.so (shared_realm_cancel_transaction+54)
03-16 15:14:55.875 26882 26882 F DEBUG : #12 pc 00002eeb anonymous:8b64d000
03-16 15:14:56.407 26882 26882 F DEBUG : pid: 26588, tid: 26835, pkg name: com.vimar.view
03-16 15:14:56.408 26882 26882 E DEBUG : error in chmod(/data/downloads/.tmp/.crashed_app, 0777) - 1 (Operation not permitted)
03-16 15:14:56.410 2472 26887 W ActivityManager: Force finishing activity com.vimar.view/.MainActivity
03-16 15:14:56.411 2128 2128 W : debuggerd: resuming target 26588
03-16 15:14:56.411 2472 2490 I BootReceiver: Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_TOMBSTONE)

Can you suggest any reading in order to see if we did something wrong or there is any patch that solves the problem?

As usual, thanks in advance and thanks for your prompt reply.
Massimo @Massimo_Ceccato

Hi @Massimo_Ceccato,

I made a special build of the Realm package with unstripped Android binaries that contain full debug information. Could you please incorporate it in your project and try to reproduce the crash? We should see full source information in the stack trace then.

To install the package from the nightly build follow the instructions in our Readme, and then use Realm.10.10.0-pr-2858.2091 in your project.

Regards,
Yavor

1 Like