I'm implementing a simple clock app and was looking at the example from the package Alarm (https://pub.dev/packages/alarm/example) since it does most of the things I want to do. It works when I try it on my phone, but won't work on an virtual android device. The problem is when I try to put in my own sound asset and it gives me a few errors. I copied the main file into my own project and updated the pubspec file (to incorporate assets and libraries). The error I get is
I/flutter ( 4515): [Alarm] (main) received: [Alarm] Setting audio source local asset: assets/MorningGlory.mp3 I/ExoPlayerImpl( 4515): Init 294eec7e [ExoPlayerLib/2.18.1] [generic_x86, Android SDK built for x86, unknown, 22] I/OMXClient( 4515): Using client-side OMX mux. E/AudioTrack( 4515): AudioFlinger could not create track, status: -12 E/AudioTrack-JNI( 4515): Error -12 initializing AudioTrack E/android.media.AudioTrack( 4515): Error code -20 when initializing AudioTrack. E/MediaCodecAudioRenderer( 4515): Audio sink error E/MediaCodecAudioRenderer( 4515): com.google.android.exoplayer2.audio.AudioSink$InitializationException: AudioTrack init failed 0 Config(44100, 12, 44100) E/MediaCodecAudioRenderer( 4515): at com.google.android.exoplayer2.audio.DefaultAudioSink$Configuration.buildAudioTrack(DefaultAudioSink.java:2110) E/MediaCodecAudioRenderer( 4515): at com.google.android.exoplayer2.audio.DefaultAudioSink.buildAudioTrack(DefaultAudioSink.java:1070) E/MediaCodecAudioRenderer( 4515): at com.google.android.exoplayer2.audio.DefaultAudioSink.buildAudioTrackWithRetry(DefaultAudioSink.java:1049) E/MediaCodecAudioRenderer( 4515): at com.google.android.exoplayer2.audio.DefaultAudioSink.initializeAudioTrack(DefaultAudioSink.java:846) E/MediaCodecAudioRenderer( 4515): at com.google.android.exoplayer2.audio.DefaultAudioSink.handleBuffer(DefaultAudioSink.java:929) E/MediaCodecAudioRenderer( 4515): at com.google.android.exoplayer2.audio.MediaCodecAudioRenderer.processOutputBuffer(MediaCodecAudioRenderer.java:703) E/MediaCodecAudioRenderer( 4515): at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.drainOutputBuffer(MediaCodecRenderer.java:1894) E/MediaCodecAudioRenderer( 4515): at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.render(MediaCodecRenderer.java:792) E/MediaCodecAudioRenderer( 4515): at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:989) E/MediaCodecAudioRenderer( 4515): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:490) E/MediaCodecAudioRenderer( 4515): at android.os.Handler.dispatchMessage(Handler.java:98) E/MediaCodecAudioRenderer( 4515): at android.os.Looper.loop(Looper.java:135) E/MediaCodecAudioRenderer( 4515): at android.os.HandlerThread.run(HandlerThread.java:61) I/flutter ( 4515): [Alarm] (main) received: [Alarm] Alarm playing E/AudioTrack( 4515): AudioFlinger could not create track, status: -12 E/AudioTrack-JNI( 4515): Error -12 initializing AudioTrack E/android.media.AudioTrack( 4515): Error code -20 when initializing AudioTrack. E/MediaCodecAudioRenderer( 4515): Audio sink error
I tried getting my code to match the example code and expected a ringing sound.
Related
I have been working on a flutter project for a while now, but I had to change the PC I am using for some reasons. the thing is that every time I try to run the app I get bunch of errors then the app crashes and the connection get lost. I tried to run the app from the old PC again and It worked fine.
This is the stack of errors I get before the crash:
E/LB (21021): fail to open file: No such file or directory
I/m.example.test(21021): ProcessProfilingInfo new_methods=92 is saved saved_to_disk=1 resolve_classes_delay=8000
D/DecorView: getWindowModeFromSystem windowmode is 1
I/flutter (21021): True
E/AndroidRuntime(21021): FATAL EXCEPTION: flutter-worker-1
E/AndroidRuntime(21021): Process: com.example.test1, PID: 21021
E/AndroidRuntime(21021): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/tekartik/sqflite/LogLevel;
E/AndroidRuntime(21021): at com.tekartik.sqflite.SqflitePlugin.onOpenDatabaseCall(SqflitePlugin.java:733)
E/AndroidRuntime(21021): at com.tekartik.sqflite.SqflitePlugin.onMethodCall(SqflitePlugin.java:983)
E/AndroidRuntime(21021): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:261)
E/AndroidRuntime(21021): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
E/AndroidRuntime(21021): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:321)
E/AndroidRuntime(21021): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
E/AndroidRuntime(21021): at io.flutter.embedding.engine.dart.DartMessenger$SerialTaskQueue.flush(DartMessenger.java:173)
E/AndroidRuntime(21021): at io.flutter.embedding.engine.dart.DartMessenger$SerialTaskQueue.lambda$dispatch$0$io-flutter-embedding-engine-dart-DartMessenger$SerialTaskQueue(DartMessenger.java:163)
E/AndroidRuntime(21021): at io.flutter.embedding.engine.dart.DartMessenger$SerialTaskQueue$$ExternalSyntheticLambda0.run(Unknown Source:2)
E/AndroidRuntime(21021): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime(21021): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime(21021): at java.lang.Thread.run(Thread.java:923)
E/AndroidRuntime(21021): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.tekartik.sqflite.LogLevel" on path: DexPathList[[zip file "/data/app/~~Jf92ML0d6XYgNbFc-Me8kg==/com.example.test1-i0I0QGqwfxD8m-Juiw5BfQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~Jf92ML0d6XYgNbFc-Me8kg==/com.example.test1-i0I0QGqwfxD8m-Juiw5BfQ==/lib/arm64, /data/app/~~Jf92ML0d6XYgNbFc-Me8kg==/com.example.test1-i0I0QGqwfxD8m-Juiw5BfQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
E/AndroidRuntime(21021): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
E/AndroidRuntime(21021): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime(21021): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime(21021): ... 12 more
I/Process (21021): Sending signal. PID: 21021 SIG: 9
Lost connection to device.
Anyone have any idea of what is going on here?
Thanks in advance.
Are you sure you have the same version of flutter as the computer you are using? You can check this thread
Init billing processor before any operation begins
licenseKey your google play license key. Code editted.
Future<void> initPlatformState() async {
try {
await FlutterInAppBilling.initBp(licenseKey);
} on Exception catch (_) {}
}
These are the logs I am getting when I try to init Billing processor. Please try the plugin flutter_in_app_billing
W/BillingClient( 6922): Client is already in the process of connecting to billing service.
I/FlutterInAppBilling( 6922): Billing Processor Error
I/FlutterInAppBilling( 6922): java.lang.IllegalStateException: Reply already submitted
D/Surface ( 6922): lockCanvas
D/GooglePlayConnection; ( 6922): IsConnected
I/FlutterInAppBilling( 6922): Billing Processor Initialized
D/AndroidRuntime( 6922): Shutting down VM
E/AndroidRuntime( 6922): FATAL EXCEPTION: main
E/AndroidRuntime( 6922): Process: net.thesocialapp.consumer, PID: 6922
E/AndroidRuntime( 6922): java.lang.IllegalStateException: Reply already submitted
E/AndroidRuntime( 6922): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:139)
E/AndroidRuntime( 6922): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:238)
E/AndroidRuntime( 6922): at com.vau.flutter_in_app_billing.FlutterInAppBillingPlugin.onBillingInitialized(FlutterInAppBillingPlugin.kt:154)
E/AndroidRuntime( 6922): at com.anjlab.android.iab.v3.BillingProcessor$HistoryInitializationTask.onPostExecute(BillingProcessor.java:156)
E/AndroidRuntime( 6922): at com.anjlab.android.iab.v3.BillingProcessor$HistoryInitializationTask.onPostExecute(BillingProcessor.java:127)
E/AndroidRuntime( 6922): at android.os.AsyncTask.finish(AsyncTask.java:695)
E/AndroidRuntime( 6922): at android.os.AsyncTask.-wrap1(Unknown Source:0)
E/AndroidRuntime( 6922): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:712)
E/AndroidRuntime( 6922): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime( 6922): at android.os.Looper.loop(Looper.java:214)
E/AndroidRuntime( 6922): at android.app.ActivityThread.main(ActivityThread.java:6977)
E/AndroidRuntime( 6922): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 6922): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:528)
E/AndroidRuntime( 6922): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:910)
D/Surface ( 6922): Surface::disconnect(this=0x7c820c5000,api=2)
I/MPEG4Writer( 6922): Received total/0-length (249/0) buffers and encoded 249 frames. - Video
I/MPEG4Writer( 6922): reset()
D/MPEG4Writer( 6922): Video track stopping. Stop source
D/MPEG4Writer( 6922): Video track source stopping
D/MPEG4Writer( 6922): Video track source stopped
D/MPEG4Writer( 6922): Video track stopped. Stop source
D/MPEG4Writer( 6922): Stopping writer thread
D/MPEG4Writer( 6922): 0 chunks are written in the last batch
D/MPEG4Writer( 6922): Writer thread stopped
I/MPEG4Writer( 6922): writeMoovBox()
I/MPEG4Writer( 6922): Ajust the moov start time from 102875584182 us -> 102875584182 us
I/MPEG4Writer( 6922): writeMoovBox() end
I/MPEG4Writer( 6922): The mp4 file will not be streamable.
I/MPEG4Writer( 6922): release()
I/MPEG4Writer( 6922): reset()
D/MPEG4Writer( 6922): Video track stopping. Stop source
I/zygote64( 6922): Do partial code cache collection, code=500KB, data=318KB
I/zygote64( 6922): After code cache collection, code=495KB, data=313KB
I/zygote64( 6922): Increasing code cache capacity to 2MB
D/TransportRuntime.SQLiteEventStore( 6922): Storing event with priority=HIGHEST, name=FIREBASE_CRASHLYTICS_REPORT for destination cct
D/TransportRuntime.JobInfoScheduler( 6922): Scheduling upload for context TransportContext(cct, HIGHEST, MSRodHRwczovL2NyYXNobHl0aWNzcmVwb3J0cy1wYS5nb29nbGVhcGlzLmNvbS92MS9maXJlbG9nL2xlZ2FjeS9iYXRjaGxvZ1xBSXphU3lCcnBTWVQ0RkZMMDlyZUhKaTZIOUZZZGVpU25VVE92Mk0=) with jobId=552285206 in 1000ms(Backend next call timestamp 1653049603958). Attempt 1
I/Process ( 6922): Sending signal. PID: 6922 SIG: 9
I'm trying to create a simple document in my Firestore database when a user presses submit. It works when the app is run on iOS but this is what I see when I run it on macOS:
2022-03-20 19:39:47.333823-0700 globe_artist[62624:775059] Connection 12: received failure notification
2022-03-20 19:39:47.333872-0700 globe_artist[62624:775059] Connection 12: failed to connect 1:1, reason -1
2022-03-20 19:39:47.333901-0700 globe_artist[62624:775059] Connection 12: encountered error(1:1)
2022-03-20 19:39:47.337548-0700 globe_artist[62624:775059] Task <3286828D-3FE8-44EB-9E85-C164E1B00836>.<1> HTTP load failed, 0/0 bytes (error code: 1 [1:1])
2022-03-20 19:39:47.338184-0700 globe_artist[62624:775059] Task <3286828D-3FE8-44EB-9E85-C164E1B00836>.<1> finished with error [1] Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <3286828D-3FE8-44EB-9E85-C164E1B00836>.<1>, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=1, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <3286828D-3FE8-44EB-9E85-C164E1B00836>.<1>"
), _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, dns}
2022-03-20 19:40:19.959305-0700 globe_artist[62624:775842] [] nw_path_evaluator_create_flow_inner NECP_CLIENT_ACTION_ADD_FLOW A50B5D10-DA1B-457F-9F74-3EAC1A8BA7A6 [1: Operation not permitted]
2022-03-20 19:40:19.959890-0700 globe_artist[62624:775842] [connection] nw_endpoint_flow_setup_channel [C13.1 142.250.217.106:443 in_progress channel-flow (satisfied (Path is satisfied), interface: en0, ipv4, dns)] failed to request add nexus flow
I am trying to configure fail2ban for Freeswithc.
Freeswithc logs also some entries without timestamp, like this:
639eacf2-908f-11ec-96f0-f19b85175ba0 2022-02-18 09:50:06.799659 [DEBUG] sofia.c:7084 Channel sofia/LanSideProfile/27124760025#192.16
8.253.99 entering state [received][100]
639eacf2-908f-11ec-96f0-f19b85175ba0 2022-02-18 09:50:06.799659 [DEBUG] sofia.c:7094 Remote SDP:
639eacf2-908f-11ec-96f0-f19b85175ba0 v=0
639eacf2-908f-11ec-96f0-f19b85175ba0 o=FreeSWITCH 1645143180 1645143181 IN IP4 192.168.253.99
639eacf2-908f-11ec-96f0-f19b85175ba0 s=FreeSWITCH
639eacf2-908f-11ec-96f0-f19b85175ba0 c=IN IP4 192.168.253.99
639eacf2-908f-11ec-96f0-f19b85175ba0 t=0 0
639eacf2-908f-11ec-96f0-f19b85175ba0 m=audio 27426 RTP/AVP 0 18 8 101
639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:0 PCMU/8000
639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:18 G729/8000
639eacf2-908f-11ec-96f0-f19b85175ba0 a=fmtp:18 annexb=no
639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:8 PCMA/8000
639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:101 telephone-event/8000
639eacf2-908f-11ec-96f0-f19b85175ba0 a=fmtp:101 0-15
639eacf2-908f-11ec-96f0-f19b85175ba0 a=silenceSupp:off - - - -
639eacf2-908f-11ec-96f0-f19b85175ba0 a=ptime:20
639eacf2-908f-11ec-96f0-f19b85175ba0
639eacf2-908f-11ec-96f0-f19b85175ba0 2022-02-18 09:50:06.799659 [DEBUG] switch_core_media.c:4449 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
Fail2Ban encounters errors on these:
2022-02-18 11:19:51,678 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 v=0', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:51,679 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 v=0', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:53,681 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 s=FreeSWITCH', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:53,682 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 s=FreeSWITCH', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:55,685 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 c=IN IP4 192.168.253.98', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:55,685 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 c=IN IP4 192.168.253.98', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:57,688 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 t=0 0', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:57,688 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 t=0 0', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:59,692 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:0 PCMU/8000', caught exception: IndexError('string index out of range',)
2022-02-18 11:19:59,693 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=rtpmap:0 PCMU/8000', caught exception: IndexError('string index out of range',)
2022-02-18 11:20:01,698 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=fmtp:101 0-16', caught exception: IndexError('string index out of range',)
2022-02-18 11:20:01,697 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=fmtp:101 0-16', caught exception: IndexError('string index out of range',)
2022-02-18 11:20:03,701 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=ptime:20', caught exception: IndexError('string index out of range',)
2022-02-18 11:20:03,702 fail2ban.filter [16177]: ERROR Failed to process line: u'639eacf2-908f-11ec-96f0-f19b85175ba0 a=ptime:20', caught exception: IndexError('string index out of range',)
This is most likely because the logs don't have a date.
How can I get rid of these errors?
Stackoverflow is a inappropriate place for that issue, next time please use https://serverfault.com/, https://superuser.com/ etc instead.
see https://github.com/fail2ban/fail2ban/issues/3020
Shortly it is fixed in newer versions, but you can workaround it using precise datepattern (like '^\S+ {DATE}), if the message you're searching for contain the timestamp, otherwise...
see https://github.com/fail2ban/fail2ban/pull/2814 (released with 0.11.2/0.10.6), for instance set datepattern = {NONE} would allow to find failures totally without date-time in log messages.
1645143180 is also timestamp (posix unix time since epoch), fail2ban has also a special datepattern for such format (EPOCH or as part of RE {EPOCH}), but you may need also use more precise pattern.
Anyway I don't see any failure in log, thus don't really know which lines may be interesting here.
I have a problem when running a tflite model in my image classification app project( flutter ).
I have converted my CNN model to a tflite model via the code below:
import tensorflow as tf
converter = tf.lite.TFLiteConverter.from_saved_model('/content/drive/MyDrive/CNN_Model/10.07.CNNmodel.100.92')
# converter.optimizations = [tf.lite.Optimize.OPTIMIZE_FOR_LATENCY]
converter.target_spec.supported_ops = [
tf.lite.OpsSet.TFLITE_BUILTINS, # enable TensorFlow Lite ops.
tf.lite.OpsSet.SELECT_TF_OPS # enable TensorFlow ops.
]
tflite_model = converter.convert()
open("converted_model.tflite", "wb").write(tflite_model)
I tested the output of the tflite model and believe that it was converted successful. But when I added to my dart file in my project by the code:
Future loadModel() async {
await Tflite.loadModel(
model: 'assets/tflite/converted_model.tflite',
labels: 'assets/tflite/labels.txt',
);
}
After I ran the main.dart, took a picture to test, I got these errors:
E/AndroidRuntime( 6189): FATAL EXCEPTION: AsyncTask #1
E/AndroidRuntime( 6189): Process: com.hajaj_projects.cat_vs_dog, PID: 6189
E/AndroidRuntime( 6189): java.lang.RuntimeException: An error occurred while executing doInBackground()
E/AndroidRuntime( 6189): at android.os.AsyncTask$4.done(AsyncTask.java:415)
E/AndroidRuntime( 6189): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
E/AndroidRuntime( 6189): at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
E/AndroidRuntime( 6189): at java.util.concurrent.FutureTask.run(FutureTask.java:271)
E/AndroidRuntime( 6189): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
E/AndroidRuntime( 6189): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime( 6189): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime( 6189): at java.lang.Thread.run(Thread.java:923)
E/AndroidRuntime( 6189): Caused by: java.lang.IllegalArgumentException: Internal error: Failed to run on the given Interpreter: Regular TensorFlow ops are not supported by this interpreter. Make sure you apply/link the Flex delegate before inference.
E/AndroidRuntime( 6189): Node number 21 (FlexAddV2) failed to prepare.
E/AndroidRuntime( 6189):
E/AndroidRuntime( 6189): at org.tensorflow.lite.NativeInterpreterWrapper.run(Native Method)
E/AndroidRuntime( 6189): at org.tensorflow.lite.NativeInterpreterWrapper.run(NativeInterpreterWrapper.java:204)
E/AndroidRuntime( 6189): at org.tensorflow.lite.Interpreter.runForMultipleInputsOutputs(Interpreter.java:374)
E/AndroidRuntime( 6189): at org.tensorflow.lite.Interpreter.run(Interpreter.java:332)
E/AndroidRuntime( 6189): at sq.flutter.tflite.TflitePlugin$RunModelOnImage.runTflite(TflitePlugin.java:504)
E/AndroidRuntime( 6189): at sq.flutter.tflite.TflitePlugin$TfliteTask.doInBackground(TflitePlugin.java:471)
E/AndroidRuntime( 6189): at sq.flutter.tflite.TflitePlugin$TfliteTask.doInBackground(TflitePlugin.java:445)
E/AndroidRuntime( 6189): at android.os.AsyncTask$3.call(AsyncTask.java:394)
E/AndroidRuntime( 6189): at java.util.concurrent.FutureTask.run(FutureTask.java:266)
E/AndroidRuntime( 6189): ... 4 more
I/Process ( 6189): Sending signal. PID: 6189 SIG: 9
Lost connection to device.
When I removed the Normalization layer in my CNN model then converted it again, the app runs smoothly. But removing Normalization model decreased lots of my model accuracy.
I'm new to flutter. By any chance, has anybody encountered and resolved this before? Thanks for spending time.
dependencies {
implementation 'org.tensorflow:tensorflow-lite:0.0.0-nightly-SNAPSHOT'
// This dependency adds the necessary TF op support.
implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:0.0.0-nightly-SNAPSHOT'
}
The converted model contains the Select TF ops. This means the model requires the Select TF op dependency.
If the above dependency is too big footprint, please consider creating a custom AAR through the selective build https://www.tensorflow.org/lite/guide/reduce_binary_size
See also https://www.tensorflow.org/lite/guide/ops_select.