Unable to read DO_IMAGE_GRAPHICS_CONTEXT (SRV000042)

Good Morning

I am not sure why but I am receiving following error during Output Creation process:

W3001 : Error while executing plugin: HTTP/1.1 500 Internal Server Error LoggedApplicationException: There was an error running the output creation process caused by ApplicationException: Unable to read DO_IMAGE_GRAPHICS_CONTEXT
(SRV000042)

I have two individual branches to produce output:

  • Priority documents

  • Regular documents

First I am processing Priority documents, obtain the output correctly. When I am going to regular documents then it crash on output creation.

Someone knows why this error may occurs?

Also is there place with logs for Weaver engine or PP Connect where I can find better error descriptions logs?

Thanks

Try with increasing the Weaver Engine memory (value for -Xmx in the weaverenginge.ini, or since latest version 2018.1 the memory parameter of the weaver scheduling in the Connect Server Configuration).

I dont see any option to increase the memory consumption in Connect Server Configuration tool.

I am using Connect Designer version 1.8.0.47202

Workflow version 8.8.0.12538

Where I can find this “weaverenginge.ini” file?

Ok I found this here:

C:\Program Files\Objectif Lune\OL Connect\weaverengine

You mean to change the value -Xmx640m to for example 1200 ?

yes, just try that higher value, but be sure your machine does have enough RAM as each engine instance can allocate that amount of memory.

I set 1600 value there.

My workstation has 16 GB.

Will test that new options, thanks.

Don’t forget to restart the Connect Server service to get that new value enabled.

Sure I done :slight_smile: Thanks

I’m getting same error but on different version and there is no -Xmx in WeaverEngine.ini to increase the value. Planet Press Connect version 2018.1.1.13044

ERROR: 13:15:09.352 W3001 : Error while executing plugin: HTTP/1.1 500 Internal Server Error LoggedApplicationException: There was an error running the output creation process caused by ApplicationException: Unable to read DO_IMAGE_GRAPHICS_CONTEXT

ERROR: 13:15:09.352 1: lt3|0101QPRUJB54554.trigger|Create Output

ERROR: 13:15:09.352 Create Output: W1603 : Plugin failed - 1:15:09 PM (elapsed time: 00:00:02:876)

since latest version 2018.1 the memory parameter is part of the Weaver scheduling in the Connect Server Configuration.

Still getting same error after changing ServerConfig from -Xmx768m to -Xmx1400m in C:\Program Files\Objectif Lune\OL Connect\Connect Server Configuration

I’m facing with the same issue. When DO_IMAGE_GRAPHICS_CONTEXT error occurs, I can find the following details in weaver log file:

ERROR [10 Dec 2018 17:53:30,215][Thread-50--OutputCreation] nl.edmond.weaver.engine.WeaverEngineImpl.a(WeaverEngineImpl.java) Unable to read DO_IMAGE_GRAPHICS_CONTEXT
nl.edmond.workflow.displaylists.reader.DisplayListReaderException: Unable to get next element from empty buffer
	at nl.edmond.workflow.asn1.ASN1ByteBuffer.next(ASN1ByteBuffer.java)
	at nl.edmond.workflow.displaylists.reader.DisplayListReader.a(DisplayListReader.java)
	at nl.edmond.workflow.displaylists.reader.DisplayListReader.e(DisplayListReader.java)
	at nl.edmond.workflow.displaylists.reader.DisplayListReader.a(DisplayListReader.java)
	at nl.edmond.workflow.displaylists.reader.DisplayListReader.decodeContent(DisplayListReader.java)
	at nl.edmond.workflow.displaylists.manager.BufferManager.reconstructDisplayListBuffer(BufferManager.java)
	at nl.edmond.workflow.handlers.buffers.DisplayListBufferProxy.b(DisplayListBufferProxy.java)
	at nl.edmond.workflow.handlers.buffers.DisplayListBufferProxy.access$3(DisplayListBufferProxy.java)
	at nl.edmond.workflow.handlers.buffers.x.playEvent(x.java)
	at nl.edmond.workflow.handlers.buffers.AbstractEventBuffer.playEventList(AbstractEventBuffer.java)
	at nl.edmond.workflow.handlers.buffers.AbstractEventBuffer.playEvents(AbstractEventBuffer.java)
	at nl.edmond.workflow.handlers.buffers.DisplayListBufferImpl.playEvents(DisplayListBufferImpl.java)
	at nl.edmond.workflow.handlers.buffers.AbstractEventBuffer.playEvents(AbstractEventBuffer.java)
	at nl.edmond.workflow.components.writers.concurrent.LazyBufferFlusher.a(LazyBufferFlusher.java)
	at nl.edmond.workflow.components.writers.concurrent.LazyBufferFlusher.access$9(LazyBufferFlusher.java)
	at nl.edmond.workflow.components.writers.concurrent.f.onEvent(f.java)
	at nl.edmond.workflow.components.writers.concurrent.f.onEvent(f.java)
	at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:113)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
