Closed VegaDeftwing closed 4 years ago
Can you provide ./gdbfrontend
output and output for tmux a -t gdb-frontend
?
even starting ./gdbfrontend with -V doesn't yield any more useful output really
Each of those 'GET /' lines is from refreshing the page in Chorme/Vivaldi/Firefox
What is your tmux
version and which OS are you using?
I have the same issue on debian 9 running tmux 2.3
Arch Linux 5.5.4 , tmux 3.0_a-1
Try updating tmux to 2.8 at least or empty tmux.conf
content. I will add a check tmux version check for fallback
Arch Linux 5.5.4 , tmux 3.0_a-1
Very interesting.. clean your tmux.conf
until the solution.
Arch Linux 5.5.4 , tmux 3.0_a-1
Very interesting.. clean your
tmux.conf
until the solution.
I'm no longer at that desktop, I was only able to confirm those version numbers because my laptop is on Arch too. I'll let you know if cleaning the tmux.conf fixes things when I get home in ~3 hours.
I have no ~/.tmux.conf , same problem.
I have no ~/.tmux.conf , same problem.
It has its own tmux.conf
: https://github.com/rohanrhu/gdb-frontend/blob/master/tmux.conf
Clean its content but don't remove the file.
I cleared tmux.conf I get popups "Connection closed to GDBFrontend server!" on 5551, closing that box makes a new one appear gdb is "running" in 127.0.0.1:5550
Tried it from my laptop, same "Connection Closed Message" even if tmux.conf in the gdb-frontend folder is cleared here as well
The Tmux session does open now:
I think carriage returns may occur this problem but im not sure.
Offset: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000: 73 65 74 20 2D 67 20 73 74 61 74 75 73 2D 62 67 set.-g.status-bg
00000010: 20 62 6C 75 65 0D 0A 73 65 74 20 2D 67 20 73 74 .blue..set.-g.st
00000020: 61 74 75 73 2D 66 67 20 77 68 69 74 65 0D 0A 73 atus-fg.white..s
00000030: 65 74 20 2D 67 20 73 74 61 74 75 73 20 6F 66 66 et.-g.status.off
00000040: 0D 0A 73 65 74 20 2D 67 20 6D 6F 75 73 65 20 6F ..set.-g.mouse.o
00000050: 6E n
Can you try this? https://github.com/rohanrhu/gdb-frontend/commit/6c9723ad6f0ac5897c30197e6e68bec26ea1676e
The Tmux session does open now:
I have not tested GDB 9 yet. I will look that.
That didn't appear to do anything. Tmux is working fine from what I can tell. Intreguringly, on the laptop I'm getting a bit more output, despite getting the same error in the browser, this is regardless of what's in the tmux.conf file. Also, on the laptop, for no apparent reason, if I go to 127.0.0.1:5551/terminal, the terminal does load briefly now (this is dependent on tmux.conf) but I still get the connection error message and the page gives me no choice but to reload
The Tmux session does open now:
I have not tested GDB 9 yet. I will look that.
I'd imagine that's our problem. I'll see if I can install 8 and point it to use it. Gimme a bit
Can you paste outputs for these commands on GDB shell?
shell echo $CWD
python import sys;print(sys.version)
python print(dir(server))
I just tried downgrading to 8.3.1, no change. Putting them back up to 9.
shell echo $CWD
gives no output
(gdb) python import sys;print(sys.version)
3.8.1 (default, Jan 22 2020, 06:38:00)
[GCC 9.2.0]
(gdb) python print(dir(server))
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'server' is not defined
Error while executing Python code.
Did you try python print(dir(server))
on tmux gdb-frontend session?
Did you try
python print(dir(server))
on tmux gdb-frontend session?
Not above, but I just did and the output is exactly the same
Strangely, in the tmux session I can't even do the print(sys.version),
Strangely, in the tmux session I can't even do the print(sys.version),
print()
is python function like python import sys;print(sys.version)
Did you try
python print(dir(server))
on tmux gdb-frontend session?Not above, but I just did and the output is exactly the same
Can you paste these outputs?
python import os;print(os.getcwd())
python import server;print(dir(server))
Strangely, in the tmux session I can't even do the print(sys.version),
print()
is python function likepython import sys;print(sys.version)
ope, my bad. Currently in class so trying to listen and type at the same time. It does print in the tmux session:
It seems that file is a different file from https://github.com/rohanrhu/gdb-frontend/blob/master/server.py
Can you paste this output? python import server;print(server.__file__)
Yep, you're right. It's using /usr/lib/python3.8/site-packages/server.py
Yep, you're right. It's using
/usr/lib/python3.8/site-packages/server.py
Can you try this? https://github.com/rohanrhu/gdb-frontend/commit/874e5b5e31694f29f7d812d4fb0d4f1db853f77c
cant test it to really confirm right now, (laptop is about to die) but that does seem to have worked!
Im sorry for your laptop :/ Did https://github.com/rohanrhu/gdb-frontend/commit/6c9723ad6f0ac5897c30197e6e68bec26ea1676e solve the tmux issue?
Battery died, so responding from email on phone. Yes, that fixed the tmux problem.
On Mon, Feb 17, 2020, 11:56 AM Oğuzhan Eroğlu notifications@github.com wrote:
Im sorry for your laptop :/ Did 6c9723a https://github.com/rohanrhu/gdb-frontend/commit/6c9723ad6f0ac5897c30197e6e68bec26ea1676e solve the tmux issue?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rohanrhu/gdb-frontend/issues/5?email_source=notifications&email_token=ACWCZJEHJYM6AHF52EMROD3RDLFUVA5CNFSM4KWTLWYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL7H3KA#issuecomment-587103656, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWCZJDFKWTCAOMXFQTXWSTRDLFUVANCNFSM4KWTLWYA .
Can we close this issue?
Yeah, didn't actually realize it wasn't already. My bad.
Not sure what the issue is really. I tried seeing if for some reason turning off firewalld and disabling all my adblockers and other extensions. Failing that, I tried opening it in Chromium, with the same result.
Firefox gives a similar error "Firefox can’t establish a connection to the server at ws://127.0.0.1:5552/." with the issue again being in the main .js file on line 509. , so it's clearly browser agnostic and other local services like Netdata run fine.