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

print dialog crashes with :hardcopy command #564

Open
djbrennan opened this issue Jun 14, 2019 · 6 comments
Open

print dialog crashes with :hardcopy command #564

djbrennan opened this issue Jun 14, 2019 · 6 comments
Assignees
Labels

Comments

@djbrennan
Copy link

Version: 3.4.0-17-g4527955
WebKit compile: 2.24.2
WebKit run: 2.24.2
GTK compile: 3.24.1
GTK run: 3.24.1
libsoup compile: 2.64.2
libsoup run: 2.64.2
Extension dir: /usr/local/lib/vimb

Steps to reproduce

:hardcopy

Expected behaviour

Print dialog box opens and remains open to allow interaction

Actual behaviour

Print dialog box opens then closes within 1 second. No time to change any print settings.

@fanglingsu fanglingsu added the bug label Jun 14, 2019
@fanglingsu
Copy link
Owner

@djbrennan Thank you for reporting this issue. I can reproduce it on my system too.

@fanglingsu fanglingsu self-assigned this Jun 14, 2019
fanglingsu added a commit that referenced this issue Jun 14, 2019
@fanglingsu
Copy link
Owner

fanglingsu commented Jun 14, 2019

@djbrennan This issue seems to be an issue in GTK3 at least on my system. If I opened the dialog I could see the the Print-Button was clickes/activated to start printing even if the mouse pointer was somewhere else. In my case the default printer was set to lpr which does not exist on my system. So GTK tryed to print with a none existing tool.
I don't understand why the printing is started automatically in case of lpr print backend.

So I've configured GTK3 to not use the lpr print backend. By putting
following lines into ~/.config/gtk-3.0/settings.ini

[Settings]
gtk-print-backends=file,cups

And I updated vimb to show an error if printing failed, which hinted me to search in the right direction.
I can't provide a better solution for this issue. The code seems to be right according to documentation and to what other projects do and it worked in the past. So if this workaround works for you too, feel free to close this issue.

@djbrennan
Copy link
Author

djbrennan commented Jun 16, 2019 via email

@ghost
Copy link

ghost commented Sep 16, 2019

It doesn't work for me. I don't get a crash, but the print dialog opens and then immediately prints (closing), giving me no time to select different print options. It does print though -- always to the printer, because that's the default.

I have the following in ~/.config/gtk-3.0/settings.ini:

[Settings]
...
gtk-print-backends=file,cups

It's been behaving like this for months. I'm currently on vimb 3.5.0.

@fanglingsu
Copy link
Owner

fanglingsu commented Sep 16, 2019

@serussell I can reproduce this issue. No message is written to cli and the print dialog is opened and the print button is somehow automatic clicked right after opening the dialog. At least with cups as allowed print backend

@jjakob
Copy link
Contributor

jjakob commented Nov 4, 2021

I have this issue too.

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

3 participants