-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 using time slider #3371
Comments
I then upgraded to a new version. When EPL is now restarted by my supervisor, it crashes again when the slider for that document is used again. History views for other documents work fine. EPL version: 1.6.4 (6a38826) |
Having the exact same error, reproduced on 1.6.6 |
This could be related to: #2836 |
Is the crash still observed? I am trying to find what are the bugs that still need to be fixed. |
@muxator Yes, I can still trigger this error in a specific document. Unfornutately I cannot give you the exact content, but the stacktrace hopefully provides enough information:
|
@marcovtwout I'm going to assume since 1.8.4 you can't replicate this? I will close but if you can still replicate in 1.8.4 let me know and I will re-open and solve ASAP. |
I don't have the document readily available to reproduce the original error, but I'm not sure it is fixed yet. Comparing the code from two years ago and now, I see an extra condition check that calls |
ack, this should be fixed when #2911 lands. I'm on it now. This bug here is in the timeslider (calculating forward changesets) so I think I will be able to reproduce when importing crafted changesets. Of course it should never crash the instance (because malformed files could always be imported...), however I suspect this bug can happen during normal editing. Right now I only can reproduce within unit tests (easysync_tests.js) So it would be great in case you happen to get to this document again to at least run bin/checkPad.js on it There are two checks disabled in ace2_inner.js However, enabling those checks might render pads slow at least for |
I disagree. Note: Etherpad provide a setting to disallow unsupported files to be imported. I have fuzz testing for import, file contents and pretty significant contentcollector in unit and integration coverage. While it's plausible this case exists I'd say since the recent changes its improbable it can be reproduced. The edge case I can consider is if the pad contents was written in a previous version with some plugins enabled and settings changed from default. |
OK. Will look into this a little bit and report back. |
@JohnMcLear Alright! If I ever encounter the error again I will report back :) |
Awesome thanks! |
@JohnMcLear you are right. https://github.com/ether/etherpad-lite/blob/develop/src/node/handler/PadMessageHandler.js#L1306 getChangesetInfo is wrapped in try-catch so those exceptions don't make it crash anymore |
Thanks for the spot @webzwo0i .. Been balls deep in EP code for 6 month now so nice to know I can spot something I handled without a deep dive. |
Someone on my server used the "import" function on an SVG file. This put the XML source in the document which screwed it up. Trying to revert, they opened the history. When sliding the slider, Etherpad crashes:
The server was not supervised by a supervisor so it remained dead. I didn't start it again.
EPL version: 1.5.0 (89ad3cb)
The text was updated successfully, but these errors were encountered: