Hello again,

I've gone through all demo, test and tutorial, the ones which failed are:
Forms, Tutorial_08 and 09 (that use forms)
Test env: last Gnoga on SF, GNAT GPL 2015 on MacOS 10.11.4 with Safari.

Then I use "gdb bin/forms" with "catch expression" and "run" then click on 
button "send to demo via post":

Application root :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/
Executable at    :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/bin/
HTML root        :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/html/
Upload directory :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/upload/
Templates root   
:/Users/blady/Documents/Programmation/GNOGA/gnoga-code/templates/
/js  at          :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/js/
/css at          :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/css/
/img at          :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/img/
Boot file        :debug.html
HTTP listen on   ::8080
Press Ctrl-C to close server.
2016-04-30 18:05:51.41 : HTTP Server Started
[New Thread 0x1313 of process 62577]
[New Thread 0x1403 of process 62577]
[New Thread 0x1503 of process 62577]
[New Thread 0x1603 of process 62577]
2016-04-30 18:05:53.49 : New connection - ID 1
2016-04-30 18:06:00.61 : On submit.
2016-04-30 18:06:02.95 : fspec = 
2016-04-30 18:06:02.95 : Some_Text = 
[New Thread 0x1217 of process 62577]
[Switching to Thread 0x1603 of process 62577]

Catchpoint 1, GNAT.SOCKETS.SERVER.CONNECTION_ERROR at 0x000000010002bf91 in 
gnat.sockets.server.read (client=..., factory=...)
    at 
/Users/blady/Documents/Programmation/GNOGA/gnoga-code/deps/simple_components/atomic-access/gcc-long-offsets/gnat-sockets-server.adb:990
990              raise Connection_Error;
(gdb) bt
#0  <__gnat_debug_raise_exception> (e=0x1003a4ae0) at s-excdeb.adb:43
#1  0x000000010021b5cb in ada.exceptions.complete_occurrence (x=0x1007047d0)
    at a-except.adb:924
#2  0x000000010021b5d7 in ada.exceptions.complete_and_propagate_occurrence (
    x=0x1007047d0) at a-except.adb:933
#3  0x000000010021b62e in <__gnat_raise_exception> (e=0x1003a4ae0, message=...)
    at a-except.adb:975
#4  0x000000010002bf91 in gnat.sockets.server.read (client=..., factory=...)
    at 
/Users/blady/Documents/Programmation/GNOGA/gnoga-code/deps/simple_components/atomic-access/gcc-long-offsets/gnat-sockets-server.adb:990
#5  0x00000001000366e2 in gnat.sockets.server.worker (<_task>=0x100703960)
    at 
/Users/blady/Documents/Programmation/GNOGA/gnoga-code/deps/simple_components/atomic-access/gcc-long-offsets/gnat-sockets-server.adb:2493
#6  0x000000010020c518 in ?? ()
#7  0x00007fff8c40799d in _pthread_body ()
   from /usr/lib/system/libsystem_pthread.dylib
#8  0x00007fff8c40791a in _pthread_start ()
   from /usr/lib/system/libsystem_pthread.dylib
#9  0x00007fff8c405351 in thread_start ()
   from /usr/lib/system/libsystem_pthread.dylib
#10 0x0000000000000000 in ?? ()

The source of the exception is different with Firefox:

Application root :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/
Executable at    :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/bin/
HTML root        :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/html/
Upload directory :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/upload/
Templates root   
:/Users/blady/Documents/Programmation/GNOGA/gnoga-code/templates/
/js  at          :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/js/
/css at          :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/css/
/img at          :/Users/blady/Documents/Programmation/GNOGA/gnoga-code/img/
Boot file        :debug.html
HTTP listen on   ::8080
Press Ctrl-C to close server.
2016-04-30 19:05:29.42 : HTTP Server Started
2016-04-30 19:05:39.62 : New connection - ID 1
2016-04-30 19:05:44.90 : Websocket connection closed - ID 1
2016-04-30 19:05:44.90 : Deleting connection - 1
[New Thread 0x1313 of process 81844]
[New Thread 0x1403 of process 81844]
[New Thread 0x1503 of process 81844]
[New Thread 0x1603 of process 81844]
[New Thread 0x1703 of process 81844]
[Switching to Thread 0x1313 of process 81844]

Catchpoint 1, CONSTRAINT_ERROR at 0x000000010016e146 in 
gnoga.server.connection.connection_manager.connection_socket (<_object>=..., 
id=1)
    at 
