Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitcoin-Qt 0.6.2 for Ubuntu 12.04 invisible in systray, no global menu #1242

Closed
Folko85 opened this issue May 9, 2012 · 51 comments
Closed
Assignees

Comments

@Folko85
Copy link

Folko85 commented May 9, 2012

After the update, the program does not appear in the system tray. Also there is no global menu.

@Blackhawke
Copy link

Same problem here. It would usually show up in the system tray and I would have a menu -- until I encrypted my wallet. Now there's no menu on the top bar of Unity, and nowit doesn't appear either in the system tray or in the side bar menu.

Also (different issue, but I'll stick it in this comment and let a dev decide what to do with it): The .lock file is not removed on exit. Therefore starting Bitcoin-Qt will fail unless I go in and manually delete the lock file from the ./bitcoin directory.

@mmazi
Copy link

mmazi commented May 26, 2012

I have the same problem: no icon in the top panel (system tray?) on Linux Mint, Gnome Desktop. Bitcoin-qt is running, though (can see it in process list and it's updating the log).

The only way I know to get the Bitcon-qt window is to stop the process and restart it.

This appeared just recently, some time after installyng 0.6.2, for no apparent reason (other than maybe updating the system).

@Diapolo
Copy link

Diapolo commented May 26, 2012

Could you guys try with a clean data-dir and see if there is anything special in the debug.log. Seems to be a weird issue, as our GUI-master is on Ubuntu, too I guess...

@Folko85
Copy link
Author

Folko85 commented May 26, 2012

If clean data-dir, then the problem disappears.
debug.log
After Update http://clck.ru/d/bq5rKXYN19Ag8
After Clean http://clck.ru/d/RCZsHvTt19AgA

@mmazi
Copy link

mmazi commented May 26, 2012

Which directory is data-dir?

I tried cleaning (deleting) ~/.bitcoin but bitcoin wouldn't start after that. Then I had to restore the directory from an old backup (from 3 weeks ago, that is before the problem and probably before the 0.6.2 upgrade). The problem is still there.

@mmazi
Copy link

mmazi commented May 26, 2012

@rebroad
Copy link
Contributor

rebroad commented Jul 2, 2012

This is also a problem in 0.6.3

@Diapolo
Copy link

Diapolo commented Jul 2, 2012

@rebroad Is this true with a clean data-dir? What are your observations with current Git master?

@rebroad
Copy link
Contributor

rebroad commented Jul 3, 2012

@Diapolo This is also a problem with current git master also.

If I delete ~/.bitcoin then the tray icon does appear, but a few seconds after the main window appears (once blocks start downloading).

@Diapolo
Copy link

Diapolo commented Jul 3, 2012

Can you post a screenshot that shows the missing menu and tray-icon? Perhaps @laanwj Should take a look at this, I guess he is also using Linux, while I'm on Windows. Hard to debug, as on Windows this is not an issue.

@rebroad
Copy link
Contributor

rebroad commented Jul 3, 2012

@Diapolo I don't really understand the reason for the screenshot request, but can provide one if you tell me where to upload it to.

@Diapolo
Copy link

Diapolo commented Jul 3, 2012

I don't want to see the "no tray-icon" ^^, but want to ensure which menu is missing, as I was not sure about that one. Just use http://tinypic.com for such a thing.

@rebroad
Copy link
Contributor

rebroad commented Jul 3, 2012

@Diapolo the only thing that shows is the icon on far left for restoring windows.there are no menus nor a tray icon.

@laanwj
Copy link
Member

laanwj commented Aug 18, 2012

I'm running on 12.04 and though I don't have this specific issue, I had another issue with Unity, with minimized windows that refused to come back: https://bugs.launchpad.net/unity/+bug/1001498 . But they didn't take it serious upstream.

I find it strange that Unity manages to mess up a well-behaved Qt program. The problem is that Unity hooks plugins into various things (qt menu, qt tray icon, application management) which are in varying states of maturity.

You might (or might not) have luck building it yourself instead of using the static build.

@interfect
Copy link

I'm also having this problem, using the Bitcoin from the bitcoin.org-recommended PPA on Ubuntu 12.04. I had the tray icon for a little bit when I started with a clean ~/.bitcoin, but then I copied over my wallet.dat and it started downloading blocks, and today my menu and tray icon are gone.

Is there any sort of debug information I can provide?

@laanwj
Copy link
Member

laanwj commented Aug 29, 2012

@interfect can you try building from source, and see whether it still happens?

@interfect
Copy link

Is there a single, unified page that explains exactly what packages to
install and what commands to run on a stock Ubuntu 12.04 system to build
from source? Because if so, yes I can.

On Wed, Aug 29, 2012 at 1:57 PM, Wladimir J. van der Laan <
notifications@github.com> wrote:

@interfect https://github.com/interfect can you try building from
source, and see whether it still happens?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1242#issuecomment-8136908.

@laanwj
Copy link
Member

laanwj commented Aug 29, 2012

doc/readme-qt.rst

@laanwj
Copy link
Member

laanwj commented Aug 29, 2012

Also there's the packages: appmenu-qt sni-qt

Those provide plugins for qt to export the appmenu and tray icon respectively to unity. Maybe try installing/uninstalling/upgrading them.

@dnohales
Copy link

I tried to remove package appmenu-qt, now I see the menu, but not the tray icon.

I also noticed that when I try to execute bitcoin-qt again, the program throw me an error because is already running, while this error message is shown, appears the tray icon, when I close the error message box, the tray icon disappears.

@laanwj
Copy link
Member

laanwj commented Sep 18, 2012

It would be wonderful if someone knowledgeable in the intricacies of Unity could look at this. I cannot help you further here, and my previous tries to get help from the Unity team weren't exactly succesful. Also I still cannot reproduce the problem.

Can you try out the .tar.gz blob and deinstalling the .deb package? I think this will work around the problem for now as the .tar.gz isn't linked against any of the fancy stuff

@interfect
Copy link

I reported this as a bug against appmenu-qt, no response from the devs
there at all.

On Mon, Sep 17, 2012 at 10:29 PM, Wladimir J. van der Laan <
notifications@github.com> wrote:

It would be wonderful if someone knowledgeable in the intricacies of Unity
could look at this. I cannot help you further here, and my previous tries
to get help from the Unity team weren't exactly succesful.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1242#issuecomment-8641515.

@laanwj
Copy link
Member

laanwj commented Sep 18, 2012

I suspect it has something to do with Unity regarding the first window opened somehow as main window. In the case of bitcoin this is the splash screen. Getting rid of the splash screen is on the TODO list (#1028), so if that's the case the problem will solve itself eventually.

@interfect
Copy link

That could be it. Of the two Qt apps I use that exhibit Unity menu issues
(Bitcoin and Retroshare), both have splash screens. For some reason
RetroShare's icons still show up, but they are dynamic and may be set up
differently than Bitcoin's.

Are there any Qt apps with splash screens in the official Ubuntu
repositories?

On Mon, Sep 17, 2012 at 11:30 PM, Wladimir J. van der Laan <
notifications@github.com> wrote:

I suspect it has something to do with Unity regarding the first window
opened somehow as main window. In the case of bitcoin this is the splash
screen. Getting rid of the splash screen is on the TODO list, so if that's
the case the problem will solve itself eventually.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1242#issuecomment-8642897.

@ghost ghost assigned laanwj Sep 21, 2012
@jprupp
Copy link

jprupp commented Mar 24, 2013

This happens also to me in Ubuntu 12.10 with Bitcoin version v0.8.1.0-g34d62a8-beta.

There's something curious about it: when I launch it for the first time after a reboot, the splash screen lasts for longer, and both menus and tray icon are hidden after application launch. If I close the application and launch it a second time, it takes less time, and both menu and tray icon appear.

Even when the menu bar is invisible, I can press and release the alt key quickly to get the HUD, and access the menu entries from there by typing.

I believe the time it takes between launching the application and having the main window appear is key to solve this issue. There's probably a time limit somewhere that is being reached.

@interfect
Copy link

The time limit idea is interesting. 0.8 starts up much faster than 0.7 did,
and the other day the menu and tray icon worked properly for the first time
in months. Unfortunately, that only happened once.
On Mar 24, 2013 2:10 PM, "Jean-Pierre Rupp" notifications@github.com
wrote:

This happens also to me in Ubuntu 12.10 with Bitcoin version
v0.8.1.0-g34d62a8-beta.

There's something curious about it: when I launch it for the first time
after a reboot, the splash screen lasts for longer, and both menus and tray
icon are hidden after application launch. If I close the application and
launch it a second time, it takes less time, and both menu and tray icon
appear.

Even when the menu bar is invisible, I can press and release the alt key
quickly to get the HUD, and access the menu entries from there by typing.

I believe the time it takes between launching the application and having
the main window appear is key to solve this issue. There's probably a time
limit somewhere that is being reached.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1242#issuecomment-15369307
.

@laanwj
Copy link
Member

laanwj commented Mar 30, 2013

Interesting, so a time limit may be part of the picture. Though this is confusing, and would make this impossible to fix 100% in cases as linux is not a hard realtime OS. And bitcoin certainly isn't the only program that can be slow to start. I wonder if there is a way to hold off the time limit.

@jfisbein
Copy link

I have the same problem with ubuntu 12.10, and bitcoin-qt 0.8.1-quantal1, the incon only appears sometimes but generally it doesnt appears.

@Diapolo
Copy link

Diapolo commented Apr 26, 2013

Perhaps fixed already with current master or fixed with #2530.

@themighty1
Copy link

This issue is so strange,
I'm on 12.04.02/64 Unity.
When I start "bitcoin-qt" there is no menu or systray,
But when I start "bitcoin-qt -testnet" there is both menu and systray.
Weird.

@kapcom01
Copy link

I confirm that on Ubuntu 13.04 even though appindicator and global menu doesnt work, the HUD works if you press ALT, and if you exit through hud and rerun the app, it starts much faster and the problem dissapears. The appindicator and global menu show up and everything is ok.

@Diapolo
Copy link

Diapolo commented May 21, 2013

@themighty1 Can you try with #2672? What Qt version is Bitcoin-Qt using?

@themighty1
Copy link

@Diapolo. Using latest stable bitcoin-qt, with Qt 4.8.1
Sorry, I cant apply the patch. I switched to gnome since my last post and have not looked back.

@br0x
Copy link

br0x commented Dec 17, 2013

Issue still exists. Was using all newest bitcoin-qt versions and Ubuntu 12.10, 13.04, 13.10
It reproduces if you set bitcoin-qt to run on system reboot (startup applications). Icon is absent but processes bitcoin-qt are running and consuming memory and CPU. Killing the process and relaunching bitcoin-qt gets things to normal

@dooglio
Copy link

dooglio commented Dec 17, 2013

I notice that the ppcoin-qt project has this problem cleared up, yet it appears to be a similar code-base. Litecoin-qt doesn't, though.

@interfect
Copy link

Can we get their patch merged back? What did they do?

On Tue, Dec 17, 2013 at 4:56 PM, dooglio notifications@github.com wrote:

I notice that the ppcoin-qt project has this problem cleared up, yet it
appears to be a similar code-base. Litecoin-qt doesn't, though.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1242#issuecomment-30800203
.

@br0x
Copy link

br0x commented Jan 3, 2014

No matter which fork. If wallet is small, there is no issue. When it grows to 400KB issue is reproducing sometimes. If wallet.dat is 1MB or more - reproduces always

@laanwj
Copy link
Member

laanwj commented Jan 3, 2014

Thank for posting that observation @br0x, that's the first that may give some hope to reproduce this issue.

@laanwj
Copy link
Member

laanwj commented Jan 7, 2014

I had this problem as well today, no global menu...

edit: damn, but I can't reproduce it, not even by putting sleeps() in the wallet verification nd handling; it only happened once

One guess is that the GUI is unresponsive to events while starting up. Initialization blocks the GUI thread. Maybe that causes some kind of menu registration to time out. In that case the solution would be to run AppInit2 in a thread instead.

@laanwj
Copy link
Member

laanwj commented Jan 7, 2014

For the people that can reproduce this: does providing the -nosplash option help?

@laanwj
Copy link
Member

laanwj commented Jan 8, 2014

Please help testing #3493. If my gut feeling is right that they're caused by timeouts, it solves the menu and icon issues.

@br0x
Copy link

br0x commented Jan 8, 2014

@laanwj
I was unable to test it - seems to be unavailable on github

@laanwj
Copy link
Member

laanwj commented Jan 9, 2014

Must be a temporary fluke with github, that sometimes happens, try again later.

@br0x
Copy link

br0x commented Jan 9, 2014

@laanwj
Yes it works! Icon appears immediately and become responsive in a minute. Quite a workaround for me!

@laanwj
Copy link
Member

laanwj commented Jan 9, 2014

Thanks for testing @br0x

@laanwj
Copy link
Member

laanwj commented Jan 13, 2014

Closing by #3493

@elichai
Copy link
Contributor

elichai commented Feb 14, 2015

This problem is back in the last version

suprnurd pushed a commit to chaincoin-legacy/chaincoin that referenced this issue Dec 5, 2017
lateminer pushed a commit to lateminer/bitcoin that referenced this issue Jan 22, 2019
While at it mark the current version as a prerelease (it should be
always like that for the dev branch).
lateminer pushed a commit to lateminer/bitcoin that referenced this issue May 6, 2020
…ivkey and importaddress

ce93872 [Trivial][RPC] Fix example line in importprivkey help (missing arg) (random-zebra)
96bdd3e [Tests] Add wallet_import_stakingaddress to test runner (random-zebra)
d1ebf2e [Tests] Add functional test for import staking address/key (random-zebra)
3bd5579 [RPC] Add coldstaking address support in importaddress (random-zebra)
144ec35 [RPC] Add coldstaking address support in importprivkey (random-zebra)

Pull request description:

  Still it remains to add proper support in `dumpwallet` and `importwallet`

ACKs for top commit:
  Fuzzbawls:
    ACK ce93872

Tree-SHA512: 604a19ca1942ef972ab05360823701021dcc9e12243859514a4196b36789ff06613541bbe7b5302409fb1056375186713af1a9a3ed01afb3806426bac3bed456
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests