# How can I solve issues relating to recording status? (/en/api-reference/faq/quality/record_status_error)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

### Recording quit error [#recording-quit-error]

If Error: 3, with stat\_code:16 is reported, the recording quits normally. You can determine why the recording quit by the leave\_path code.

![](https://web-cdn.agora.io/docs-files/1542879822196)

* LEAVE\_CODE\_INIT(0)：Initialization failure.
* LEAVE\_CODE\_SIG(0b10)：Signal triggered an exit.
* LEAVE\_CODE\_NO\_USERS(0b100)：The recording times out and exits.
* LEAVE\_CODE\_TIMER\_CATCH(0b1000)：Ignore it.
* LEAVE\_CODE\_CLIENT\_LEAVE(0b10000)：The client leaves the channel.

You can perform a bitwise AND operation on the code and each enum value, and those with non-zero results are the reason for the exit. For example, if you perform a bit-by-bit AND operation on code 6 (0b110) and each enum value, only `LEAVE_CODE_SIG` (0b10) and `LEAVE_CODE_NO_USERS` (0b100) get a non-zero result. The reasons for exiting, in this case, include a timeout and a signal triggering the exit.

Typically, a recording session exits because a timeout occurs. Search for "No users in channel" in `recording_sys.log` to confirm.

### How do I know whether the recording crashes? [#how-do-i-know-whether-the-recording-crashes]

The recording crashes if the following scenarios occur:

* Video files cannot play.
* The `uid_xxx.txt` file has no close information about the MPEG-4 file.
* The recording\_sys.log file contains the **MediaFile*&#x2A; keyword but not the **\~MediaFile** keyword.
* The recorded event information in Argus has no quit flag.

### What should I do when the recording crashes? [#what-should-i-do-when-the-recording-crashes]

Users of the Recording SDK v2.2.3 or later can check the crash.log file generated in the same directory as AgoraCoreService.

Users of the Recording SDK versions earlier than v2.2.3 can check if there is a core file generated in the same directory as AgoraCoreService.

1. If you get the core file:
   a. Put the bin/AgoraCoreService and core file together, then execute the command line: gdb -c core\_xxxx AgoraCoreService.
   b. Provide the core file, the result from step a, and the recording\_sys.log file to Agora technical support.
2. If you cannot find the core file:
   a. If no directory is set for the core file, then the core file is usually found in the directory where the recorded AgoraCoreService file is located.
   b. If not, execute ulimit -c on Linux. If the output is 0, coredump is not open. Open coredump by executing: ulimit -c unlimited.
   c. After opening coredump, users can generate the core file after a crash.
   d. Provide the recording\_sys.log file and the core file to Agora technical support.

### The recorded video files of the native client are in webm format when the Native SDK interoperates with the Web SDK. [#the-recorded-video-files-of-the-native-client-are-in-webm-format-when-the-native-sdk-interoperates-with-the-web-sdk]

To fix this issue, set the `codec` property as "h264" when calling the `createClient` method on the web client. If the `codec` property is "vp8", the recorded video files of the native client are in webm format.
