Skip to main content
Linux uses the same C++ API as Windows, so most error-handling logic is identical. This page also covers Linux-specific issues.

Return Value Convention

BeautyEffectEngine::Create() returns nullptr on failure.

Common Errors and Fixes

1. Engine Creation Fails (Create Returns nullptr)

The causes and fixes are the same as on Windows. Start by enabling logging:
Common causes: invalid app_id / app_key, wrong resource.fbd path, no network access.

2. libfacebetter.so Not Found at Runtime

Error message:
Fix (choose one):

3. ProcessImage Returns nullptr


4. Beauty Effects Have No Visible Impact

Make sure each BeautyType is enabled and the parameter value is greater than 0:

5. GLFW Cannot Open Display

Error message:
Fix:

6. OpenGL Initialization Failure

Possible cause: Missing OpenGL driver or Mesa libraries. Fix:

Enabling Debug Logs


Error Code Reference