Giter VIP home page Giter VIP logo

Comments (16)

emcodemall avatar emcodemall commented on June 9, 2024

Hey Pablo,
i discovered the same error message but only when using the speech to text software "dragon naturally speaking". In difference to you, i only need to input 2-3 characters to make a client disconnect. Funny enough, the client that is really "editing the document" stays connected.

Please see my results here, you will need to "download" the video but only the last 20 seconds are of interest.
https://xdreamgroup-my.sharepoint.com/:v:/g/personal/harald_jordan_x-dream-media_com/EYMvU9t4K1tBm0d_-aOSwiQB-LB5RcdWbW5Ti4thUBtEkQ?e=ze330z

I was not yet able to find any pattern when this happens, it can go well for many sentences or it can break at the first x letters that dragon does input.
It worked with swellrt releases < 2.0.

What i did by now is trying to capture the key events dragon sends but it doesnt look like those make a great difference. Also i wrote some selenium tests inputting text by hitting keys and pasing from clipboard, this way the error is not reproduceable.

Any hint to about how to continue debugging this is very welcome!

from swellrt.

emcodemall avatar emcodemall commented on June 9, 2024

Without being sure that we face the same issue, i keep posting here because our error messages are the same.
I think i made some progress debugging this on client side:
As i can reproduce the issue easily, i subscribed to all events that are fired at the editor and looked out for some pattern that might cause this, but i did not find any. the only thing i noticed is that it looks that this warning often appears at the time of interest:
swellrt_beta-0.js:16864 [Violation] 'setTimeout' handler took 71ms

In my build, the line 16864 points to the inner function (...return function()) of this in the debug build:
function entry_0(jsFunction){
var stackIndex_0;
$stack_0[stackIndex_0 = ++$stackDepth_0] = entry_0;
($location_0[stackIndex_0] = 'Impl.java:' + '74' , cggcci).$clinit_Impl();
$stackDepth_0 = stackIndex_0 - 1;
return function(){
var stackIndex, returnTemp;
$stack_0[stackIndex = ++$stackDepth_0] = null;
if ($location_0[stackIndex] = 'Impl.java:' + '75' , isScript()) {
returnTemp = ($location_0[stackIndex] = 'Impl.java:' + '77' , cggcci).entry0(jsFunction, this, arguments);
$stackDepth_0 = stackIndex - 1;
return returnTemp;
}
else {
var __0 = ($location_0[stackIndex] = 'Impl.java:' + '79' , cggcci).entry0(jsFunction, this, arguments);
if (($location_0[stackIndex] = 'Impl.java:' + '78' , __0) != null) {
__0 = ($location_0[stackIndex] = 'Impl.java:' + '82' , __0).val;
}
returnTemp = ($location_0[stackIndex] = 'Impl.java:' + '84' , __0);
$stackDepth_0 = stackIndex - 1;
return returnTemp;
}
$stackDepth_0 = stackIndex - 1;
}
;
}

I am still struggeling with finding back from javascript to java code, i hoped this could be more helpful but it is my believe that this could be some track...

from swellrt.

pablojan avatar pablojan commented on June 9, 2024

There you are seeing the obfuscated javascript code generated from java.
In order to get useful information from code traces you must build the js client in development mode from source code.

Clone the repo and use following commands

# build server backend
./gradlew compileJava

# build js client in dev mode
./gradlew devWeb

# runs server
./gradlew run

from swellrt.

emcodemall avatar emcodemall commented on June 9, 2024

from swellrt.

pablojan avatar pablojan commented on June 9, 2024

My bad... I read it too fast!
Well, regarding the screenshot showing the error in the browser's console, I am not sure that both are related, "Illegal State Exception" and "ERROR[WaveWebSocketClient]".
To check this properly, I fixed the first exception in the develop/ branch.
About the second error, it seems a race condition. I paste below all the methods that can trigger this error. Also, I suggest to enable the following property to get detailed error messages:

    __swell_config = {
        captureExceptions: true,
    };

imagen
imagen

from swellrt.

emcodemall avatar emcodemall commented on June 9, 2024

from swellrt.

pablojan avatar pablojan commented on June 9, 2024

from swellrt.

emcodemall avatar emcodemall commented on June 9, 2024

from swellrt.

pablojan avatar pablojan commented on June 9, 2024

from swellrt.

emcodemall avatar emcodemall commented on June 9, 2024

from swellrt.

emcodemall avatar emcodemall commented on June 9, 2024

from swellrt.

emcodemall avatar emcodemall commented on June 9, 2024

from swellrt.

pablojan avatar pablojan commented on June 9, 2024

from swellrt.

emcodemall avatar emcodemall commented on June 9, 2024

from swellrt.

pablojan avatar pablojan commented on June 9, 2024

from swellrt.

emcodemall avatar emcodemall commented on June 9, 2024

from swellrt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.