Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: curious droid on July 01, 2021, 05:24:24 PM



Title: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 01, 2021, 05:24:24 PM
Hello

I have installed Bitcoin Core on Linux Mint 20.1 Ulyssa flowing instructions described in bitcoin.org, then i created desktop icon pointing to bitcoin-qt file from bin.
Bitcoin-qt opens up but the the size of it is very large, cant see bottom portion and it doesn't let me to resize it to fit in the screen, i have no such a problem with any other apps on my system. My display setting seems to be setup correctly, i have 1080p monitor attached, but even on my laptop`s screen withoud second monitor i still have the same problem.
I spent many hours trying to find solution but no luck, there are several articles pointing to some QT version issue but non of them have step by step instruction how to fix the problem, i am very new to Linux. I tried to check my Qt version
Code:
sudo qmake --version
  but i get nothing:
Code:
qmake: could not exec '/usr/lib/qt5/bin/qmake': No such file or directory
I found workaround, opened PDF reader, under "about" it shows: Qt: 5.9.5. It looks like this is a up to date Qt version, so I dont know what to do.
Any idea how to fix the issue?


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: NeuroticFish on July 01, 2021, 05:45:05 PM
Can you please check if it's the same problem as Bitcoin Core 0.21.1 rediculous window width (bug?) (https://bitcointalk.org/index.php?topic=5336919)
Maybe some of the posts there would be of help too...


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: NotATether on July 01, 2021, 06:44:17 PM
Can you please check if it's the same problem as Bitcoin Core 0.21.1 rediculous window width (bug?) (https://bitcointalk.org/index.php?topic=5336919)
Maybe some of the posts there would be of help too...

It is exactly the same problem.

