Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcurrentModificationException #70

Closed
maxencehenneron opened this issue Jan 6, 2018 · 3 comments
Closed

ConcurrentModificationException #70

maxencehenneron opened this issue Jan 6, 2018 · 3 comments
Labels
Bug A JRakNet bug. v2.0 An issue relating to the second version of JRakNet

Comments

@maxencehenneron
Copy link

The recoveryQueue in RakNetSession.java isn't synchronized, causing such exceptions:

java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437)
at java.util.HashMap$ValueIterator.next(HashMap.java:1466)
at net.marfgamer.jraknet.session.RakNetSession.update(RakNetSession.java:837)
at net.marfgamer.jraknet.server.RakNetServer.start(RakNetServer.java:803)
at net.marfgamer.jraknet.server.RakNetServer$1.run(RakNetServer.java:837)

@whirvis
Copy link
Owner

whirvis commented Jan 11, 2018

Thanks for reporting this, I'll get onto fixing it right away!

@whirvis
Copy link
Owner

whirvis commented Jan 11, 2018

I have created concurrent types for ByteMap, ShortMap, IntMap, and LongMap with their respective names but with Concurrent prefixed behind them. They function the exact the same with their code completely unchanged except for the fact that they extend ConcurrentHashMap rather than just HashMap :) This issue should no longer happen. Sorry for taking so long to respond, I was gone from GitHub for much longer than I normally am so I did not see this until I finally logged back in.

whirvis added a commit that referenced this issue Jan 11, 2018
I decided to revert to #69 based on @johnnywoof's request and fixed another ConcurrentModificationException (sneaky little bastards) discovered by @dernise.
@whirvis whirvis closed this as completed Jan 11, 2018
@HoverEpic
Copy link

Thanks a lot.

The Dragonet team.

@whirvis whirvis added Bug A JRakNet bug. Known Fix labels Jan 13, 2018
whirvis added a commit that referenced this issue Nov 6, 2019
I decided to revert to #69 based on @johnnywoof's request and fixed another ConcurrentModificationException (sneaky little bastards) discovered by @dernise.
whirvis added a commit that referenced this issue Nov 6, 2019
I decided to revert to #69 based on @johnnywoof's request and fixed another ConcurrentModificationException (sneaky little bastards) discovered by @dernise.
whirvis added a commit that referenced this issue Nov 10, 2019
I decided to revert to #69 based on @johnnywoof's request and fixed another ConcurrentModificationException (sneaky little bastards) discovered by @dernise.
whirvis added a commit that referenced this issue Nov 10, 2019
I decided to revert to #69 based on @johnnywoof's request and fixed another ConcurrentModificationException (sneaky little bastards) discovered by @dernise.
whirvis added a commit that referenced this issue Feb 10, 2020
I decided to revert to #69 based on @johnnywoof's request and fixed another ConcurrentModificationException (sneaky little bastards) discovered by @dernise.
whirvis added a commit that referenced this issue Feb 11, 2020
I decided to revert to #69 based on @johnnywoof's request and fixed another ConcurrentModificationException (sneaky little bastards) discovered by @dernise.
whirvis added a commit that referenced this issue Feb 22, 2020
I decided to revert to #69 based on @johnnywoof's request and fixed another ConcurrentModificationException (sneaky little bastards) discovered by @dernise.
whirvis added a commit that referenced this issue Feb 22, 2020
I decided to revert to #69 based on @johnnywoof's request and fixed another ConcurrentModificationException (sneaky little bastards) discovered by @dernise.
@whirvis whirvis added the v2.0 An issue relating to the second version of JRakNet label May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A JRakNet bug. v2.0 An issue relating to the second version of JRakNet
Projects
None yet
Development

No branches or pull requests

3 participants