Cobalt: Unexpected disconnects(Bad mac and other related issues)
I am seeing this error a lot. Any idea? I am running 3.4.0. The application would run for an hour or so and then sudently this exception would happen which kills the application. App is running on Ubuntu 22 with Java 17.
Received node Node[description=stream:error, content=[Node[description=bad-mac]]]
2023-05-22 21:39:35,625 SEVERE [ErrorHandler] (ForkJoinPool.commonPool-worker-1) Socket failure at CRYPTOGRAPHY
java.lang.RuntimeException: Detected a bad mac
at it.auties.whatsapp.socket.StreamHandler.digestError(StreamHandler.java:547)
at it.auties.whatsapp.socket.StreamHandler.digest(StreamHandler.java:88)
at it.auties.whatsapp.socket.SocketHandler.onMessage(SocketHandler.java:166)
at it.auties.whatsapp.socket.SocketSession.readMessages(SocketSession.java:122)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1395)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 38 (12 by maintainers)
I’m working on a big update which should fix the issue
I’ve finally fixed this annoying issue, i’ll push by next week the fix. Turns out there was a race condition i never noticed in the code
The release is out, my bad for taking my time You can test it out and let me know I have not seen any bad macs / disconnects after the update I’ve also added a reconnection system for network instabilities
this is still an issue, I’m looking to fix it asap
It still looks like this after running for a few hours
Should be a lot better in 0.0.1, please let me know
I am receiving a similar exception if i reuse a session after while:
I can confirm I’m getting the same error on 3.4.1 if that helps in any way.