Closed boasbakker closed 1 year ago
It worked for me like this:
I think the most important step is to open a new folder. I guess user-related settings could be expected to show, but as there is no active workspace, VSCode might be confused.
@boasbakker thank you for reporting the issue.
I have been able to reproduce the issue. Steps:
I do not know whether any of these steps is redundant. I have also tested natively on one of the contestant machines, and was capable of producing the issue with the same steps (except for creating a new VM, I did the setup and cleanup from the repo). Here is a video about the bug: https://youtu.be/9lkSG8uNiEI?t=75
I believe it is quite possible that these steps will be taken by contestants in the real competition. I think this bug has high priority. @radl97 do you have any idea what could potentially cause this bug to happen? I have not seen any issues relating to this on the VS Code github.
I can consistently reproduce this issue by running:
rm -rf ~/snap/code ~/.config/Code
sudo /opt/ioi/bin/ioiconf.sh fwstart
and then start vscode, and opening File > Preferences > Settings. If one runs fwstop
instead, then it works. There is no need to complete the ioisetup prompt.
Even when the firewall was enabled, I was able to make it work by running
sudo iptables -A OUTPUT -j REJECT --reject-with icmp-host-prohibited
(the --reject-with
part is not necessary)
So I am guessing the reason the page does not load is because of some kind of timeout that we hit when the packets are simply dropped.
You can observe a similar behaviour when running e.g.
curl http://example.com
It will also fail only after a long timeout.
Can you check
netstat -pt
for open TCP connections which may be relevant? It should be a row SYN_SENT. (grep SYN_SENT
)I have sent it in PM
There is a bunch.
$ ss -tpnr
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
SYN-SENT 0 1 ioi-0804:57860 152.199.19.160:443 users:(("code",pid=13528,fd=33))
SYN-SENT 0 1 ioi-0804:33774 13.107.5.93:443 users:(("code",pid=13528,fd=28))
SYN-SENT 0 1 ioi-0804:34934 bud02s39-in-f14.1e100.net:443 users:(("code",pid=13528,fd=26))
SYN-SENT 0 1 ioi-0804:43156 20.189.173.9:443 users:(("code",pid=13528,fd=35))
SYN-SENT 0 1 ioi-0804:33778 13.107.5.93:443 users:(("code",pid=13528,fd=29))
SYN-SENT 0 1 ioi-0804:57854 152.199.19.160:443 users:(("code",pid=13528,fd=32))
SYN-SENT 0 1 ioi-0804:52884 13.107.42.18:443 users:(("code",pid=13528,fd=38))
SYN-SENT 0 1 ioi-0804:42088 20.189.173.1:443 users:(("code",pid=13614,fd=48))
SYN-SENT 0 1 ioi-0804:34938 bud02s39-in-f14.1e100.net:443 users:(("code",pid=13528,fd=27))
SYN-SENT 0 1 ioi-0804:52880 13.107.42.18:443 users:(("code",pid=13528,fd=37))
SYN-SENT 0 1 ioi-0804:52868 13.107.42.18:443 users:(("code",pid=13528,fd=36))
SYN-SENT 0 1 ioi-0804:43150 20.189.173.9:443 users:(("code",pid=13528,fd=34))
As expected, the settings page appears after about 2 or so minutes.
Can you make a new release of the VM with this issue fixed?
Hi! We are not actively developing the VM version at this point, as close to the contest as we are. Thank you for your understanding.
One ugly workaround I can think of off top top of my head is to shut down the network of the VM. You van do this through VM management (in the status bar, bottom right) OR in the VM's user interface (top right). Start VSCode like this, and open the options there.
On another note (another workaround), if you wait 2 minutes (for the TCP timeout), the menu does appear correctly.
Thank you, that works
Describe the bug When trying to change the settings for Visual Studio Code, a blank screen appears without any settings.
To Reproduce Steps to reproduce the behavior:
Expected behavior A screen with various settings related to Visual Studio Code and C++ should appear, as was the case with the previous version of the VM.
Screenshots![image](https://github.com/ioi-2023/contestant-vm/assets/59883944/0ee63f4a-b445-4405-be9c-bb4345de9cd3)
Please complete the following information:
Additional context