realm-java icon indicating copy to clipboard operation
realm-java copied to clipboard

App crashing with Realm error

Open deepak2510 opened this issue 11 years ago • 9 comments

My app suddenly crashed with this error : java.util.concurrent.TimeoutException: io.realm.internal.TableView.finalize() timed out after 10 seconds : at io.realm.internal.TableView.finalize(TableView.java:123)

Anything I must be doing wrong ?

Thanks !

deepak2510 avatar Oct 28 '15 17:10 deepak2510

same with #1599

yaming116 avatar Oct 29 '15 02:10 yaming116

@deepak2510 Thank you for reporting. What version of Realm are you using? If you can provide us with an overview of which devices you see the these crashe, it can be useful to us.

dalinaum avatar Oct 29 '15 03:10 dalinaum

@dalinaum I am using 0.82.0. I saw this crash on my Nexus 6. I can't say for sure, but I think it might have to do with a lot of table opening and closing calls happening quickly in succession, although I might be wrong. Thank you for taking a look at this :+1:

deepak2510 avatar Oct 29 '15 05:10 deepak2510

@deepak2510 We fixed a bug in 0.82.2. The bug could cause a timeout in finalisers. Please consider to upgrade to a newer version of Realm.

kneth avatar Oct 30 '15 10:10 kneth

Thanks Kenneth. I tried updating the version in build.gradle but I get DEX errors on compile. Am I missing something ?

On Fri, Oct 30, 2015 at 3:39 AM, Kenneth Geisshirt <[email protected]

wrote:

@deepak2510 https://github.com/deepak2510 We fixed a bug in 0.82.2. The bug could cause a timeout in finalisers. Please consider to upgrade to a newer version of Realm.

— Reply to this email directly or view it on GitHub https://github.com/realm/realm-java/issues/1691#issuecomment-152489067.

deepak2510 avatar Oct 30 '15 16:10 deepak2510

When I try updating to version 0.84.2 I get this error : Error:Execution failed for task ':app:dexDebug'.

com.android.ide.common.internal.LoggedErrorException: Failed to run command: /Applications/adt-bundle-mac-x86_64-20140702/sdk/build-tools/21.1.1/dx --dex --no-optimize --output /Users/ubhagde/AndroidStudioProjects/Krsna/app/build/intermediates/dex/debug --input-list=/Users/ubhagde/AndroidStudioProjects/Krsna/app/build/intermediates/tmp/dex/debug/inputList.txt Error Code: 2 Output: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502) at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277) at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491) at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168) at com.android.dx.merge.DexMerger.merge(DexMerger.java:189) at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:302) at com.android.dx.command.dexer.Main.run(Main.java:245) at com.android.dx.command.dexer.Main.main(Main.java:214) at com.android.dx.command.Main.main(Main.java:106)

deepak2510 avatar Oct 30 '15 16:10 deepak2510

Hello @deepak2510. The number of your methods reaches 65536.

You can use Multidex to resolve this.

dalinaum avatar Oct 31 '15 11:10 dalinaum

Thanks a lot !

On Sat, Oct 31, 2015 at 4:24 AM, LYK [email protected] wrote:

Hello @deepak2510 https://github.com/deepak2510. The number of your methods reaches 65536.

You can use Multidex http://developer.android.com/tools/building/multidex.html to resolve this.

— Reply to this email directly or view it on GitHub https://github.com/realm/realm-java/issues/1691#issuecomment-152725270.

deepak2510 avatar Oct 31 '15 16:10 deepak2510

@deepak2510 Good. I'll close this issue. If you encounter further problems, please feel free to reopen this or create a new issue.

dalinaum avatar Nov 01 '15 02:11 dalinaum