realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.45k stars 1.75k forks source link

App crashed after implementing dexguard #7812

Closed souravsoftwareer closed 1 year ago

souravsoftwareer commented 1 year ago

[realm-core-11.7.0] Assertion failed: m_method_id != nullptr with (method_name, signature) = ["willSendNotifications", "()V"]

!!! IMPORTANT: Please report this at https://github.com/realm/realm-core/issues/new/choose 2023-05-02 14:44:02.666 20849-20849 libc A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) io.realm:realm-gradle-plugin:10.9.0 This happens when dex guard implemented
souravsoftwareer commented 1 year ago

??

clementetb commented 1 year ago

Hi, the function you are having issues with is annotated with @keep so it should be guarded automatically. It might be that dexguard is not processing these annotations.

You might find useful this comment where a user applied its own dexguard configuration to fix a similar issue.

https://github.com/realm/realm-java/issues/7514#issuecomment-871361571

github-actions[bot] commented 1 year ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.