Just started playing with Gnoga, my first project is data logging and display from a cheap DAQ (measuring voltages, switching battery charger/test loads to measure battery capacity.
I'm setting this up as a multi-connect, displaying graphs on a Canvas. Couple of questions: 1) How do I interrogate a connection to find out its screen size, so I can size the graph for a browser running on a laptop, a tablet, or a smartphone? I'm guessing, given procedure Default (Main_Window : in out Gnoga.Gui.Window.Window_Type'Class; Connection : access Gnoga.Application.Multi_Connect.Connection_Holder_Type) I can interrogate Connection somehow? 2) I've seen exceptions linked to dropped connections, e.g. 2018-01-06 21:40:55.55 : Ping on websocket - 1 2018-01-06 21:40:55.55 : Ping on websocket - 2 2018-01-06 21:41:55.55 : Ping on websocket - 1 2018 -01-06 21:41:55.55 : Ping on websocket - 2 2018-01-06 21:42:55.55 : Ping on websocket - 1 2018-01-06 21:48:44.06 : Websocket connection closed - ID 1 2018-01-06 21:48:44.06 : Deleting connection - 1 2018-01-06 21:48:44.06 : Ping 1 error. 2018-01-06 21:48:44.06 : raised ADA.IO_EXCEPTIONS.END_ERROR : WebSocket is being closed Call stack traceback locations: 0x558f8990b219 0x558f8990e257 0x558f899a985d 0x7f5c1c3d2222 0x7f5c1bc02492 0x7f5c1b526afd 0xfffffffffffffffe ... now addr2line doesn't seem to like generating backtraces (though I think I installed gnoga with debug info). addr2line --exe=bin/voltmeter 0x7fb9fbcceca3 0x7fb9fbcd094a 0x55aacc6f57b0 0x55aacc79f319 0x55aacc7a2514 0x55aacc823008 0x55aacc83d3aa 0x55aacc877f8e 0x55aacc878428 0x55aacc84d2db 0x55aacc7c107b 0x55aacc7c2456 0x55aacc88848c 0x55aacc83e3fb 0x7fb9fbfbe222 0x7fb9fb7ee492 0x7fb9fb112afd 0xfffffffffffffffe ??:0 ??:0 ??:0 ??:0 ??:0 ... Near as I can tell, https://www.reddit.com/r/ada/comments/68ibwl/exception_traceback_in_gna tgcc_6/ points at PIE being involved ... any suggestions how to get good backtraces (preferably without addr2line)? Cheers, and thanks for a great tool! -- Brian ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gnoga-list mailing list Gnoga-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gnoga-list