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

[bug] Qt: QPrintDialog: cannot be used on non-native printers [macOS] #3356

Open
patricklodder opened this issue Oct 28, 2023 · 11 comments
Open
Labels

Comments

@patricklodder
Copy link
Member

patricklodder commented Oct 28, 2023

Bug Report

Current behavior:
When trying to print paper wallets on MacOS (Ventura) x86_64 or arm64 with the released Dogecoin QT binary, nothing visually happens, and an error is recorded in debug.log for every attempt to open the printer screen:

QPrintDialog: Cannot be used on non-native printers

However, when using binaries that are compiled natively with brew dependencies, the print dialog does show.

Expected behavior
When the "so print" button on the paper wallet screen gets clicked, a print dialog appears.

Steps to reproduce:

  1. File->Print Paper Wallets
  2. Press the "So Print" button
Screenshot
  1. Printer dialog does not appear
  2. debug.log contains a line with QPrintDialog: Cannot be used on non-native printers for each button press

Dogecoin Core version:
Observed with both v1.14.6 and 1.14.7-dev at 86d754c when cross-compiled.

Machine specs:

  • OS: macOS Ventura
  • CPU: x86_68 and arm64
  • Installed Printers: HP Color Laserjet MFP M477fdw
@patricklodder
Copy link
Member Author

patricklodder commented Oct 28, 2023

Added label help wanted: we need testers to see if this can be reproduced on:

  • Windows
  • Linux x86_64
  • Linux aarch64

@computerVA
Copy link

I'm not having a problem printing a paper wallet on Windows with Core v1.14.6. Everything works as expected.

@daank-c
Copy link
Contributor

daank-c commented Oct 29, 2023

I didn't have any problem opening the print dialog on Linux x86_64 using Dogecoin Core v1.14.6. The dialog appeared as expected when the "So Print" button was clicked.

@sasharamirez7777
Copy link

Compiled and tested 1.14.7 on Debian Sid x86_64. Cannot reproduce issue. Print dialogue appears as expected. Also tested 1.14.6 release binaries from github, on same linux system and could not reproduce issue.

SIDE NOTE: Initially I could not compile 1.14.7 due to error:

support/lockedpool.cpp:99:20: error: ‘runtime_error’ is not a member of ‘std’

I edited the lockedpool.cpp file, adding #include <stdexcept> as the error suggested, and then I was able to compile successfully.

@patricklodder
Copy link
Member Author

SIDE NOTE: Initially I could not compile 1.14.7 due to error: support/lockedpool.cpp:99:20: error: ‘runtime_error’ is not a member of ‘std’

There's a pull request open for this at #3335. Could you let us know in that PR what gcc and openssl versions you have installed, so that I can try to reproduce the error?

@chromatic
Copy link
Member

I cannot reproduce the issue on 64-bit x86 Linux. I successfully printed to a file with no error messages in the log.

Note that I have multiple printer drivers installed and configured, even though none of the printers are accessible from this network.

@daank-c
Copy link
Contributor

daank-c commented Oct 30, 2023

I guess if we're noting things, I should also mention that I wasn't able to discover my printer from the print dialog, while using Linux x86_64, which I had assumed was my Chromebook denying Linux access to my USB port.

I was able to save a pdf and print it from my pdf reader.

@SaltyWord624
Copy link

SaltyWord624 commented Oct 30, 2023

No errors on Win10, will test later on 7-8 and also 11

@patricklodder
Copy link
Member Author

I wasn't able to discover my printer from the print dialog, while using Linux x86_64, which I had assumed was my Chromebook denying Linux access to my USB port.

Does it work on any other app?

@computerVA
Copy link

No errors on aarch64 Linux - Bookworm 12.2 / Ras Pi 4B - Core 1.14.6

@patricklodder
Copy link
Member Author

Thanks everyone, your help is greatly appreciated. We've established that this only occurs on macOS. I expect it to be likely due to a deprecation choice Apple has made in newer versions of macOS.

@patricklodder patricklodder changed the title [bug] Qt: QPrintDialog: cannot be used on non-native printers [bug] Qt: QPrintDialog: cannot be used on non-native printers [macOS] Nov 3, 2023
@patricklodder patricklodder removed this from the 1.14.7 milestone Feb 8, 2024
@patricklodder patricklodder mentioned this issue Feb 24, 2024
43 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants