CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Lounge (http://www.cfd-online.com/Forums/lounge/)
-   -   ctrl+c close all windows after the end of run (http://www.cfd-online.com/Forums/lounge/119897-ctrl-c-close-all-windows-after-end-run.html)

 immortality June 26, 2013 12:58

ctrl+c close all windows after the end of run

an issue recently has occurred is that when I stop a run by ctrl+c it closes all the open wndows and goes to log off window.what is wrong?

 wyldckat June 27, 2013 03:36

Quote:
 Originally Posted by immortality (Post 436169) an issue recently has occurred is that when I stop a run by ctrl+c it closes all the open wndows and goes to log window.what is wrong?
So, the problem is:
Code:

```T + (X+Y+Z)*C = T => (X+Y+Z)*C = 0```
Where:
• T is the terminal window.
• C is Ctrl+C.
• (X+Y+Z) are the windows.
Therefore, either C is 0 or (X+Y+Z) is 0.

 immortality June 27, 2013 07:53

hi dear Bruno
it occurs now sometimes.why they may return 0 values?

 wyldckat June 27, 2013 16:41

Quote:
 Originally Posted by immortality (Post 436334) hi dear Bruno it occurs now sometimes.why they may return 0 values?
I was doing a mathematical analogy. You started with a terminal and the "windows" you only vaguely refer to and then you hit Ctrl+C and you ended up with only the terminal:
Code:

`T + (X+Y+Z)*C = T`
The idea I was trying to give you is that when I summarized as a mathematical equation the problem you described, there is not only one possible solution, only several possibilities! Where at any one time, only one or both of the following is possibly true:
1. Either it is "C=0": where there is nothing wrong, because the machine+software did exactly what you told it to do, because you hit the key combination Ctrl+C, which means you wanted to terminate the application.
2. Or "(X+Y+Z)=0": where either the windows cancelled each other out (X+Y=Z) or they never existed in the first place (0=0).

All of this confusion because:
1. You did not specify which "windows" were closed.
2. You did not specify how you started the run and how the windows where started.
3. You didn't even specify what software you used!
Therefore: either there is nothing wrong or the "windows" never existed in the first place!

 immortality June 28, 2013 04:45

i should describe more.
I'm runnig a OF case and some internet pages like gmail and some folders of cases are open too.
Then i want to stop the run and click in its terminal and hit ctrl+c then(sometimes,1 time from each about 10-15 tries) all folders,terminal,internet pages turn closed and logout window is shown.this was occuring two days before each time i was using ctrl+c but after that occurred 2-3 times only.

 wyldckat June 28, 2013 16:53

Hi Ehsan,

Now it's much clearer what happens!

OK, but there is still two missing variables... I mean, still two missing details:
1. Where exactly do you click with the mouse before using Ctrl+C?
2. What desktop manager are you using?
• Are you using the default Unity interface that Ubuntu provides (this one: http://unity.ubuntu.com/ ), or are you using Gnome or KDE or something like that?
Best regards,
Bruno

 immortality June 28, 2013 16:56

I click in the terminal of run.
I use Gnome because I found it easier to use than Unity before.

 wyldckat June 28, 2013 17:10

Quote:
 Originally Posted by immortality (Post 436644) I click in the terminal of run.
:confused: Sorry, I didn't understand... do you mean that you click directly in command+output region of the terminal or in the menu region of the terminal?

Quote:
 Originally Posted by immortality (Post 436644) I use Gnome because I found it easier to use than Unity before.
Wait, but is it Gnome Shell or Gnome Classic (aka "Fallback Mode")?

 immortality June 28, 2013 17:20

I think I click in command+output region! is it incorrect?:D
Gnome classic

 wyldckat June 28, 2013 17:41

That should be the correct use. And Gnome Classic is a good option.

Mmm... then this is very strange... OK, then:
• Is ParaView open when this happens?
• Did you install Adobe Flash recently?
• Did you install or updated anything recently?
• Did Ubuntu crash recently or were there any power outages or were there any electrical instabilities (unstable lights in the room)?

 immortality June 28, 2013 18:02

1)when it happens the logout window displayes,and I start to open everything,yes after log in again paraview works in a case.
2)yes I installed Adobe Flash recently but think this was occuring before that too(I tried to install Adobe Flash long time ago but I don't remember why it didn't work but recently installed again(not sure it works fine or not!))
3) somethings installed but this issue is related to before of it.
4)yes electrical instabilities!I think its the source of error,because I remember the day that this issue was occurring repeatedly the lights were becoming less in light !
it usually takes place not repeatedly(except to some days ago).today it didn't occur at all.:)

 wyldckat June 28, 2013 18:15

