Recognizer stopped, Java heap space

Hello

For the last two days I have tried to use the video recognizer, sometimes the process ends without errors, but in the xml file the tiers are not created, only the header:
<? xml version = “1.0” encoding = “utf-8”?>
<TIERS xmlns: xsi = “http://www.w3.org/2001/XMLSchema-instance” xsi: noNamespaceSchemaLocation = “./ avatech-tier.xsd” />

Other times, the process is interrupted, the report indicates that the problem may be related to java and memory:

DEBUG: Using CLAM Server REST webservice URL http://corpus1.mpi.nl/avatech/avatech_hhi_hand_head_tracking/
DEBUG: InvocationContext=HHI-VideoRecognizer 2018-12-10 11:16:54-0600
DEBUG: input_video=C:\Users\sofia\Documents\CLESCO-001\CLESCO-001a.mp4
DEBUG: input_xml=C:\Users\sofia\Documents\CLESCO-001\SKIN_CLESCO-001a.xml
DEBUG: change_threshold=30.0
DEBUG: logging_level=verbose
DEBUG: speed_threshold=normal
DEBUG: background_image=true
DEBUG: use_rest_position=true
DEBUG: output_video_resolution=half
DEBUG: use_single_cluster=false
DEBUG: output_video=
DEBUG: output_xml=C:\Users\sofia\Documents\CLESCO-001\CLESCO-001a-output.xml
DEBUG: output_csv=
DEBUG: Reading AVATecH recognizer CMDI metadata file: recognizer.cmdi
INFO: Recognizer: HHI-VideoRecognizer
DEBUG: Sending media file for: input_video Name: C:\Users\sofia\Documents\CLESCO-001\CLESCO-001a.mp4
DEBUG: Sending media file for: input_xml Name: C:\Users\sofia\Documents\CLESCO-001\SKIN_CLESCO-001a.xml
DEBUG: Starting computation: cefe8482b731a649
WARN: Still busy, 377730 lines of log yet, 971 warning(s)
WARN: Still busy, 1190083 lines of log yet, 4092 warning(s)
WARN: Still busy, 2736844 lines of log yet, 9201 warning(s)
Exception in thread “main” java.lang.OutOfMemoryError: Java heap space
at java.lang.String.substring(Unknown Source)
at java.lang.String.subSequence(Unknown Source)
at java.util.regex.Pattern.split(Unknown Source)
at java.lang.String.split(Unknown Source)
at java.lang.String.split(Unknown Source)
at AvatechClamClient.main(AvatechClamClient.java:623)
Recognizer stopped; unexpected end of transmission.

Any ideas?

It seems the recognizer extension is running out of memory while reading log messages. You could try again by setting “Adjust amount of log messages” to “low”. And you could try to increase the amount of available memory by opening the file “recognizer.cmdi” which is located in the folder ELAN/extensions/clam-hhi-hand-head-tracking. Open it in a text editor, look for a line starting with ‘runWin="java AvatechClamClient …’ (or runMac or runLinux) and insert a string like the following:
-Xmx1024m
so that the start of the line reads like:
runWin="java -Xmx1024m AvatechClamClient …
This sets the max heap size to 1024 Mb, you could increase this if you have more memory available.
I’m not sure if this will work, but it is something to try.

-Han

Thank you very much, I did your recommendation. But the problem is that the tiers are not created: the output xml file only size 1 KB and only shows the header: <?xml version=“1.0” encoding=“utf-8”?>
<TIERS xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation="./avatech-tier.xsd"/>

The report says:

DEBUG: Using CLAM Server REST webservice URL http://corpus1.mpi.nl/avatech/avatech_hhi_hand_head_tracking/
DEBUG: InvocationContext=HHI-VideoRecognizer 2018-12-11 09:28:02-0600
DEBUG: input_video=C:\Users\sofia\Documents\CLESCO-001\CLESCO-001a.mp4
DEBUG: input_xml=C:\Users\sofia\Documents\CLESCO-001\SKIN_CLESCO-001a.xml
DEBUG: change_threshold=30.0
DEBUG: logging_level=low
DEBUG: speed_threshold=normal
DEBUG: background_image=true
DEBUG: use_rest_position=true
DEBUG: output_video_resolution=half
DEBUG: use_single_cluster=false
DEBUG: output_video=
DEBUG: output_xml=C:\Users\sofia\Documents\CLESCO-001\CLESCO-001a-output.xml
DEBUG: output_csv=
DEBUG: Reading AVATecH recognizer CMDI metadata file: recognizer.cmdi
INFO: Recognizer: HHI-VideoRecognizer
DEBUG: Sending media file for: input_video Name: C:\Users\sofia\Documents\CLESCO-001\CLESCO-001a.mp4
DEBUG: Sending media file for: input_xml Name: C:\Users\sofia\Documents\CLESCO-001\SKIN_CLESCO-001a.xml
DEBUG: Starting computation: e51a43f611bbf980
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
WARN: Still busy, 30 lines of log yet, 2 warning(s)
INFO: Done waiting, result: DONE status: RESULTS READY
DEBUG: Not fetching: output_video
DEBUG: Not fetching: output_csv
DEBUG: Fetching: output_xml.xml to: C:\Users\sofia\Documents\CLESCO-001\CLESCO-001a-output.xml
DEBUG: progress_log.txt from Recognizer follows:
DEBUG: Statusfile is /srv/tools/workspaces/clam.hand_head_tracking/projects/anonymous/e51a43f611bbf980/.status
DEBUG: Inputdir is /srv/tools/workspaces/clam.hand_head_tracking/projects/anonymous/e51a43f611bbf980/input/
DEBUG: Outputdir is /srv/tools/workspaces/clam.hand_head_tracking/projects/anonymous/e51a43f611bbf980/output/
DEBUG: Parameter logging_level is low
DEBUG: Parameter speed_threshold is normal
DEBUG: Parameter update_rate is ALWAYS 10
DEBUG: Parameter background_detection is
DEBUG: Parameter output_video_resolution is half
DEBUG: Parameter use_rest_position is true
DEBUG: Parameter use_mc_neill_output is true
INFO: reading parameter input_video with value /srv/tools/workspaces/clam.hand_head_tracking/projects/anonymous/e51a43f611bbf980/input/input_video.mpg
INFO: reading parameter input_xml with value /srv/tools/workspaces/clam.hand_head_tracking/projects/anonymous/e51a43f611bbf980/input/input_xml.xml
INFO: reading parameter output_xml with value /srv/tools/workspaces/clam.hand_head_tracking/projects/anonymous/e51a43f611bbf980/output/output_xml.xml
INFO: reading parameter output_video with value /srv/tools/workspaces/clam.hand_head_tracking/projects/anonymous/e51a43f611bbf980/output/output_video.mp4
INFO: reading parameter logging_level with value low
INFO: reading parameter speed_threshold with value normal
INFO: reading parameter use_rest_position with value true
INFO: reading parameter update_rate with value 10
INFO: reading parameter background_detection with value
INFO: reading parameter output_video_resolution with value half
INFO: reading parameter use_mc_neill_output with value true
INFO: logging level = low
INFO: Parameter queue_size not found
WARN: Queue size not specified, setting it to default value (10).
WARN: parameter background_detection must be either true or false, setting it to false
INFO: Parameter background_removal not found
INFO: Parameter ground_truth_file not found
INFO: Parameter image_destination_folder not found
INFO: Parameter show_output not found
INFO: First frame with a face: 0
INFO: Total time: 570.919 s.
RESULT: DONE.