You are not logged in.

#1 2012-04-29 20:22:29

558 jakobsson
Member
From: Sweden
Registered: 2010-01-19
Posts: 31

Eric5 run from cmd line freezes whole machine when run from Desktop

Installed is Eric 5.2.1, Python 3.2.3 and Gcc 4.7.0 
Linux is 3.3.3-1-ARCH
No relevant log entries. And I have read all logs in /var/logs except the Cups one...
My desktop environment is Xfce 4.8. If that matters, which I strongly doubt.
The command in the desktop application file in /usr/share/applications for 
Eric5 is "eric5". 
Spent some time on Google but no luck

I will not say I am a full fledged programmer but I recently started to look at Python programming. Just out of curiosity trying to "rewrite" some old Windows Visual Basic 6 applications I managed to do many years ago. And when I say many I really mean many.

I installed Eric5 to give some GUI visions to the whole thing as I am not a big fan of command line activities, although I manage that environment as well, in case of the need thereof.

Not OK, first attempt, and several others to run Eric5 from the Desktop by clicking in the Program menu locks the whole computer after some seconds. A splash screen is shown upon which is produced some messages up to "Generating Main User Interface". There it stops and nothing happens. Even after a more than normal time of waiting. And nothing works. Except more than pressing ctrl/alt/F12, wait a little and then ctrl/alt/delete to restart the machine.
When started by command line, I "closed " the splash screen" just in case" but still, when trying to start the desktop way it locks my machine.

OK, when running Eric5 from the terminal, with just typing eric (or eric5) it starts. In the terminal it produces some warnings about missing Swedish language pack. Does not matter here. And Eric5 starts OK, with - or without the splash screen.

When started from the terminal there are no errors inside. I will be most humble and admit there are a lot of my errors regarding my programming efforts. No, I was referring to errors about installation and so. Nothing, it seems to run and I even managed to program a small Python3 /Qt4 GUI application following a good tutorial in a few hours time.

To summarize, Eric5 when clicked upon from the desktop locks my computer but runs when told so from command line in terminal, both as a normal user and as root. The later only for testing..

Anyone out there with some suggestions?

Last edited by 558 jakobsson (2012-04-29 20:23:37)

Offline

#2 2012-04-29 20:54:57

Bellum
Member
Registered: 2011-08-24
Posts: 230

Re: Eric5 run from cmd line freezes whole machine when run from Desktop

You using the package provided by arch?

https://www.archlinux.org/packages/extra/any/eric/

I've never really bothered with desktop icons on Linux. To be honest I don't really know much about them. Aren't they just plain textfiles with the extension .desktop? You should be able to open it up with your text editor of choice and see what it's doing.

Offline

#3 2012-04-29 22:18:43

558 jakobsson
Member
From: Sweden
Registered: 2010-01-19
Posts: 31

Re: Eric5 run from cmd line freezes whole machine when run from Desktop

Thanks. I am using the official package. I do not suspect the desktop application file.  I know I can read and edit that file, i.e using Nano. But this is also possible GUI wise via Nautilus or some other file manager. Opened as root of course. And there are no strange things in that file. Just the same command as I write in the terminal. And after all the program STARTS, at least it produces a splash screen. Then everything is frozen.

Reboot via ctrl/alt/F12 foĺlowed by ctrl/alt/delete is the only option.Just a big thing I learnt that some weeks ago instead of using the powerbutton to switch off.

Now it is late but I found something in the Eric5.py file which is the main 
start up script (usr/lib/python3.2/site-packages/eric5/eric5.py) about a 
Qtimer in relation to the splash screen. But still, this f-king timer and splash 
screen works when the same script is called upon via the terminal. 
Or do I miss something here?  
I will try to dig deeper into that another day.

So, I repeat, when trying to start graphically something makes the machine cold dead. But as I also wrote, when runned from the terminal Eric5 starts and acts normally. So why this behaviour? It is not an important issue as long as I remember to start Eric5 via the terminal. But what is the difference? I have never seen this kind of problem in any other application before.

Late, already very early Monday.
Best regards
Leif

Offline

#4 2012-05-16 01:49:30

GSF1200S
Member
Registered: 2008-12-24
Posts: 474

Re: Eric5 run from cmd line freezes whole machine when run from Desktop

558 jakobsson wrote:

Thanks. I am using the official package. I do not suspect the desktop application file.  I know I can read and edit that file, i.e using Nano. But this is also possible GUI wise via Nautilus or some other file manager. Opened as root of course. And there are no strange things in that file. Just the same command as I write in the terminal. And after all the program STARTS, at least it produces a splash screen. Then everything is frozen.

Reboot via ctrl/alt/F12 foĺlowed by ctrl/alt/delete is the only option.Just a big thing I learnt that some weeks ago instead of using the powerbutton to switch off.

Now it is late but I found something in the Eric5.py file which is the main 
start up script (usr/lib/python3.2/site-packages/eric5/eric5.py) about a 
Qtimer in relation to the splash screen. But still, this f-king timer and splash 
screen works when the same script is called upon via the terminal. 
Or do I miss something here?  
I will try to dig deeper into that another day.

So, I repeat, when trying to start graphically something makes the machine cold dead. But as I also wrote, when runned from the terminal Eric5 starts and acts normally. So why this behaviour? It is not an important issue as long as I remember to start Eric5 via the terminal. But what is the difference? I have never seen this kind of problem in any other application before.

Late, already very early Monday.
Best regards
Leif

Same problem- package from the repos, works fine from terminal, have to kill X if launched from menu. Going into htop at the command line shows 'bash -i' hogging 99% cpu until I kill it.

Last edited by GSF1200S (2012-05-16 01:49:55)

Offline

#5 2012-08-18 17:22:31

pgn
Member
Registered: 2012-08-18
Posts: 2

Re: Eric5 run from cmd line freezes whole machine when run from Desktop

Hi, I became a neewby just to add something here. I have created several VMs of Arch Linux and Eric 5 consistently freezes from the menu as you say.

I wanted to add that Eric also works from the application finder which seems to use the same file  "/usr/share/applications/eric.desktop" as the menu. So, odder and odder but perhaps a another clue.

Offline

#6 2012-08-18 17:34:01

pgn
Member
Registered: 2012-08-18
Posts: 2

Re: Eric5 run from cmd line freezes whole machine when run from Desktop

Forgot to add.
Debugging Eric the last thing it reports doing is Creating the Task Viewer.

Offline

Board footer

Powered by FluxBB