Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Front Camera Unusable

Open
#281 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, kotlin
Domain
mobile

Research direction

The payload names no source files, so start by finding the camera-switching code path in the Kotlin sources and reproducing the NullPointerException on a device or emulator with a front camera. The report's logcat lines and the 'Switching camera failed' message are the search terms. Done means switching to the front camera no longer throws, or the failure is handled with a clear message. Expect device-specific Camera2 behaviour, so confirm the fix on a Samsung Galaxy A22 or a similar device.

Written by the indexing model from the issue text.

Description

bug needs triage
Checklist
  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.
Affected app version

1.5.0

Affected Android/Custom ROM version

Android 13

Affected device model

Samsung Galaxy A22 (SM-A225F)

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

Hello!

  1. Launch the app.
  2. Flip de camera to watch with the main camera.
  3. Flip another time to try to watch with the front camera.
Expected behavior

I would like to use my front camera with Fossify Camera.

Actual behavior

At step 1. A first error message occurres multipe times "Error: java.lang.NullPointerException" and the camera shows only a black screen, then another error message comes up "An error occurred accessing the camera".

At step 3. A little freeze comes up and the main camera still here but with this error "Switching camera failed".

Screenshots/Screen recordings

https://github.com/user-attachments/assets/8b978389-1400-44a5-8c8c-645c4c34eb73

Additional information

Thank you for everything you make!

Dominant language
Kotlin
Stars
473
Forks
56
Avg merge
2d 7h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FossifyOrg/Camera

All issues in FossifyOrg/Camera

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.