Nosmai  Effects Nosmai  Moderation Nosmai Try-ons coming soon
Docs menu Troubleshooting
Reference

Troubleshooting

Find the cause of license, camera, package, cloud, recording, and streaming failures by symptom and exact error.

SDK version Native 3.0.4 · Flutter 1.0.2 Updated Aug 22, 2026 Time 12 min

Start with these checks

  1. Confirm the installed package and native artifact versions.
  2. Test on a supported physical ARM64 device.
  3. Confirm the signed package ID, bundle identifier, or Web origin.
  4. Await initialization before mounting or starting the preview.
  5. Keep one active camera owner.
  6. Apply a known-good package from a readable local path.

License and initialization

Symptom or errorLikely causeAction
Initialization returns falseInvalid configuration, native package mismatch, or request failureCapture complete initialization logs and confirm the app identity and versions
Invalid license key. Please check your license.Key, platform, or application identity was rejectedVerify the full key privately and match the signed app identity exactly
SDK not initialized. Please initialize the SDK first.Preview or effect code ran too earlyAwait initialization and create the camera screen only after success
Preview is blurred and watermarkedNative verification returned INVALIDCorrect the key, platform, app identity, or project configuration
Preview has a watermark but is not blurredStatus is UNVERIFIEDCheck network reachability, wait for the final status, and retry with bounded backoff
Preview is blurred, watermarked, and says the license expiredVerification returned LICENSE_EXPIREDRestore the project license, then reinitialize and verify again
Preview is blurred, watermarked, and says the monthly usage limit was reachedVerification returned MAU_LIMIT_EXCEEDEDReview the active plan or agreement in Console and contact the project administrator
E_LICENSE_KEY_MISMATCHThe process was reinitialized with a different keyKeep one platform key stable for the lifetime of the process

Do not print or send a complete production key in normal support logs.

Camera and preview

Symptom or errorLikely causeAction
Camera2 error: Camera device error: 2Another camera session still owns the Android cameraDispose the previous controller, force-stop during diagnosis, and open directly into Nosmai
Camera permission is required to use this feature. Please grant permission in your device settings.Permission was denied or restrictedExplain the need, open system settings, and retry only after access is granted
Black preview after navigationTwo previews exist or cleanup is incompleteKeep one preview, await recording finalization, then dispose the previous camera screen
Stretched React Native Android previewHost view uses a size or resize mode that ignores the camera aspect ratioGive the native view measured bounds and use the package's aspect-preserving preview behaviour
iOS reports No script URL providedMetro is unavailable to a debug build or no JS bundle is embeddedStart Metro for Debug, or build Release with an embedded bundle
Cannot create devtools websocket connections in embedded environmentsReact Native DevTools was enabled in an embedded iOS runtimeDisable the unsupported DevTools connection for that host configuration

Filters and packages

Symptom or errorLikely causeAction
Package path is rejectedPath is missing, remote, unreadable, or contains a query or fragmentUse an unchanged path returned by local discovery or Cloud Filter download
Filter downloads but does not applyUI used the record ID instead of cloud identifier, or ignored the returned local pathDownload by cloud identifier and apply the completion result's path
One effect disappears after another is appliedBoth packages occupy the same active slotFollow the package replacement rules and observe active state
Game runs but taps do nothingTap coordinates were not normalized to the preview content areaConvert the touch point within the rendered preview to values from 0 through 1

Cloud Filters

SymptomLikely causeAction
Catalog is emptyFeature is not licensed, category is wrong, or request failedCheck capability status, request all categories once, and log pagination and error details
Repeated downloads startThe app does not deduplicate tapsKeep one in-flight operation per cloud identifier
Cached filter fails offlineThe app saved a stale or guessed pathStore the identifier and use the SDK's cache or listing result
Download stops midwayNetwork loss or insufficient storageKeep the current effect, show retry, and do not apply a partial path

Capture and recording

SymptomLikely causeAction
Capture succeeds but saving failsPhoto-library or media permission is missingSeparate in-memory capture from gallery permission and handle save failure
Recording will not startPreview is not ready, microphone access is missing, or a recording is activeConfirm ready state, request audio permission only when needed, and query recording state
Stop returns no fileThe session was interrupted or teardown raced finalizationStop before navigation and await the completion result
Android native app needs a still photoNative Android 3.0.4 leaves still capture to the app cameraCapture through the Camera2 owner; use Flutter's higher-level method only in Flutter

Off-screen output and streaming

SymptomLikely causeAction
Output is delayedFrames are queued faster than they are consumedProcess one frame and retain only the newest waiting frame
Output is rotated or mirroredOrientation or mirror was applied twiceUse real pixel orientation and apply mirroring in one layer only
Agora remote video is black while local preview worksAndroid EGL share context was registered after Nosmai initializationCreate the bridge and register sharing before Nosmai creates its GL context
Memory grows during streamingPixel buffers or texture slots are not releasedRelease every retained buffer and stream slot, including dropped-frame paths

What to include in a support report

  • platform, device model, OS version, and ABI list
  • Nosmai wrapper and native artifact versions
  • app identity with secret values removed
  • complete initialization result and license status
  • the operation that failed and exact error after it
  • whether another camera library was active
  • minimal reproduction steps

Next steps

References

Was this page helpful?

Your response helps us prioritize documentation improvements.

Nosmai

An AR and AI company. Founded on the idea that the next decade of software will be visual, and that the tools for it should be within reach of anyone building.

Newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved