Intermittent TF_SessionRun error after long uptime: Retval[0] does not have value

9 views
Skip to first unread message

Attila Hulej

unread,
Jan 15, 2026, 3:27:53 AMJan 15
to doubango-ai

Hi,

Everything works fine at first, but after long uptime (randomly days or weeks) it suddenly starts failing with:

[UltOcrTensorflowSessionRecogn] TF_SessionRun failed: [3] -> Retval[0] does not have value

After that, recognition fails and I also get COMPV_ERROR_CODE_E_THIRD_PARTY_LIB errors (processRGB / recognizeMosaic, etc.). Restarting the app fixes it temporarily.

Has anyone seen this before? What usually causes it, and what can I do to prevent it (memory leak, threading, bad input frame, session corruption, etc.)?

Thanks!


Full log:

***[COMPV ERROR]: function: "processInternal()"
Jan 12 18:30:05 raspberrypi java[18401]: file: "/home/ultimate/ultimateOCR/lib/source/ultimate_ocr_tensorflow_session_recogn.cxx"
Jan 12 18:30:05 raspberrypi java[18401]: line: "130"
Jan 12 18:30:05 raspberrypi java[18401]: message: [UltOcrTensorflowSessionRecogn] TF_SessionRun failed: [3] -> Retval[0] does not have value
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "processRGB()"
Jan 12 18:30:05 raspberrypi java[18401]: file: "/home/ultimate/ultimateOCR/lib/source/ultimate_ocr_tensorflow_session_recogn.cxx"
Jan 12 18:30:05 raspberrypi java[18401]: line: "71"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "recognizeMosaic()"
Jan 12 18:30:05 raspberrypi java[18401]: file: "/home/ultimate/ultimateOCR/lib/source/ultimate_ocr_recognizer.cxx"
Jan 12 18:30:05 raspberrypi java[18401]: line: "138"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "recognizeMosaic()"
Jan 12 18:30:05 raspberrypi java[18401]: file: "/home/ultimate/ultimateALPR/lib/source/ultimate_alpr_recognizer.cxx"
Jan 12 18:30:05 raspberrypi java[18401]: line: "123"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "operator()()"
Jan 12 18:30:05 raspberrypi java[18401]: file: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_recognizer.cxx"
Jan 12 18:30:05 raspberrypi java[18401]: line: "211"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "operator()()"
Jan 12 18:30:05 raspberrypi java[18401]: file: "/home/ultimate/compv/base/parallel/compv_threaddisp.cxx"
Jan 12 18:30:05 raspberrypi java[18401]: line: "76"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "dispatchDividingAcrossY()"
Jan 12 18:30:05 raspberrypi java[18401]: file: "/home/ultimate/compv/base/parallel/compv_threaddisp.cxx"
Jan 12 18:30:05 raspberrypi java[18401]: line: "148"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "dispatchDividingAcrossY()"
Jan 12 18:30:05 raspberrypi java[18401]: file: "/home/ultimate/compv/base/parallel/compv_threaddisp.cxx"
Jan 12 18:30:05 raspberrypi java[18401]: line: "111"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "dispatchDividingAcrossY()"
Jan 12 18:30:05 raspberrypi java[18401]: file: "/home/ultimate/compv/base/parallel/compv_threaddisp.cxx"
Jan 12 18:30:05 raspberrypi java[18401]: line: "76"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "recognizeMosaics()"
Jan 12 18:30:05 raspberrypi java[18401]: file: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_recognizer.cxx"
Jan 12 18:30:05 raspberrypi java[18401]: line: "223"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "recognizeAndClassify()"
Jan 12 18:30:05 raspberrypi java[18401]: file: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_private_engine.cxx"
Jan 12 18:30:05 raspberrypi java[18401]: line: "885"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "parallelProcess()"
Jan 12 18:30:05 raspberrypi java[18401]: file: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_private_engine.cxx"
Jan 12 18:30:05 raspberrypi java[18401]: line: "987"

Mamadou DIOP

unread,
Jan 15, 2026, 8:28:29 PMJan 15
to Attila Hulej, doubango-ai
Hello,

That's not full logs. No information about the system (OS, hardware, version...). 

The engine is designed and tested to run 24/7 indefinitely. There is no memory leaks, we test it before each release. 

You can run the benchmark app for days and see if you can reproduce the issue. 

You can also wait for v4, we no longer use Tensorflow and the OCR part uses Transformers instead of BiLSTM which requires less memory and cpu usage.



Sent from my Galaxy


-------- Original message --------
From: Attila Hulej <alit...@gmail.com>
Date: 1/15/26 09:27 (GMT+01:00)
To: doubango-ai <douba...@googlegroups.com>
Subject: Intermittent TF_SessionRun error after long uptime: Retval[0] does not have value

Hi,

Everything works fine at first, but after long uptime (randomly days or weeks) it suddenly starts failing with:

[UltOcrTensorflowSessionRecogn] TF_SessionRun failed: [3] -> Retval[0] does not have value

After that, recognition fails and I also get COMPV_ERROR_CODE_E_THIRD_PARTY_LIB errors (processRGB / recognizeMosaic, etc.). Restarting the app fixes it temporarily.

Has anyone seen this before? What usually causes it, and what can I do to prevent it (memory leak, threading, bad input frame, session corruption, etc.)?

Thanks!


Full log:

***[COMPV ERROR]: function: "processInternal()"

Jan 12 18:30:05 raspberrypi java[18401]: "/home/ultimate/ultimateOCR/lib/source/ultimate_ocr_tensorflow_session_recogn.cxx"


Jan 12 18:30:05 raspberrypi java[18401]: line: "130"
Jan 12 18:30:05 raspberrypi java[18401]: message: [UltOcrTensorflowSessionRecogn] TF_SessionRun failed: [3] -> Retval[0] does not have value
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "processRGB()"

Jan 12 18:30:05 raspberrypi java[18401]: "/home/ultimate/ultimateOCR/lib/source/ultimate_ocr_tensorflow_session_recogn.cxx"


Jan 12 18:30:05 raspberrypi java[18401]: line: "71"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "recognizeMosaic()"

Jan 12 18:30:05 raspberrypi java[18401]: "/home/ultimate/ultimateOCR/lib/source/ultimate_ocr_recognizer.cxx"


Jan 12 18:30:05 raspberrypi java[18401]: line: "138"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "recognizeMosaic()"

Jan 12 18:30:05 raspberrypi java[18401]: "/home/ultimate/ultimateALPR/lib/source/ultimate_alpr_recognizer.cxx"


Jan 12 18:30:05 raspberrypi java[18401]: line: "123"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "operator()()"

Jan 12 18:30:05 raspberrypi java[18401]: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_recognizer.cxx"


Jan 12 18:30:05 raspberrypi java[18401]: line: "211"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "operator()()"

Jan 12 18:30:05 raspberrypi java[18401]: "/home/ultimate/compv/base/parallel/compv_threaddisp.cxx"


Jan 12 18:30:05 raspberrypi java[18401]: line: "76"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "dispatchDividingAcrossY()"

Jan 12 18:30:05 raspberrypi java[18401]: "/home/ultimate/compv/base/parallel/compv_threaddisp.cxx"


Jan 12 18:30:05 raspberrypi java[18401]: line: "148"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "dispatchDividingAcrossY()"

Jan 12 18:30:05 raspberrypi java[18401]: "/home/ultimate/compv/base/parallel/compv_threaddisp.cxx"


Jan 12 18:30:05 raspberrypi java[18401]: line: "111"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "dispatchDividingAcrossY()"

Jan 12 18:30:05 raspberrypi java[18401]: "/home/ultimate/compv/base/parallel/compv_threaddisp.cxx"


Jan 12 18:30:05 raspberrypi java[18401]: line: "76"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "recognizeMosaics()"

Jan 12 18:30:05 raspberrypi java[18401]: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_recognizer.cxx"


Jan 12 18:30:05 raspberrypi java[18401]: line: "223"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "recognizeAndClassify()"

Jan 12 18:30:05 raspberrypi java[18401]: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_private_engine.cxx"


Jan 12 18:30:05 raspberrypi java[18401]: line: "885"
Jan 12 18:30:05 raspberrypi java[18401]: message: Operation Failed (COMPV_ERROR_CODE_E_THIRD_PARTY_LIB) ->
Jan 12 18:30:05 raspberrypi java[18401]: ***[COMPV ERROR]: function: "parallelProcess()"

Jan 12 18:30:05 raspberrypi java[18401]: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_private_engine.cxx"


Jan 12 18:30:05 raspberrypi java[18401]: line: "987"

--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/doubango-ai/b1668eb2-74d3-40ce-86fe-d29767dd1400n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages