-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Crash when sending very large message with debug on #123
Comments
Interesting, does your VM crash or do you get some sort of Error/Exception? |
Out of memory exception, if I remember correctly. |
You should use the VM Xmx option to prevent this error. You probably already know about Xmx but here is a link to that topic: |
Did I mention I'm running on Android? I'm not sure if there's a way to do this on Android. According to this: |
An other way is not to use so much memory... One think i wanted to do anyway is to allow to receive fragemented frames properly. Currently fragmented frames will be stored until all fragments of a frame are received and then delivered as one big frame. But receiving frames directly via an onFragment method would allow you to shrink the framebuffers size. Would that help? |
Well, actually, I'm sending these ginormous packages. They are sent and received (on the remote side) properly, and the only problem is with the debug prints. |
I'd suggest that you disable the debug prints... |
Look, the problem is solved as far as I am concerned. If you want the fix, cool, if you don't, I'll just add it manually to future versions. I just wanted to share. |
When using debug prints, sending long messages crashes. I made a change to FramedataImpl1.toString() to fix this:
200 should be replaced with a proper value/constant, of course.
The text was updated successfully, but these errors were encountered: