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

(/usr/lib/cups/filter/rastertozj) crashed on signal 11. #35

Open
DarkoLorger opened this issue Mar 10, 2021 · 5 comments
Open

(/usr/lib/cups/filter/rastertozj) crashed on signal 11. #35

DarkoLorger opened this issue Mar 10, 2021 · 5 comments

Comments

@DarkoLorger
Copy link

After installing driver for zj-58 we got issue "(/usr/lib/cups/filter/rastertozj) crashed on signal 11." in log file from cups and no printing of page...
We find next...
Variable is defined like:
unsigned iBytesChunk = 0;
but when program run function
iBytesChunk = compress_buffer(pRasterBuf, iBytesChunk,
tHeader.cupsBytesPerLine, width_bytes);
in some reason it can be negative (or value so big ) and that is the reason for signal 11...
Suggestion and tested solution...
Variable change to
int iBytesChunk = 0;
and after call a function compress_buffer, check the value and correct it
if (iBytesChunk<0)
{
iBytesChunk=(tHeader.cupsBytesPerLine *iBlockHeight)+iBytesChunk;
}
Regards...

@klirichek
Copy link
Owner

Hello, @DarkoLorger
Thanks for the investigation and the fix.
I can pick your fix, however it would be better if you make pull-request and I approve it. (that is better in means that you'll be mentioned in the git history of commits as a contributer). However, if you don't desire it, I can just make manual changes.

@lekhnath
Copy link

lekhnath commented Aug 1, 2021

@klirichek I am also getting the exact same error message in Ubuntu 20 LTS. Please make this fix available.

Also, is there any quick fix to this? I mean is there any thing that I could do in my local machine to fix this error?

Thanks.

CC: @DarkoLorger

@aralfer
Copy link

aralfer commented Oct 9, 2021

issue confirmed and proposed resolution works like a charm

thanks !

@pintsel
Copy link

pintsel commented Nov 6, 2022

We had exactly the same problem, when trying to print with Epson TM-T20III Ethernet version (LPD port 515 in Cups). This fix indeed works like a charm! Thank you very much!
(so far we had no problems with TM20 USB versions and using IPP)

@karfas
Copy link

karfas commented Oct 5, 2024

The patch is in #52 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants