1# Camera Error Codes 2<!--Kit: Camera Kit--> 3<!--Subsystem: Multimedia--> 4<!--Owner: @qano--> 5<!--SE: @leo_ysl--> 6<!--TSE: @xchaosioda--> 7 8> **NOTE** 9> 10> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md). 11 12## 7400101 Invalid Parameter 13 14**Error Message** 15 16Parameter missing or parameter type incorrect. 17 18**Error Description** 19 20A parameter passed in the API is invalid. 21 22**Possible Cause** 23 24The parameter is invalid. For example, the parameter value is not within the range supported. 25 26**Solution** 27 28Pass the correct parameters in the API. 29 30## 7400102 Invalid Operation 31 32**Error Message** 33 34Operation not allowed. 35 36**Error Description** 37 38The operation is not performed in the specified mode. 39 40**Possible Cause** 41 42The API execution sequence is incorrect. For example, the **commitConfig** API is called in prior to **beginConfig**. 43 44**Solution** 45 46Perform operations according to the API reference and guide. 47 48## 7400103 Session Not Configured 49 50**Error Message** 51 52Session not config. 53 54**Error Description** 55 56An operation that requires session configuration is performed before the session is configured. 57 58**Possible Cause** 59 60For example, the **start()** API is called before the session is configured. 61 62**Solution** 63 64Configure the session first. 65 66## 7400104 Session Not Running 67 68**Error Message** 69 70Session not running. 71 72**Error Description** 73 74An operation that requires a running session is performed before the session runs. 75 76**Possible Cause** 77 78For example, the **capture()** API is called before the session runs. 79 80**Solution** 81 82Perform the operation to run the session first. 83 84## 7400105 Session Configuration Locked 85 86**Error Message** 87 88Session config locked. 89 90**Error Description** 91 92The session configuration is locked. 93 94**Possible Cause** 95 96Another thread has locked the session configuration. 97 98**Solution** 99 100Wait until the session configuration is unlocked. 101 102## 7400106 Device Configuration Locked 103 104**Error Message** 105 106Device setting locked. 107 108**Error Description** 109 110The device configuration is locked. 111 112**Possible Cause** 113 114Another thread has locked the device configuration. 115 116**Solution** 117 118Wait until the device configuration is unlocked. 119 120## 7400107 Camera Conflict 121 122**Error Message** 123 124Can not use camera cause of conflict. 125 126**Error Description** 127 128The camera cannot be used due to a conflict. 129 130**Possible Cause** 131 132The opened camera conflicts with the local camera to be used. 133 134**Solution** 135 136Wait until the conflicting camera is released. 137 138## 7400108 Camera Disabled Due to Security Reasons 139 140**Error Message** 141 142Camera disabled cause of security reason. 143 144**Error Description** 145 146The camera cannot be used due to security policies. 147 148**Possible Cause** 149 150The application running in the background attempts to open the camera. 151 152**Solution** 153 154Switch the application to the foreground first. 155 156## 7400109 Camera Preempted 157 158**Error Message** 159 160Can not use camera cause of preempted. 161 162**Error Description** 163 164The camera cannot be used because it is preempted. 165 166**Possible Cause** 167 168Two applications attempt to open the same camera simultaneously. 169 170**Solution** 171 172N/A 173 174## 7400110 Configuration Conflicts 175 176**Error Message** 177 178Unresolved conflicts with current configurations. 179 180**Error Description** 181 182The committed configuration is incompatible with the configuration supported by the device. 183 184**Possible Cause** 185 186The frame rate of the preview stream exceeds that supported by the device. 187 188**Solution** 189 190Check whether the committed configuration is supported by the device. 191 192## 7400201 Camera Service Error 193 194**Error Message** 195 196Camera service fatal error. 197 198**Error Description** 199 200The camera service is abnormal. 201 202**Possible Cause** 203 204For example, the camera service is restarted or cross-process invoking is abnormal. 205 206**Solution** 207 208Create the service again. 209