Menu

#46 tutorial_01 immediately looses connection to browser

1.6
closed
Blady
None
2022-03-20
2020-05-21
Rolf Ebert
No

After starting tutorial_01 on a Debian box and connecting to it from a Windows Firefox (V68.0.1) I get the following output:

re@z2:~/Devel/gnoga-code/tutorial/tutorial-01$ ../../bin/tutorial_01                                                  
Gnoga            :1.2b                                                                                                
Application root :/home/re/Devel/gnoga-code/                                                                          
Executable at    :/home/re/Devel/gnoga-code/bin/                                                                      
HTML root        :/home/re/Devel/gnoga-code/html/                                                                     
Upload directory :/home/re/Devel/gnoga-code/upload/                                                                   
Templates root   :/home/re/Devel/gnoga-code/templates/                                                                
/js  at          :/home/re/Devel/gnoga-code/js/                                                                       
/css at          :/home/re/Devel/gnoga-code/css/                                                                      
/img at          :/home/re/Devel/gnoga-code/img/                                                                      
Boot file        :boot.html                                                                                           
HTTP listen on   ::5555                                                                                               
2020-05-21 11:55:20.89 : HTTP Server Started                                                                          
2020-05-21 11:56:25.09 : New connection - ID 1                                                                        
2020-05-21 11:56:28.49 : Error Try_Execute - 1                                                                        
2020-05-21 11:56:28.49 : raised GNOGA.SERVER.CONNECTION.SCRIPT_ERROR : Timeout error, no browser response for: ws.send
 ("S 2|"+eval ("$(window).width();"));                                                                                
Call stack traceback locations:                                                                                       
0x561fcf9a15a0 0x561fcf9a273f 0x561fcf9cdec0 0x561fcf9cdfef 0x561fcf9c3214 0x561fcfa0f06a 0x561fcfa162be 0x561fcf9c289
d 0x561fcf9e88ce 0x561fcfa06e31 0x561fcfa0a3ee 0x561fcf8b8a32 0x561fcf8b9e38 0x7fe1bdf84099 0x561fcf8b85b8 0xfffffffff
ffffffe                                                                                                               

2020-05-21 11:56:28.49 : Error Execute_Script - 1                                                                     
2020-05-21 11:56:28.49 : raised GNOGA.SERVER.CONNECTION.CONNECTION_ERROR : Socket Error during execute of : $(window).
width();                                                                                                              
Call stack traceback locations:                                                                                       
0x561fcf9a24dc 0x561fcf9a273f 0x561fcf9cdec0 0x561fcf9cdfef 0x561fcf9c3214 0x561fcfa0f06a 0x561fcfa162be 0x561fcf9c289
d 0x561fcf9e88ce 0x561fcfa06e31 0x561fcfa0a3ee 0x561fcf8b8a32 0x561fcf8b9e38 0x7fe1bdf84099 0x561fcf8b85b8 0xfffffffff
ffffffe                                                                                                               

2020-05-21 11:56:33.49 : Error Try_Execute - 1                                                                        
2020-05-21 11:56:33.49 : raised GNOGA.SERVER.CONNECTION.SCRIPT_ERROR : Timeout error, no browser response for: ws.send
 ("S 3|"+eval ("$(window).width();"));                                                                                
Call stack traceback locations:                                                                                       
0x561fcf9a15a0 0x561fcf9a2cbb 0x561fcf9cdec0 0x561fcf9cdfef 0x561fcf9c3214 0x561fcfa0f06a 0x561fcfa162be 0x561fcf9c289
d 0x561fcf9e88ce 0x561fcfa06e31 0x561fcfa0a3ee 0x561fcf8b8a32 0x561fcf8b9e38 0x7fe1bdf84099 0x561fcf8b85b8 0xfffffffff
ffffffe                                                                                                               

2020-05-21 11:56:33.49 : Error Execute_Script after retrying - 1                                                      
2020-05-21 11:56:33.49 : raised GNOGA.SERVER.CONNECTION.CONNECTION_ERROR : Socket Error during execute of : $(window).
width();                                                                                                              
Call stack traceback locations:                                                                                       
0x561fcf9a24dc 0x561fcf9a2cbb 0x561fcf9cdec0 0x561fcf9cdfef 0x561fcf9c3214 0x561fcfa0f06a 0x561fcfa162be 0x561fcf9c289
d 0x561fcf9e88ce 0x561fcfa06e31 0x561fcfa0a3ee 0x561fcf8b8a32 0x561fcf8b9e38 0x7fe1bdf84099 0x561fcf8b85b8 0xfffffffff
ffffffe                                                                                                               

2020-05-21 11:56:35.63 : Websocket connection closed - ID 1                                                           
2020-05-21 11:56:35.63 : Deleting connection - 1                                                                      
2020-05-21 11:56:35.63 : HTTP Server Stopping                                                                         

Execution of ../../bin/tutorial_01 terminated by unhandled exception                                                  
raised GNOGA.SERVER.CONNECTION.CONNECTION_ERROR : Invalid ID  1                                                       
Call stack traceback locations:                                                                                       
0x561fcf9a32bc 0x561fcf9cdec0 0x561fcf9cdfef 0x561fcf9c3214 0x561fcfa0f06a 0x561fcfa162be 0x561fcf9c289d 0x561fcf9e88c
e 0x561fcfa06e31 0x561fcfa0a3ee 0x561fcf8b8a32 0x561fcf8b9e38 0x7fe1bdf84099 0x561fcf8b85b8 0xfffffffffffffffe

At 11:56:25.09 I successfully connected the browser. I did not click the OK button. Three seconds later start the repeated exception reports. At 11:56:35 I clicked the OK button. that stopped the application program. It also showd a error message in the browser window: "Server connection lost"

I checked out gnoga this morning on the master branch and compiled it using gcc-8.3 (default Debian compiler)

Discussion

  • Blady

    Blady - 2020-05-22

    You're on master an old version branch (1.2a). Could you try again with a newer version on 1.5a last stable branch?
    https://sourceforge.net/p/gnoga/code/ci/dev_1.5/tree/

     
  • Tama McGlinn

    Tama McGlinn - 2020-08-19

    It is customary when using git to have the master branch point at the latest stable branch. Is there any reason not to for gnoga?

     
  • Blady

    Blady - 2020-08-21

    The master branch is historically managed by David, though he hasn't done it for a while. Bring the point on the Gnoga mailing list if you consider it is worth to do it so.

     

    Last edit: Blady 2021-02-10
  • Blady

    Blady - 2021-02-10
    • status: open --> pending
     
  • Blady

    Blady - 2021-04-17

    I can reproduce the issue.
    Indeed recent browsers like Firefox block Javascript execution with alert popup and prevent to answer Gnoga server which issues a timeout exception. By default the timeout value is 3 s. You must thus close the popup before ;-) to avoid exceptions. Alert popup should be avoided.

     
  • Blady

    Blady - 2022-03-20
    • status: pending --> closed
    • assigned_to: Blady
    • Milestone: Ongoing --> 1.6
     
  • Blady

    Blady - 2022-03-20

    I'll add the previous comment to documentation, Pascal.
    Closed if there are no other errors.

     

Log in to post a comment.