vv181
Legendary
Offline
Activity: 1932
Merit: 1273
|
|
July 02, 2021, 07:14:03 PM Last edit: July 02, 2021, 07:35:37 PM by vv181 |
|
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: env QT_AUTO_SCREEN_SCALE_FACTOR=0 ./bitcoin-qt If that doesn't work try using this: env QT_AUTO_SCREEN_SCALE_FACTOR=0 bitcoin-qt
|
|
|
|
curious droid (OP)
Jr. Member
Offline
Activity: 45
Merit: 17
|
|
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 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: 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
|
|
|
|
curious droid (OP)
Jr. Member
Offline
Activity: 45
Merit: 17
|
|
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$ 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 addresstest/streams_tests.cpp(205): last checkpoint: "streams_buffered_file" test entry *** 1 failure is detected in the test module "Bitcoin Core Test Suite"
|
|
|
|
vv181
Legendary
Offline
Activity: 1932
Merit: 1273
|
|
July 02, 2021, 09:06:59 PM Last edit: July 02, 2021, 09:44:00 PM by vv181 |
|
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.
|
|
|
|
curious droid (OP)
Jr. Member
Offline
Activity: 45
Merit: 17
|
|
July 02, 2021, 09:34:49 PM |
|
Thanks a lot for your answer.
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4361
<insert witty quote here>
|
|
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: ./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.
|
|
|
|
|
NotATether
Legendary
Offline
Activity: 1764
Merit: 7330
Top Crypto Casino
|
|
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.
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4361
<insert witty quote here>
|
|
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.
|
|
|
|
ABCbits
Legendary
Offline
Activity: 3038
Merit: 7950
Crypto Swap Exchange
|
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. 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.
|
|
|
|
curious droid (OP)
Jr. Member
Offline
Activity: 45
Merit: 17
|
|
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
|
|
|
|
NotATether
Legendary
Offline
Activity: 1764
Merit: 7330
Top Crypto Casino
|
|
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.
|
|
|
|
curious droid (OP)
Jr. Member
Offline
Activity: 45
Merit: 17
|
|
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 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
|
|
|
|
NotATether
Legendary
Offline
Activity: 1764
Merit: 7330
Top Crypto Casino
|
|
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/apqzTm11Yes, 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.
|
|
|
|
curious droid (OP)
Jr. Member
Offline
Activity: 45
Merit: 17
|
|
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/mueEPFdNThis 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*[0;39;49m[1;35;49m...... etc.). https://pastebin.com/raw/fUs0Kh2R
|
|
|
|
NotATether
Legendary
Offline
Activity: 1764
Merit: 7330
Top Crypto Casino
|
~
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!
|
|
|
|
ABCbits
Legendary
Offline
Activity: 3038
Merit: 7950
Crypto Swap Exchange
|
|
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 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, mint@amint:/usr/local/bin$ ./test_bitcoin -p -r detailed > ~/output.txt
|
|
|
|
curious droid (OP)
Jr. Member
Offline
Activity: 45
Merit: 17
|
|
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, 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/fUs0Kh2RAnd 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.
|
|
|
|
|