-
Notifications
You must be signed in to change notification settings - Fork 197
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
Comments
Hello, @DarkoLorger |
@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 |
issue confirmed and proposed resolution works like a charm thanks ! |
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! |
The patch is in #52 . |
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...
The text was updated successfully, but these errors were encountered: