Live Stream Recording Missing in Flashphoner: java.io.IOException: Null writer on file close Error Investigation

hyuk

Member
During a live stream in the 241114aIPg519g room, I encountered an issue where the recording was not saved after the session ended. Upon checking the Flashphoner logs, I found the following error:

Code:
java.io.IOException: Null writer on file close, maybe error during initialization /usr/local/FlashphonerWebCallServer/records/241114aIPg519g-video-U_01047087065-3034-241114aIPg519g-video-U_01047087065-2efe_{startTimeMillis}_{endTimeMillis}.webm
Could this error be the reason why the recording was not saved? I would appreciate an explanation regarding the cause of this issue and whether it is directly related to the missing video recording.

The entire log for that time will be delivered as a report. Please confirm.
 

Max

Administrator
Staff member
Hello.
Could this error be the reason why the recording was not saved?
Yes. Seems like recording even does not started (no file created). This may be due to no keyframe is received from stream publisher.
When trying to send a file to a report, the error below occurs.
Seems like Google puts a monkey wrench into automatic mail sending. We need a time to resolve it. Please send the report directly to support@flashphoner.com
 

Max

Administrator
Staff member
We checked the log.
The stream to be recorded was published at 14:06:18
1731998992966.png

At 14:06:19 the publisher sent unPublishStream event
1731999078322.png

Then the stream was stopped. Record file even was not created because there was no any key frames received from publishers browser. So the exception is normal behavior when we trying to close the file which does not exist, and the exception is correctly caught and reported to server log.
And there are a more such streams in the log: a publisher starts streaming and stops it after 1 second. In this case the stream definitely will not be recorded. The key frame interval may be much more than 1 second.
 
Top