Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-969

[librealmc.so] array_direct.hpp - realm::IndexArray::_index_string_find_all_prefix

      How frequently does the bug occur?

      Sometimes

      Description

      We are seeing the following crashes reported on our Android App (distributed via Play Store).

      Stacktrace & log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
      pid: 0, tid: 17767 >>> com.moviebase <<<
      
      backtrace:
        #00  pc 0x00000000005b61a0  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::IndexArray::_index_string_find_all_prefix(std::__ndk1::set<long, std::__ndk1::less<long>, std::__ndk1::allocator<long>>&, realm::StringData, char const*) const+176) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #01  pc 0x00000000005b6358  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::IndexArray::_index_string_find_all_prefix(std::__ndk1::set<long, std::__ndk1::less<long>, std::__ndk1::allocator<long>>&, realm::StringData, char const*) const+699) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #02  pc 0x00000000005b9cc4  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::StringIndex::find_all_fulltext(std::__ndk1::vector<realm::ObjKey, std::__ndk1::allocator<realm::ObjKey>>&, realm::StringData) const+88) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #03  pc 0x00000000005f9748  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::StringNodeFulltext::_search_index_init()+495) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #04  pc 0x0000000000532094  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::BoolNode<realm::Equal>::init(bool)+153) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #05  pc 0x0000000000538ad0  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::IntegerNode<realm::ArrayInteger, realm::Equal>::init(bool)+153) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #06  pc 0x00000000005fa348  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::ExpressionNode::init(bool)+153) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #07  pc 0x00000000005fa348  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::ExpressionNode::init(bool)+153) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #08  pc 0x0000000000524344  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::Query::init() const+1760) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #09  pc 0x00000000005244e8  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::Query::do_find_all(realm::QueryStateBase&) const+1288) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #10  pc 0x00000000006255a4  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::TableView::do_sync()+484) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #11  pc 0x00000000003b04f8  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::_impl::ResultsNotifier::run()+182) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #12  pc 0x00000000003aad78  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::_impl::RealmCoordinator::run_async_notifiers()+1011) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #13  pc 0x00000000003aa944  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (realm::_impl::RealmCoordinator::on_change()+875) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #14  pc 0x0000000000412b3c  /data/app/~~qw2QM8GVi8D4kDpNqpb8dw==/com.moviebase-X0_GN51lL904QAFk2NufCw==/lib/arm64/librealmc.so (void* std::__ndk1::__thread_proxy<std::__ndk1::tuple<std::__ndk1::unique_ptr<std::__ndk1::__thread_struct, std::__ndk1::default_delete<std::__ndk1::__thread_struct>>, (anonymous namespace)::DaemonThread::DaemonThread()::$_0>>(void*)+277) (BuildId: aa6e02b9a2f0043624262102d3146bd74c01dd87)
        #15  pc 0x00000000000b6668  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
        #16  pc 0x00000000000532cc  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
      

      Can you reproduce the bug?

      No

      Reproduction Steps

      We started to use the search query in Realm, where the user can enter a search with limited characters to ^A-Za-z0-9.
      Example:

      // realm object
         @FullText
         var title: String? = null 
      
      // realm query example
        query("title TEXT scifi*")
      

      Version

      1.12.0

      What Atlas App Services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      Android 10 - 14

      Build environment

      No response

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: