CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Lounge

ctrl+c close all windows after the end of run

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   June 26, 2013, 12:58
Default ctrl+c close all windows after the end of run
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
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?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.

Last edited by immortality; June 27, 2013 at 06:45.
immortality is offline   Reply With Quote

Old   June 27, 2013, 03:36
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by immortality View Post
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.
wyldckat is offline   Reply With Quote

Old   June 27, 2013, 07:53
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
hi dear Bruno
it occurs now sometimes.why they may return 0 values?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 27, 2013, 16:41
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by immortality View Post
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!
wyldckat is offline   Reply With Quote

Old   June 28, 2013, 04:45
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
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.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 28, 2013, 16:53
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   June 28, 2013, 16:56
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
I click in the terminal of run.
I use Gnome because I found it easier to use than Unity before.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 28, 2013, 17:10
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by immortality View Post
I click in the terminal of run.
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 View Post
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")?
wyldckat is offline   Reply With Quote

Old   June 28, 2013, 17:20
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
I think I click in command+output region! is it incorrect?
Gnome classic
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 28, 2013, 17:41
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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)?
wyldckat is offline   Reply With Quote

Old   June 28, 2013, 18:02
Default
  #11
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
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.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 28, 2013, 18:15
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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.
Attached Images
File Type: png Screenshot from 2013-06-28 23:01:05.png (46.2 KB, 2 views)
immortality likes this.
wyldckat is offline   Reply With Quote

Old   June 28, 2013, 18:32
Default
  #13
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
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.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 30, 2013, 07:07
Default
  #14
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   June 30, 2013, 09:13
Default
  #15
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
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
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 30, 2013, 17:39
Default
  #16
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by immortality View Post
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 likes this.
wyldckat is offline   Reply With Quote

Old   June 30, 2013, 17:54
Default
  #17
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
thanks.thats fine!
OK.I consider what programs are open when this occurs after this.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   July 5, 2013, 11:13
Default
  #18
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
Hi Bruno
how did you find out that Cpu is OK?which part should look at?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   July 7, 2013, 05:21
Default
  #19
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by immortality View Post
Code:
Stats: Found 0 hardware incidents
Stats: Completed: 3384.00M in 22.09s 153.18MB/s, with 0 hardware incidents, 0 errors
It's written right there on the output text!!
wyldckat is offline   Reply With Quote

Old   July 7, 2013, 07:52
Default
  #20
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
it have not written its about cpu!
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Radiation interface hinca CFX 15 January 26, 2014 18:11
converting Fluent mesh to openfoam standard mesh deepesh OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 17 October 25, 2013 03:59
forced to stick of soot particles kmgraju CFX 8 December 10, 2012 04:57
error message cuteapathy CFX 14 March 20, 2012 07:45
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05


All times are GMT -4. The time now is 19:59.