How do I clear an X instance that still has JPanels in it
When I improperly ^C-ed out of Main.java, JPanels were still running. How do you restart X? Thanks.
Or, how do I get a new instance of https://RedCrossRedTargetAssignment.psb-david-petty.repl.run ? Just reloading the window doesn't restart Java Swing.
you can only run it in the repl itself :( @psb_david_petty
Also, what script generates the .....Starting X
message? I can just rerun that, maybe?
Oh, I ran it from another account and used the Stop button and got:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f65b917e401, pid=201, tid=276
#
# JRE version: OpenJDK Runtime Environment (11.0.8+10) (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1)
# Java VM: OpenJDK 64-Bit Server VM (11.0.8+10-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing, tiered, compressed oops, serial gc, linux-amd64)
# Problematic frame:
# C [libjimage.so+0x2401]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /home/runner/vnc-1e20112b-17b1-4615-abe1-8b52fc3eb892/core.201)
#
Also cat /home/runner/vnc-1e20112b-17b1-4615-abe1-8b52fc3eb892/hs_err_pid201.log
was empty.
So, I changed setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE)
to do nothing rather than exit, because it sems to leave the X server in a partial state when you click the close box on any window.
But I really, really, really want to be able to restart the X server myself! HELP!
Have you tried hitting
ctrl+shift+s
, and then putting in:?
Also, you can click on the
x
:(works for any window)
very strange why you can't just do
Ctrl+C
, maybe it's something about how the terminal is not the same as something like a website hosted onlocalhost:8080
? (The website will remain online until you reload, even if the backend behind it is down)Report to bugs as well! Thanks!
@Coder100 That didn't work, And I right-click exited and now I'm really hosed. The JPanels don't even have close boxes on them any more.
I need a way to completely reload https://RedCrossRedTargetAssignment.psb-david-petty.repl.run. Simply reloading the browser doesn't work... I get the same hosed X instance!
so
exit 1
didn't work? @psb_david_petty@Coder100 From the shell? All it gives me is a dead shell. When I hit Run again, the shell starts up from where it was and does not restart X.
@psb_david_petty have you tried running, in the console,
pkill x11vnc
.If that doesn't work, you could try
pkill Xorg
orpkill fluxbox
. They should stop the window manager / x server.pkill init
should forcefully restart the whole REPL.