sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

terminal write_data exception, triggered when opening an ipynb (?) #2833

Open haraldschilly opened 6 years ago

haraldschilly commented 6 years ago

while working in an ipynb file, I saw this

edit: I'll update this when I've figured out more about this

Uncaught TypeError: Cannot read property 'write_data' of undefined

             |     at https://cocalc.com/static/smc-d73a9dc28461a61f1d7c.cacheme.js?d73a9dc28461a61f1d7c:5:1867796                                                   +
             |     at Object.cb (https://cocalc.com/static/smc-d73a9dc28461a61f1d7c.cacheme.js?d73a9dc28461a61f1d7c:5:2452651)                                       +
             |     at https://cocalc.com/static/smc-d73a9dc28461a61f1d7c.cacheme.js?d73a9dc28461a61f1d7c:5:32710                                                     +
             |     at Object.cb (https://cocalc.com/static/smc-d73a9dc28461a61f1d7c.cacheme.js?d73a9dc28461a61f1d7c:5:2452468)                                       +
             |     at cb (https://cocalc.com/static/smc-d73a9dc28461a61f1d7c.cacheme.js?d73a9dc28461a61f1d7c:5:2466186)                                              +
             |     at t.value (https://cocalc.com/static/smc-d73a9dc28461a61f1d7c.cacheme.js?d73a9dc28461a61f1d7c:5:2462763)                                         +
             |     at t.value (https://cocalc.com/static/smc-d73a9dc28461a61f1d7c.cacheme.js?d73a9dc28461a61f1d7c:5:2463453)                                         +
             |     at Primus.<anonymous> (https://cocalc.com/static/smc-d73a9dc28461a61f1d7c.cacheme.js?d73a9dc28461a61f1d7c:5:2458071)                              +
             |     at Primus.emit (eval at e.exports (https://cocalc.com/static/1-d73a9dc28461a61f1d7c.cacheme.js?d73a9dc28461a61f1d7c:6:524199), <anonymous>:1:3451)+
             |     at done (eval at e.exports (https://cocalc.com/static/1-d73a9dc28461a61f1d7c.cacheme.js?d73a9dc28461a61f1d7c:6:524199), <anonymous>:1:27128)
file         |
path         | https://cocalc.com/projects/20e4a191-73ea-4921-80e9-0a5d792fc511/files/?session=default
williamstein commented 6 years ago

Were you also using a terminal? Looking at the code, this looks more likely to be something involving the terminal.

haraldschilly commented 6 years ago

could be, yes, there are more hits for the terminal. I haven't figured out more about this one, though. I'm closing the ticket.

haraldschilly commented 6 years ago

I hope it is ok to reopen this? I just saw it again in production. The notebook tab doesn't appear, just a spinning "loading" at the top. The path that should open is ./gap.ipynb (also in the URL).

I think the location in the code where it breaks is

if(!r._ignore)
{if(r._connected)return r.session.write_data(e),null!=(a=n(16).webapp_client.latency())?
(t=Math.min(1e4,20*a),setTimeout(r.reconnect_if_no_recent_data,t)):
void 0;r.session.reconnect(function(t){if(!t)return r.session.[!!! BREAK !!!]write_data(e)})}})

screenshot from 2018-07-16 13-12-47

williamstein commented 6 years ago

Just to be clear this is a terminal bug, right - nothing to do with ipynb...?