ERROR [10 Dec 2018 17:53:30,252][Thread-50--OutputCreation] com.objectiflune.weaver.engine.product.internal.WeaverEngineCommandProcessor.run(c.java) OutputCreation failed
com.objectiflune.core.base.ApplicationException: Unable to read DO_IMAGE_GRAPHICS_CONTEXT
	at com.objectiflune.weaver.service.impl.WeaverServiceImpl.execute(WeaverServiceImpl.java)
	at com.objectiflune.weaver.engine.product.internal.WeaverEngineCommandProcessor.a(WeaverEngineCommandProcessor.java)
	at com.objectiflune.weaver.engine.product.internal.WeaverEngineCommandProcessor.b(WeaverEngineCommandProcessor.java)
	at com.objectiflune.weaver.engine.product.internal.WeaverEngineCommandProcessor.a(WeaverEngineCommandProcessor.java)
	at com.objectiflune.weaver.engine.product.internal.c.run(c.java)
	at com.objectiflune.weaver.engine.product.internal.g.run(g.java)
	at java.lang.Thread.run(Thread.java:748)
Caused by: nl.edmond.workflow.displaylists.reader.DisplayListReaderException: Unable to read DO_IMAGE_GRAPHICS_CONTEXT
	at nl.edmond.workflow.displaylists.reader.DisplayListReader.a(DisplayListReader.java)
	at nl.edmond.workflow.displaylists.reader.DisplayListReader.e(DisplayListReader.java)
	at nl.edmond.workflow.displaylists.reader.DisplayListReader.a(DisplayListReader.java)
	at nl.edmond.workflow.displaylists.reader.DisplayListReader.decodeContent(DisplayListReader.java)
	at nl.edmond.workflow.displaylists.manager.BufferManager.reconstructDisplayListBuffer(BufferManager.java)
	at nl.edmond.workflow.handlers.buffers.DisplayListBufferProxy.b(DisplayListBufferProxy.java)
	at nl.edmond.workflow.handlers.buffers.DisplayListBufferProxy.access$3(DisplayListBufferProxy.java)
	at nl.edmond.workflow.handlers.buffers.x.playEvent(x.java)
	at nl.edmond.workflow.handlers.buffers.AbstractEventBuffer.playEventList(AbstractEventBuffer.java)
	at nl.edmond.workflow.handlers.buffers.AbstractEventBuffer.playEvents(AbstractEventBuffer.java)
	at nl.edmond.workflow.handlers.buffers.DisplayListBufferImpl.playEvents(DisplayListBufferImpl.java)
	at nl.edmond.workflow.handlers.buffers.AbstractEventBuffer.playEvents(AbstractEventBuffer.java)
	at nl.edmond.workflow.components.writers.concurrent.LazyBufferFlusher.a(LazyBufferFlusher.java)
	at nl.edmond.workflow.components.writers.concurrent.LazyBufferFlusher.access$9(LazyBufferFlusher.java)
	at nl.edmond.workflow.components.writers.concurrent.f.onEvent(f.java)
	at nl.edmond.workflow.components.writers.concurrent.f.onEvent(f.java)
	at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:113)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	... 1 common frames omitted
Caused by: nl.edmond.workflow.displaylists.reader.DisplayListReaderException: Unable to get next element from empty buffer
	at nl.edmond.workflow.asn1.ASN1ByteBuffer.next(ASN1ByteBuffer.java)
	... 20 common frames omitted
INFO [10 Dec 2018 17:53:30,253][Thread-50--OutputCreation] com.objectiflune.weaver.engine.product.internal.WeaverEngineCommandProcessor.a(WeaverEngineCommandProcessor.java) PROGRESS: -1

I hope it can help to track this issue down.

Hi there,

We had this issue when processing a lot of PDF files, specifically when adding datamatrix barcodes as additional content (never got it when not adding additional content).

The only way we got round it was by pre-processing the PDFs beforehand. We run them through a process to output them as level 3 postscript, then run the ps files back through another process to convert back to PDF. This strips all the nasties out of the PDF files and we’re able to process and run everything without the dreaded DO_IMAGE_GRAPHICS_CONTEXT crash. It’s a bit long winded and it aint quick if you’re processing '000s of files, but it works. Connect seemed to get less tolerant of dodgy PDFs after 1.8.

Cheers
Tom