1 Attachment(s)
OK, then for now lets hope that the electrical instabilities have not damaged the hard-disk.

First lets check the following:
1. From the User Menu (upper right corner of the screen), select "System Settings..."
2. Look for the "Keyboard" named icon on the "Hardware" section and click on it.
3. Check if the selected orange items for the attached image are the same as the ones your seeing.
4. If instead of "Ctrl+Alt+Del" you have "Ctrl+C", then this is why it logs out.

As for seeing if the hard-disk is OK, install GSmartControl:
Code:

`sudo apt-get install gsmartcontrol`
Then from the "Applications" menu, choose: System Tools -> GSmartControl
Then click on the icon for the hard-disk and it should tell you if things are OK or not.

 immortality June 28, 2013 18:32

thanks.
that was ctrl_alt+delete
hard disc is healthy fortunately!
6721 life time hours is how much high or moderate?
------------
I'm doing perform tests now.the basic was OK.
have a good night.

 wyldckat June 30, 2013 07:07

Hi Ehsan,

Then the problem could be with the RAM or CPU. To check the two at the same time, run the following commands:
Code:

```sudo apt-get install stressapptest stressapptest -W --cc_test -M 4500```
Where you can replace "4500" for the number of MB fo RAM that your computer has got, but I suggest that you define a value of 500MB or 1000MB lesser than the amount of RAM it has got. And be sure to not run this command while you're running simulations.

Best regards,
Bruno

 immortality June 30, 2013 09:13

is it fine?
why now it has became slow after doing the test?!
Code:

```ehsan@Ehsan-com:~\$ stressapptest -W --cc_test -M 7000 Log: Commandline - stressapptest -W --cc_test -M 7000 Stats: SAT revision 1.0.3_autoconf, 64 bit binary Log: buildd @ allspice on Thu Jan  6 17:03:36 UTC 2011 from open source release Log: 1 nodes, 4 cpus. Log: Defaulting to 4 copy threads Log: Prefer plain malloc memory allocation. Log: Using memaligned allocation at 0x7f457133b000. Stats: Starting SAT, 7000M, 20 seconds Log: Region mask: 0x1 Log: Seconds remaining: 10 Stats: CC Thread(1): Time=20136291 us, Increments=148254000, Increments/sec = 7362527.686951 Stats: CC Thread(0): Time=20136249 us, Increments=136781000, Increments/sec = 6792774.562929 Stats: CC Thread(3): Time=20136215 us, Increments=143590000, Increments/sec = 7130932.998083 Stats: CC Thread(2): Time=20132902 us, Increments=142811000, Increments/sec = 7093413.557569 Stats: Found 0 hardware incidents Stats: Completed: 3384.00M in 22.09s 153.18MB/s, with 0 hardware incidents, 0 errors Stats: Memory Copy: 3384.00M at 154.89MB/s Stats: File Copy: 0.00M at 0.00MB/s Stats: Net Copy: 0.00M at 0.00MB/s Stats: Data Check: 0.00M at 0.00MB/s Stats: Invert Data: 0.00M at 0.00MB/s Stats: Disk: 0.00M at 0.00MB/s Status: PASS - please verify no corrected errors```

 wyldckat June 30, 2013 17:39

Quote:
 Originally Posted by immortality (Post 436888) is it fine? why now it has became slow after doing the test?!
Fortunately everything seems to be fine, both the CPU and the RAM.

Being slow shouldn't be for very long. It probably had to move a lot of stuff from RAM onto swap (on the hard-disk) and now it'll take a while to move back from the swap to RAM.

My guess is that Firefox or Chromium are using Flash when you do Ctrl+C and for some reason this leads to a crash of the window manager, logging you out. So, try to see if there is one program that when it is open, the system will logout on it's own when you do Ctrl+C.

 immortality June 30, 2013 17:54

thanks.thats fine!
OK.I consider what programs are open when this occurs after this.:p

 immortality July 5, 2013 11:13

Hi Bruno
how did you find out that Cpu is OK?which part should look at?

 wyldckat July 7, 2013 05:21

Quote:
 Originally Posted by immortality (Post 436888) Code: ```Stats: Found 0 hardware incidents Stats: Completed: 3384.00M in 22.09s 153.18MB/s, with 0 hardware incidents, 0 errors```
:confused: It's written right there on the output text!!

 immortality July 7, 2013 07:52

it have not written its about cpu!

All times are GMT -4. The time now is 01:16.