Menu

#184 Excessive X traffic in response to key press in editor window

Undefined
open
None
Bug_Report
2015-11-16
2015-07-09
No

When using codeblocks with a remote X display over a wide area network, key press takes approx 1 second to register. gedit key press over same network exhibits no perceptible delay.

While trying to troubleshoot, I ran wireshark to monitor the network traffic between the server and client. Each keypress in the editor window is triggering roughly 25 round trip calls to the X server. The duration of these ~25 calls corresponds to the delay observed in the editor window.

Environment
server connection via ssh -X
30ms ping to server
100mb/s bandwidth

Discussion

  • Teodor Petrov

    Teodor Petrov - 2015-07-09

    Does this same problem happens with Scite, Geany or any other Scintilla based editor?

     
  • James P Michels III

    I just tested scite. scite is very responsive. About as responsive as gedit. No noticeable delay with scite.

     
  • Teodor Petrov

    Teodor Petrov - 2015-07-09

    Can you try to disable code completion plugin or any other non-core plugins?

    Also can you do some profiling with perf/vtune/something else?

     

    Last edit: Teodor Petrov 2015-07-09
  • James P Michels III

    I've tried disabling plugins with no success. Can you give me an idea what you are looking for with perf/vtune? The delay is easily explained by the X traffic and confirmed by wireshark. 25 messages times 30ms delay = 750ms.

    Steps to reproduce.
    1) Run codeblocks with a remote X display
    2) Start capturing X traffic
    3) Press a key in editor window.
    4) See 25 X messages between X client and server.

     
  • Teodor Petrov

    Teodor Petrov - 2015-07-10

    I want to see the functions in our code that cause the transmission of these X messages. I think perf/vtune will show this.

    Unfortunately I don't have a proper setup to reproduce this problem easily.

     
  • James P Michels III

    Unfortunately, I don't have the proper setup to perform the tests that you are requesting. That said, the steps that I outlined above can be used to reproduce the issue should someone with the proper setup find time to look into this.

    Thanks for your help with this.

     
  • Teodor Petrov

    Teodor Petrov - 2015-07-22
    • assigned_to: Teodor Petrov
     
  • James P Michels III

    This appears to be resolved in Release 13.12 rev 9501. Maybe sooner, but I have not tested.

    Thanks

     
  • Teodor Petrov

    Teodor Petrov - 2015-11-13

    Can you do a bisect? What version of wx are you using 2.8 or 3.0?

     
  • James P Michels III

    wx3.0.2

    No, I am not able to do a bisect.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.