[jedit:bugs] #4115 PrinterIOException when I try to print

Makarius via jEdit-devel <[email protected]>
Newsgroups gmane.editors.jedit.devel
Message-ID </p/jedit/bugs/4115/5c49ef296e9da78c75320a5df085f3174c79011d.bugs@jedit.p.sourceforge.net>
Here is a stack trace with jEdit rev 25530 with OpenJDK 64-Bit Server VM Zulu17.28+13-CA on Linux:

```
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask: java.util.ConcurrentModificationException
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1220)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at org.gjt.sp.jedit.syntax.Chunk.init(Chunk.java:539)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at org.gjt.sp.jedit.syntax.DisplayTokenHandler.initChunk(DisplayTokenHandler.java:175)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at org.gjt.sp.jedit.syntax.DisplayTokenHandler.initChunks(DisplayTokenHandler.java:184)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at org.gjt.sp.jedit.syntax.DisplayTokenHandler.makeScreenLine(DisplayTokenHandler.java:392)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at org.gjt.sp.jedit.syntax.DisplayTokenHandler.handleToken(DisplayTokenHandler.java:96)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at isabelle.jedit.Token_Markup$Marker.markTokens(token_markup.scala:297)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1844)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1387)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(BufferPrintable1_7.java:326)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at org.gjt.sp.jedit.print.BufferPrintable1_7.print(BufferPrintable1_7.java:147)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at java.desktop/sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:2280)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at java.desktop/sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1659)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at java.desktop/sun.print.UnixPrintJob.printableJob(UnixPrintJob.java:652)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at java.desktop/sun.print.UnixPrintJob.print(UnixPrintJob.java:518)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at org.gjt.sp.jedit.print.BufferPrinter1_7$1.run(BufferPrinter1_7.java:152)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at org.gjt.sp.util.TaskManager$MyTask._run(TaskManager.java:244)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at org.gjt.sp.util.Task.run(Task.java:65)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
11:16:47 AM [jEdit Worker #1] [error] TaskManager$MyTask:  at java.base/java.lang.Thread.run(Thread.java:833)
```

I have seen this `java.util.ConcurrentModificationException` in other situations as well, e.g. the Plugin Manager / Update dialog (but cannot reproduce it now).


---

** [bugs:#4115] PrinterIOException when I try to print**

**Status:** open
**Group:** normal bug
**Labels:** printer linux 
**Created:** Thu Oct 21, 2021 04:11 PM UTC by Christian Reuschling
**Last Updated:** Thu Oct 28, 2021 06:47 PM UTC
**Owner:** Dale Anson


I can not print with jedit anymore to my linux cups printers and the pdf printer. Printing in a postscript file works. I can print this postscript file with lpr later.
jEdit gives me a PrinterIOException as message, nevertheless I can't see the whole stacktrace in the activity log.
I had a similar issue with intellij idea (also java based) where I was also not able to print, but here I was able to see the stack trace: finally the command 'lpr -o job-sheets=standard' was generated, and my lpr gives then an error that 'standard' is not known. Disabling the banner page in the intellij print dialog was the solution there. I can of course not be sure if this is the same issue as in jEdit. I found no possibility to disable banner pages in jEdit to check it out this way.

jEdit version: 5.6.0 with openJdk 17 (tried different java versions)
OS OpenSuse 15.3


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/jedit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

-- 
-----------------------------------------------
jEdit Developers' List
[email protected]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.