Ticket #2783 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

notebook -- ocassional "crap" in output like this print "\x01r\x01e580"

Reported by: was Owned by: boothby
Priority: major Milestone: sage-4.3
Component: notebook Keywords:
Cc: Work issues:
Report Upstream: Reviewers:
Authors: Merged in:
Dependencies: Stopgaps:

Description (last modified by was) (diff)

NOTE: If we can't find a way to reliably replicate this issue by June 1, 2008, then this ticket should be closed as invalid. It could have just been an issue with the particular alpha version of Sage I was using or something.

Hi,

I was very embarrassed while teaching today since maybe 15 times I got crap like this in the output from the notebook:

print "\x01r\x01e580"

This is from the synchronization code that *I* wrote. It "should" never happen. Anyways it does -- but of course only when 40 people are watching you :-(. Anyways, to solve this ticket should mean to simply look at that synchro code again, think about it, and rewrite it in a way that is _more_ robust.

William

Change History

comment:1 Changed 5 years ago by was

  • Description modified (diff)

comment:2 Changed 5 years ago by TimothyClemans

According to the ticket description the ticket should be marked as invalid since it's past June 1st.

comment:3 Changed 5 years ago by mabshoff

  • Status changed from new to closed
  • Resolution set to invalid
  • Milestone changed from sage-3.1.2 to sage-duplicate/invalid

Oh well: invalid.

comment:4 Changed 5 years ago by was

  • Status changed from closed to reopened
  • Resolution invalid deleted

I am reopening this since I am able to systematically replicate it now. All you have to do is use rpy from the notebook, and right after that this crap appears.

{{ import rpy rpy.std([1..1000]) / print "\x01r\x01e96" 288.67499025720952 }}

comment:5 Changed 5 years ago by was

{{ 
import rpy rpy.std([1..1000]) 
/// 
print "\x01r\x01e96" 288.67499025720952 
}}

comment:6 Changed 5 years ago by mabshoff

Any chance this could be related to using a terminal which has trouble with dealing with the escape characters related to color? We had similar issues with sage0 and IPython.

Cheers,

Michael

comment:7 Changed 5 years ago by mabshoff

  • Milestone changed from sage-duplicate/invalid to sage-3.1.3

comment:8 Changed 5 years ago by mabshoff

Isn't this likely some issue with escape character sequences from colored output being printed?

Cheers,

Michael

comment:9 Changed 5 years ago by was

Isn't this likely some issue with escape character sequences from colored output being printed?

I doubt it. rpy is a C-library interface to R.

Those special looking \x01r characters are synchronization control characters that Sage itself (in the file worksheet.py) puts in the output stream.

William

comment:10 Changed 5 years ago by mabshoff

ok, good to know.

Cheers,

Michael

comment:11 Changed 4 years ago by boothby

I still see these pop up sporadically, and I can't reproduce it reliably. Initial ticket said "mark as invalid by June 1, 2008", which is long past. Thoughts?

comment:12 Changed 4 years ago by timdumol

Has anyone had this problem recently?

comment:13 Changed 4 years ago by was

  • Status changed from new to closed
  • Resolution set to fixed

No, and using rpy2 instead doesn't produce it. Moreover, I completely rewrote from scratch the pexpect interfaces to use a much better way of synchronizing IO. The crap mentioned in this ticket was from the old way of synchronizing IO. So I'm closing this as fixed.

Note: See TracTickets for help on using tickets.