/Users/blady/Documents/Programmation/GNOGA/gnoga-code/src/gnoga-server-connection.adb:1027
1027             return Socket_Map.Element (ID);
(gdb) bt
#0  <__gnat_debug_raise_exception> (e=0x1003a9d80) at s-excdeb.adb:43
#1  0x000000010021b5cb in ada.exceptions.complete_occurrence (x=0x101400480)
    at a-except.adb:924
#2  0x000000010021b5d7 in ada.exceptions.complete_and_propagate_occurrence (
    x=0x101400480) at a-except.adb:933
#3  0x000000010021b62e in <__gnat_raise_exception> (e=0x1003a9d80, message=...)
    at a-except.adb:975
#4  0x000000010013b3a0 in gnoga.server.connection.socket_maps.element (
    container=..., key=1)
    at 
/usr/local/gnat-2015/lib/gcc/x86_64-apple-darwin13.4.0/4.9.3/adainclude/a-coorma.adb:505
#5  0x000000010016e146 in 
gnoga.server.connection.connection_manager.connection_socket (<_object>=..., 
id=1)
    at 
/Users/blady/Documents/Programmation/GNOGA/gnoga-code/src/gnoga-server-connection.adb:1027
#6  0x000000010016e3fb in 
<gnoga__server__connection__connection_manager__connection_socketP> 
(<_object>=..., id=1)
    at 
/Users/blady/Documents/Programmation/GNOGA/gnoga-code/src/gnoga-server-connection.adb:1023
#7  0x000000010017f387 in gnoga.server.connection.flush_buffer (id=1)
    at 
/Users/blady/Documents/Programmation/GNOGA/gnoga-code/src/gnoga-server-connection.adb:1829
#8  0x00000001001fe2c4 in gnoga.application.multi_connect.on_connect (id=1, 
    connection=0x700000a2c980, <connectionL>=0)
    at 
/Users/blady/Documents/Programmation/GNOGA/gnoga-code/src/gnoga-application-multi_connect.adb:110
#9  0x000000010016eb67 in gnoga.server.connection.event_task_type (
    <_task>=0x100702f70)
    at 
/Users/blady/Documents/Programmation/GNOGA/gnoga-code/src/gnoga-server-connection.adb:1088
#10 0x000000010020c518 in ?? ()
#11 0x00007fff8c40799d in _pthread_body ()
   from /usr/lib/system/libsystem_pthread.dylib
#12 0x00007fff8c40791a in _pthread_start ()
   from /usr/lib/system/libsystem_pthread.dylib
#13 0x00007fff8c405351 in thread_start ()
   from /usr/lib/system/libsystem_pthread.dylib
#14 0x0000000000000000 in ?? ()

It is just fist elements of test.
My first guess is that occurrences of Gnoga internal exception are masked and 
may lead to connection error.
Thus it is not so easy to find the root cause.
Same test on Linux or Windows would be welcome.

Is it possible for you to run your program with gdb catch expression then 
backtrack display?

Regards, Pascal.
http://blady.pagesperso-orange.fr


> Le 30 avr. 2016 à 10:58, Pascal <blady-...@users.sf.net> a écrit :
> 
> Hello Jeff and Jean-Pierre,
> 
> Are your use context related to the one I had reported beginning of last 
> week? 
> CONNECTION_ERROR (Dispatch Error log) after End_Application call with 2 
> running Ada tasks.
> 
> To avoid a regression I will now test all Gnoga tutorials, demos and tests 
> programs.
> I'll keep you informed.
> 
> Regards, Pascal.
> http://blady.pagesperso-orange.fr
> 
> 
>> Le 29 avr. 2016 à 18:48, Jeffrey R. Carter <jrcar...@acm.org> a écrit :
>> 
>> On 04/29/2016 07:07 AM, Jean-Pierre Rosen wrote:
>>> I want now to change cards by clicking on a button; from the on_click
>>> event, I do a Show_Card, and at that point I get a "dispatch error",
>>> with no other indications. This seems to trigger a cascade of
>>> exceptions, because the connection is lost, then some parts of Gnoga
>>> seem to try to use the closed connection...
>>> 
>> This part of your problem sounds similar to the problem I reported here 
>> (subject Gnoga Crashes), which also has a log msg of "Dispatch Error", and 
>> apparent attempts to use a closed connection. My program (the Mine_Detector 
>> demo) doesn't use cards, however.
>> 
>> -- 
>> Jeff Carter
>> "My dear Mrs. Hemoglobin, when I first saw you, I
>> was so enamored with your beauty I ran to the basket,
>> jumped in, went down to the city, and bought myself a
>> wedding outfit."
>> Never Give a Sucker an Even Break
>> 111
> 


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to