I had already filed a Github issue (https://github.com/bitcoin/bitcoin/issues/22246) and a fix has been merged into the current branch. It will be present in the next bitcoin core version and also a backport will be made to 0.21.1 if I understand correctly.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 01, 2021, 06:49:03 PM
Its similar issue but not exactly, i dont only have large width, it all in general too large and it doesnt have to do with transaction because i am just in process of downloading blokchchain and have no transaction i my wallet.

see screenshot below
https://i.imgur.com/R1HPazl.png


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: NotATether on July 01, 2021, 06:58:31 PM
Its similar issue but not exactly, i dont only have large width, it all in general too large and it doesnt have to do with transaction because i am just in process of downloading blokchchain and have no transaction i my wallet.

What's your bitcoin core version?


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 01, 2021, 07:10:49 PM


Bitcoin Core version v0.21.1

Qt version 5.9.8.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: NotATether on July 01, 2021, 08:17:02 PM
Bitcoin Core version v0.21.1

Qt version 5.9.8.

This is likely a problem in Bitcoin Core's codebase, not with Qt or your settings.

Was this happening in a previous version of Core as well? Maybe I can run a git bisect and pinpoint the offending commit here too.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 01, 2021, 08:23:39 PM
This is my first time running Core on Linux, but i have the same Core version on Win10 with no issue. Regarding git bisect what i should do ?


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: NotATether on July 01, 2021, 08:31:11 PM
This is my first time running Core on Linux, but i have the same Core version on Win10 with no issue. Regarding git bisect what i should do ?

git bisect is a developer tool for detecting regressions inside programs such as Bitcoin Core. I'll take care of running that for you.

I need you to go to https://bitcoincore.org/en/releases/ and download and run version 0.21.0 and see if the issue is still there. If it is, repeat with 0.20.1 and older until you get to the version that doesn't have this blog. Chances are, the bug isn't present in 0.21.0 but you never know.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 01, 2021, 08:47:21 PM
In process of doing it.
Can you please tell me if i need to uninstall my current version which already has done more than 60% of IBD and delete all downloaded block chain?


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: NotATether on July 01, 2021, 08:51:51 PM
Can you please tell me if i need to uninstall my current version which already has done more than 60% of IBD and delete all downloaded block chain?

Not necessary. However, you need to pass the -regtest  parameter to the older bitcoin-qt when you start it because this check doesn't require the blockchain downloaded.

Stopping the current version is not required as long as you use -regtest or -testnet. Testnet will download some 30GB of blocks so I recommend  Regtest which will download almost nothing.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 01, 2021, 09:49:36 PM
I googled how to run a regtest and did the following:
Downloaded  bitcoin-0.21.0-x86_64-linux-gnu.tar.gz, unzipped it, went to bin folder, opened terminal from there and run
Code:
./bitcoin-qt -regtest
it opened Core welcome screen with this message: Error: Config setting for -rpcport only applied on regtest network when in [regtest] section
But i took a screen shot https://i.imgur.com/pmJySH2.png so you can see that welcome screen size of the version 0.21.0 is same as version 0.21.1 https://i.imgur.com/NIkdXCL.png they both are same extra large size around 80% of the screen.

I also run a command /usr/local/bin$ ./test_bitcoin from bin folder of version 0.21.1 and received this error, maybe it has something to do with my initial issue? or i can ignore it

/usr/local/bin$
Code:
./test_bitcoin
Running 445 test cases...
unknown location(0): fatal error: in "streams_tests/streams_buffered_file": memory access violation at address: 0x00000000: no mapping at fault address
test/streams_tests.cpp(205): last checkpoint: "streams_buffered_file" test entry
*** 1 failure is detected in the test module "Bitcoin Core Test Suite"


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: HCP on July 01, 2021, 10:12:57 PM
Which "Edition" of Linux Mint 20.1 are you currently using? Is it the Cinnamon, Mate or Xfce edition? ???

I'm wondering if it is some weird conflict with the specific desktop environment you are using.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 01, 2021, 10:21:53 PM
im using Linux Mint 20.1 Cinnamon


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: HCP on July 01, 2021, 10:31:23 PM
im using Linux Mint 20.1 Cinnamon
Ok... and did you make any changes to the display settings or workspace setup etc? Or is it all running at the "default" values from install? Just asking as I was going to quickly create a VM and see if I can replicate the issue


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 01, 2021, 10:41:52 PM
I have Samsung TV (1080p) attached as a main screen, so i set it as a main screen, in accessibility i have "large text" ON.
In "font settings" under "text scaling factor" i have 1.2 though when i change this number up or down, everything on screen gets larger or smaller but  Core doesnt get affected at all.

I have this issue with Core only, all other apps are displaying and working normal size.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: HCP on July 01, 2021, 11:14:14 PM
Unfortunately, I am unable to replicate this with a Mint Cinnamon 20.1 VM... even after changing the display settings etc. :-\

Are you able to manually reduce the window size by dragging the corners/sides of the program windows? If so, are you able to resize it, then shut the application down and restart it... does it automatically blow out the size again? or does it maintain the window geometry? ???

Given that your other apps are all working OK, I'd say that it could quite likely be an issue with the Bitcoin Core code... apparently there is a -resetguisettings command line option... give that a go and see if it fixes things.

If not, maybe try running an even older version of Bitcoin Core like 0.18 (again with the -regtest) and see if it is broken as well.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 02, 2021, 07:59:06 AM
I can resize it just a little but it doesn’t make it useful anyhow.
I run  -resetguisettings in console of Core but looks like there is no such command, i googled about it and found very similar topic to my issue on https://bitcoincore.org/en/releases/0.21.0/
Under issue: gui#102 Fix SplashScreen crash when run with -disablewallet (hebasto)

It takes to this website https://github.com/bitcoin-core/gui/pull/116
Where they refer to another topics with similar issues where it was solved, but it seems there is no clear answer on what to do exactly to fix this bug, im very new to Linux and know only basic codes which i can use only if there are instructions.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: NotATether on July 02, 2021, 01:38:27 PM
Unfortunately, I am unable to replicate this with a Mint Cinnamon 20.1 VM... even after changing the display settings etc. :-\

Are you able to manually reduce the window size by dragging the corners/sides of the program windows? If so, are you able to resize it, then shut the application down and restart it... does it automatically blow out the size again? or does it maintain the window geometry? ???

Bingo. Sounds like a DPI problem to me since 0.21.0 also ahs the same bug for OP.

There's an old Github issue (https://github.com/bitcoin/bitcoin/issues/17153) about DPI making bitcoin core's window size double as usual and stuff, so maybe Cinamon automatically changed the DPI settings when the smart TV was connected.

It also says running Core like this should fix the problem: export QT_AUTO_SCREEN_SCALE_FACTOR=0 ./bitcoin-qt

But if it doesn't, we'll need information about your displays by running these commands in a terminal:

Code:
xrandr | head -n1
Example output:
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192

xdpyinfo | head -n5
Example output:
name of display:    :0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    12004000
X.Org version: 1.20.4


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 02, 2021, 06:43:11 PM
Here is the output

Code:
$ xrandr | head -n1

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384

$ xdpyinfo | head -n5

name of display:    :0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    12009000
X.Org version: 1.20.9

I run this code and it fixed the issue
Code:
QT_AUTO_SCREEN_SCALE_FACTOR=0 ./bitcoin-qt

But if i run Core from created icon i still have the issue. Looks like i found a solution to make this permanent fix but since i am not familiar with Linux, dont know how to do it, will you please explain how to do it?

Quote
Just modify your menu-entry accordingly or add export QT_AUTO_SCREEN_SCALE_FACTOR=0 to your ~/.profile to have this apply to all Qt apps.

PS: If you need to scale your two screens separately you can do that as well, e.g. QT_SCREEN_SCALE_FACTORS=1;1.5


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: vv181 on July 02, 2021, 07:14:03 PM
Looks like i found a solution to make this permanent fix but since i am not familiar with Linux, dont know how to do it, will you please explain how to do it?
Try this:

Right-click on the icon, then click Properties.

On the command input box, fill it with:
Code:
env QT_AUTO_SCREEN_SCALE_FACTOR=0 ./bitcoin-qt
If that doesn't work try using this:
Code:
env QT_AUTO_SCREEN_SCALE_FACTOR=0 bitcoin-qt



Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 02, 2021, 08:22:12 PM
It worked !!!! Thanks A lot everyone for your help

To summarize and make it easier for  those newbies like me who bump in to similar issue with extra large Bitcoin_qt interface do the following:

Go to the folder wherever you have your bitcoin core`s bin folder, open up a terminal from there and launch the bitcoin-qt with this code
Code:
QT_AUTO_SCREEN_SCALE_FACTOR=0 ./bitcoin-qt

If you already have a bitcoin core icon you need to modify it to add this code and when you want to run bitcoin core next time, just click on the icon instead of launching from terminal.

Right-click on the icon, then click Properties.
On the command input box, fill it with:
Code:
Code:
env QT_AUTO_SCREEN_SCALE_FACTOR=0 ./bitcoin-qt
If that doesn't work try using this:
Code:
Code:
env QT_AUTO_SCREEN_SCALE_FACTOR=0 bitcoin-qt





Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 02, 2021, 08:33:14 PM

Last question if i may, while investigating this issue i found a fatal error by running /test_bitcoin command and it is still there even after fixing the initial issue, i just want to make sure this error doesn't compromise my privacy or security when i use bitcoin-qt

Below is my original post"

I also run a command /usr/local/bin$ ./test_bitcoin from bin folder of version 0.21.1 and received this error, maybe it has something to do with my initial issue? or i can ignore it

/usr/local/bin$
Code:
./test_bitcoin
Running 445 test cases...
unknown location(0): fatal error: in "streams_tests/streams_buffered_file": memory access violation at address: 0x00000000: no mapping at fault address
test/streams_tests.cpp(205): last checkpoint: "streams_buffered_file" test entry
*** 1 failure is detected in the test module "Bitcoin Core Test Suite"


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: vv181 on July 02, 2021, 09:06:59 PM
Last question if i may, while investigating this issue i found a fatal error by running /test_bitcoin command and it is still there even after fixing the initial issue, i just want to make sure this error doesn't compromise my privacy or security when i use bitcoin-qt
The error does not correlate with your initial issue. The ./test_bitcoin command is a unit test that only required/used by the devs, so I'm pretty sure it does not affect your privacy or security.

Regarding the error, it might be that Bitcoin's units test has a bug about it.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 02, 2021, 09:34:49 PM
Thanks a lot for your answer.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: HCP on July 02, 2021, 11:55:24 PM
The test_bitcoin binary should theoretically run without error. If something has failed, then it's possible that something in your setup/config might cause issues further down the track... it's difficult to say without further investigation.

you could try:
Code:
./test_bitcoin -p -r detailed > output.txt

And then check output.txt to see if it gives a more detailed report of where and possibly why it failed.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 03, 2021, 08:29:53 AM

I tried to run the test with "sudo./test_bitcoin"  it gives me "*** No errors detected.
I receive this error when i run without sudo.   "./test_bitcoin"

./test_bitcoin -p -r detailed > output.txt  this code gave me a huge list, i copied it to a text file bellow
https://drive.google.com/file/d/1CerApu_2QxmFzMLa1ImgF-S02OouKD2P/view?usp=sharing


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: NotATether on July 03, 2021, 12:47:26 PM
Add the line (QT_AUTO_SCREEN_SCALE_FACTOR=0) to ~/.bashrc file

If you stick it in a file as is it's not going to work because the environment variable is not forwarded to programs, you have to write it as export QT_AUTO_SCREEN_SCALE_FACTOR=0 in the .bashrc file.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: HCP on July 03, 2021, 11:26:00 PM
I tried to run the test with "sudo./test_bitcoin"  it gives me "*** No errors detected.
I receive this error when i run without sudo.   "./test_bitcoin"
If it is working with sudo, but fails when run as the normal user account, then it's quite likely just a permissions error of some description causing problems with one of the test suites...

Although, that is not likely going to be a problem with the app itself... you should be fine.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: ABCbits on July 04, 2021, 08:39:06 AM
Add the line (QT_AUTO_SCREEN_SCALE_FACTOR=0) to ~/.bashrc file

If you stick it in a file as is it's not going to work because the environment variable is not forwarded to programs, you have to write it as export QT_AUTO_SCREEN_SCALE_FACTOR=0 in the .bashrc file.

Thanks for the correction. Should've check my .bashrc file instead relying on memory.

I tried to run the test with "sudo./test_bitcoin"  it gives me "*** No errors detected.
I receive this error when i run without sudo.   "./test_bitcoin"

./test_bitcoin -p -r detailed > output.txt  this code gave me a huge list, i copied it to a text file bellow
https://drive.google.com/file/d/1CerApu_2QxmFzMLa1ImgF-S02OouKD2P/view?usp=sharing

Did you share wrong file? It's log of running the test as root, not as normal user.

P.S. I suggest to use pastebin if you want to share plain-text. It's lighter and easier to watch.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 04, 2021, 11:50:28 AM

Did you share wrong file? It's log of running the test as root, not as normal user.



When running as a normal user with and without sudo i have this message: bash: output.txt: Permission denied


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: NotATether on July 04, 2021, 12:16:11 PM
When running as a normal user with and without sudo i have this message: bash: output.txt: Permission denied

Perhaps you previously ran that command with sudo, which made the output.txt file owned by root which is why you can't overwrite it as a normal user?

You should try doing sudo rm output.txt or chown YOUR_USERNAME:YOUR_USERNAME output.txt and then run the test script.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 04, 2021, 01:56:17 PM
You should try doing sudo rm output.txt or chown YOUR_USERNAME:YOUR_USERNAME output.txt and then run the test script.

Doesnt work:( here are all command lines
Code:
mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > output.txt
bash: output.txt: Permission denied

mint@amint:/usr/local/bin$ sudo rm output.txt
[sudo] password for mint:       
mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > output.txt
bash: output.txt: Permission denied

mint@amint:/usr/local/bin$ chown mint:mint output.txt
chown: cannot access 'output.txt': No such file or directory

mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > output.txt
bash: output.txt: Permission denied

mint@amint:/usr/local/bin$ sudo ./test_bitcoin -p -r detailed > output.txt
bash: output.txt: Permission denied


Then i opened a bin folder as root, run ./test_bitcoin -p -r detailed > output.txt in order to create output.txt file. Then i exited from root, run a terminal as normal user and run
sudo chown mint:mint output.txt ( i added sudo because without it i get a message: changing ownership of 'output.txt': Operation not permitted)
after it i run ./test_bitcoin -p -r detailed > output.tx which gave me ouptut.txt file attached below

https://pastebin.com/apqzTm11



Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: NotATether on July 04, 2021, 08:02:32 PM
Then i opened a bin folder as root, run ./test_bitcoin -p -r detailed > output.txt in order to create output.txt file. Then i exited from root, run a terminal as normal user and run
sudo chown mint:mint output.txt ( i added sudo because without it i get a message: changing ownership of 'output.txt': Operation not permitted)
after it i run ./test_bitcoin -p -r detailed > output.tx which gave me ouptut.txt file attached below

https://pastebin.com/apqzTm11

Yes, I forgot to type sudo in my above post.

Your pastebin shows a ton of errors about /tmp/test_common_Bitcoin/ files generating permission denied errors, can you try changing the ownership of that directory to your user too?

In general, this is why it's not a good idea to run any kind of tests with sudo or as root unless the root user is the only user, like on an SSH headless server.


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 04, 2021, 08:53:32 PM

Your pastebin shows a ton of errors about /tmp/test_common_Bitcoin/ files generating permission denied errors, can you try changing the ownership of that directory to your user too?
Please take a look is this what you are looking for?

This is a test result copied from terminal
https://pastebin.com/mueEPFdN

This is output.txt content (i deleted begging part of the text since it had a huge list of some sort of timestamp, juts lots of numbers [1;35;49m*...... etc.).
https://pastebin.com/raw/fUs0Kh2R


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: NotATether on July 05, 2021, 07:17:43 AM
~

Yep. Those funny numbers and characters in standard output are just escape characters for the terminal to change the text color or boldness. The other file shows the various unit tests of Core passing, so you're all set!


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: ABCbits on July 05, 2021, 08:16:17 AM
You should try doing sudo rm output.txt or chown YOUR_USERNAME:YOUR_USERNAME output.txt and then run the test script.

Doesnt work:( here are all command lines
Code:
mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > output.txt
bash: output.txt: Permission denied

mint@amint:/usr/local/bin$ sudo rm output.txt
[sudo] password for mint:       
mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > output.txt
bash: output.txt: Permission denied

mint@amint:/usr/local/bin$ chown mint:mint output.txt
chown: cannot access 'output.txt': No such file or directory

mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > output.txt
bash: output.txt: Permission denied

mint@amint:/usr/local/bin$ sudo ./test_bitcoin -p -r detailed > output.txt
bash: output.txt: Permission denied


The problem is you're trying to create a file on /usr/local/bin, it's directory to store executable where only root/sudoers can modify it. Try to save the output on directory owned by you, an example,

Code:
mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > ~/output.txt


Title: Re: Bitcoin-qt huge interface size, Linux Mint
Post by: curious droid on July 05, 2021, 04:18:42 PM
The other file shows the various unit tests of Core passing, so you're all set!

Thanks for your help @NotATether!!!

Try to save the output on directory owned by you, an example,

Code:
mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > ~/output.txt

Thanks @ETFbitcoin !
This code gave me the same output as in my previous post https://pastebin.com/raw/fUs0Kh2R
And it looks like all is ok, i assume that the error i get (Error: in "streams_tests/streams_buffered_file": memory access violation at address: 0x00000000: no mapping at fault address) is insignificant. Previous commentator said that i am all set.