question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash: E/REALM: could not create WeakRealmNotifier ALooper message pipe: Too many open files

See original GitHub issue

While trying to determine if I have any memory leaks, I now trigger a garbage collection manually at the end of a long running process (many network requests with Retrofit composed using RxJava).

While running the profiler, I got this error, which seems very similar to #4002

E/REALM: could not create WeakRealmNotifier ALooper message pipe: Too many open files.
E/REALM: uncaught exception in notifier thread: St12system_error: Bad file descriptor
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 10120 (HandlerThread 1)

I though I should report this. Any idea what could be causing it? #4002 turned out to be a Realm bug.

Is there something I could be doing wrong and trigger this error? I keep Realm connections open only for the time I need them.

Version of Realm and tooling

Realm version(s): 4.3.4

Realm sync feature enabled: no

Android Studio version: 3.0.1

Which Android version and device: Android 7.0, Samsung S7

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Zhuindencommented, May 30, 2018

Kind of, there is Realm.getGlobalInstanceCount(realmConfiguration)

0reactions
nkanellopouloscommented, May 30, 2018

@cmelchior Is there an API to check the number of open realm connections?

This would really help when debugging anything related to Realm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to open a realm at path: open() failed: Too many open ...
I have an android application which I do many realm operations. I tried to use handler threads to faster the database operations however ......
Read more >
Failed to create pipes, error=Too many open files or vasd high ...
Receiving message in syslog: Failed to create pipes, error=Too many open files 4265300.
Read more >
<com.samsung.android.samsungpositioning>.apk
This report is generated from a file or URL submitted to this webservice on August 8th 2019 ... could not create WeakRealmNotifier ALooper...
Read more >
Even with 90000 NOFILE mongo crashes with Too many open ...
I found the problem which is not related to mongoDB. I had a file descriptor leak on another process and it sucked our...
Read more >
Too many open files" error occurs? - Nim forum
But, when I open a lot of files a got the message and the program crash: Exception message: Too many open files Exception...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found