Dynamsoft / capture-vision-flutter-samples

Dynamsoft Capture Vision Flutter SDK Samples
https://www.dynamsoft.com/capture-vision/docs/introduction/
Other
3 stars 3 forks source link

i get that error , how to fix it ? #8

Open axroromonov44 opened 1 year ago

axroromonov44 commented 1 year ago

The 'com.dynamsoft/barcode_result_observer' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel. See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.

Dynamsoft-Henry commented 1 year ago

Hi @axroromonov

We fixed this issue in the v1.2.3 branch but it is still not released. For some reason, we can't confirm the release date of the 1.2.3 version currently. I think the change logs of v1.2.3 branch might help you debug this issue.

axroromonov44 commented 1 year ago

and I have a question in terms of performance , the device gets very hot when the camera is opened on iOS , how to normal it ?

Dynamsoft-Henry commented 1 year ago

Hi @axroromonov. That's because of the high occupancy of the CPU. The library will continuously process the video frames after you startScanning. If you don't stopScanning, the device does get hot.

We have an API to control the barcode decoding interval, which might work for you. The API is currently not added to the Flutter platform. Please let me know if you want to try the API. We can add it.

However, I think the best solution is to stopScanning when you don't want to process the video frames.

axroromonov44 commented 1 year ago

thank you for response , I will read the data-matrix through your packages, it may take a long time, for example, I may have to read 100-200 matrices at the same time, at this time my phone will be as hot as the sun, I like this package but it is a bit difficult in terms of performance

axroromonov44 commented 1 year ago

Error (Xcode): Building for 'iOS-simulator', but linking in dylib (/Users/it-admin/Documents/git_lab/agrokomak_mobile/ios/Pods/DynamsoftBarcodeReader/DynamsoftBarcodeReader.framework/DynamsoftBarcodeReader) built for 'iOS'

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

Could not build the application for the simulator. Error launching application on iPad Pro (11-inch) (4th generation).

When I try to run it on iPad, I have such a problem, how can I fix it?

Dynamsoft-Henry commented 1 year ago

Hi @axroromonov

We updated the 1.2.3 branch to support the simulator.

For the iPad issue, we might need some more time.

axroromonov44 commented 1 year ago

this is the same problem in the simulator as well as in the real iPad

Dynamsoft-Henry commented 1 year ago

Hi @axroromonov We tested our changes on the iPad and it is working fine now. We uploaded the changes in the 1.2.3 branch, would you like to have a look at it?

axroromonov44 commented 1 year ago

Yes, I'm a little confused, it worked, but it doesn't work in the simulator

axroromonov44 commented 1 year ago

What are the changes in this version? in 1.2.3

axroromonov44 commented 1 year ago

I still see version 1.2.2

Dynamsoft-Henry commented 1 year ago

If you are still in 1.2.2, please remove your workspace, pods folder and pod lock file (all the files created by pod install).

Run the pod update, and then run pod install.

We added the support of the architectures that are required by simulators.

axroromonov44 commented 1 year ago

pub.dev still has 1.2.2, you can check it

axroromonov44 commented 1 year ago
Screenshot 2023-11-27 at 12 36 39
Dynamsoft-Henry commented 1 year ago

image

We didn't talk about the pub.dev. We updated the changes on GitHub 1.2.3 branch. Currently, the formal release of the 1.2.3 version is still not arranged.

axroromonov44 commented 1 year ago

sorry ,I thought it was on pub.dev . Cool , I will try it . Do you have any communities ?

Dynamsoft-Henry commented 1 year ago

Do you mean a community edition? Sorry, we don't.

axroromonov44 commented 1 year ago

ok got it , good luck !