Some qr code crashes the camera app

this QR code crashes the camera app when in scan mode
faulty qr code

other bar code scanning apps don’t crash

btw, the “contribute” links in murena site point to a gitlab but registration seems impossible… so posting this here

this is an empty qrcode? seems to blow up right before or in the SystemTextClassifier. You can ask manoj to create the gitlab account

stacktrace
E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: foundation.e.camera, PID: 10346
E AndroidRuntime: java.lang.IllegalArgumentException
E AndroidRuntime: 	at com.android.internal.util.Preconditions.checkArgument(Preconditions.java:45)
E AndroidRuntime: 	at android.view.textclassifier.TextClassifier$Utils.checkArgument(TextClassifier.java:691)
E AndroidRuntime: 	at android.view.textclassifier.TextClassification$Request$Builder.<init>(TextClassification.java:644)
E AndroidRuntime: 	at android.view.textclassifier.TextClassifier.classifyText(TextClassifier.java:318)
E AndroidRuntime: 	at net.sourceforge.opencamera.qr.QrTextClassifier.classifyText(QrTextClassifier.kt:112)
E AndroidRuntime: 	at net.sourceforge.opencamera.qr.QrImageAnalyzer$showQrDialog$1$textClassification$1.invokeSuspend(QrImageAnalyzer.kt:156)
E AndroidRuntime: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
E AndroidRuntime: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
E AndroidRuntime: 	at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
E AndroidRuntime: 	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
E AndroidRuntime: 	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
E AndroidRuntime: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:749)
E AndroidRuntime: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
E AndroidRuntime: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
E AndroidRuntime: 	Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@fd777f9, Dispatchers.Main]

yes it’s an empty text QR code

a check on empty/null at app/src/main/java/net/sourceforge/opencamera/qr/QrTextClassifier.kt · fe012e6585c52c93bc4490ace7a441fb6c846f7d · e / os / Camera · GitLab to not pass it up the chain