Redth / ZXing.Net.Mobile

Barcode Scanner for Xamarin.iOS, Xamarin.Android, UWP and Tizen
MIT License
1.07k stars 703 forks source link

Anyone have trouble using Zxing with iPhone 12 and 13 Pro and Pro Max? #1041

Open eekamouse opened 2 years ago

eekamouse commented 2 years ago

We’ve been using the Zxing library for almost two years now with great success across all three platforms (iOS, Android, and UWP). No issues whatsoever, very fast performance, etc…

But we’ve got some reports from customers with the iPhone 12 and 13 Pro and Pro Max phones that their barcodes just won’t scan, and we have verified in the office as well. Same code/build/etc and other phones iOS or otherwise still scan perfectly.

We’ve tried some of the latest beta builds and some other configuration changes with no effect.

Is there some setting on these Pro and Pro Max phones that might need to be changed? Or is this a known issue? I didn’t see any other issue mentioning it, but it’s like clockwork for us.

imsam67 commented 2 years ago

I have this issue on my iPhone Xs. Here's my SO question about it: https://stackoverflow.com/questions/71977226/zxing-scanner-not-scanning-on-ios-in-xamarin-forms-app

imsam67 commented 2 years ago

Just to make sure it's not something in my current app, I started a fresh new Xamarin Forms app. I then added ZXing.NetMobile and ZXing.Net.Mobile.Forms and nothing else. When I test scanning a QR code on my iPhone Xs, it still fails. So, it looks like this particular libary just doesn't work on iOS at all

eekamouse commented 2 years ago

It definitely works on some iOS. I have an iPhone 8 and 11 at my desk that work. Other co-workers with an iPhone 13 have it working. But two others with an iPhone 12 and an iPhone 13 PRO MAX are NOT working.

imsam67 commented 2 years ago

Are you aware of another barcode scanning solution that can be used with Xamarin? Looks like this library is not a good fit for a commercial product. Can't have a hit or miss situation.

eekamouse commented 2 years ago

The only other libraries I've seen all have a license fee. We've honestly not had any issues on any platform until recently with the newer iPhones. We've been banging our heads against the wall with beta version of ZXing and playing around with the various camera settings on those iPhones that aren't working. "Something" changed recently, because those phones were working previously. We're not sure when they started breaking. The barcode scanning code has been in the app unchanged for two years now.

imsam67 commented 2 years ago

I don't think this library is being maintained anymore. I also tried the beta version but got the same results. Actually, your situation is more frustrating because it sounds like an existing app. In my case, it's a new one. I'm now looking into Iron Software's solution and yes, there's a licensing fee but as I mentioned before, I can't afford a hit and miss situation. Here's their link: https://ironsoftware.com/csharp/barcode/

g0dpain commented 2 years ago

We had similiar problems, although our application recognized "some" barcode. I just pulled this and tried to some changes on my own.

After adding a new camera resolution (3840x2160) to the configuration it happened to read the barcodes again (I doubt that this was the problem/solution), there is one more but I don't know the resolution for

AVCaptureSession.PresetHigh

Also it seems that the auto focus doesn't work even if set

if (captureDevice.IsFocusModeSupported(AVCaptureFocusMode.ContinuousAutoFocus))
    captureDevice.FocusMode = AVCaptureFocusMode.ContinuousAutoFocus;
imsam67 commented 2 years ago

We literally gave up on this solution all together. It cannot be used in a commercial app as it lacks reliability and support. Unfortunately commercial scanning solutions are cost prohibitive and come with terrible pricing models. We literally had to go back to the drawing board and replace the scan functionality with another approach. After all, scanning is just a quick and easy way to transfer data from an external source to the app. Of course, this may not be an option in every situation.

g0dpain commented 2 years ago

We literally gave up on this solution all together. It cannot be used in a commercial app as it lacks reliability and support. Unfortunately commercial scanning solutions are cost prohibitive and come with terrible pricing models. We literally had to go back to the drawing board and replace the scan functionality with another approach. After all, scanning is just a quick and easy way to transfer data from an external source to the app. Of course, this may not be an option in every situation.

Unfortunately we can't easily switch since not even a handful of scanner SDKs can read EAN-2 extensions plus it would cost our customer a lot. I will publish a NuGet package on friday, maybe it fixes your and @eekamouse problem too?

eekamouse commented 2 years ago

We literally gave up on this solution all together. It cannot be used in a commercial app as it lacks reliability and support. Unfortunately commercial scanning solutions are cost prohibitive and come with terrible pricing models. We literally had to go back to the drawing board and replace the scan functionality with another approach. After all, scanning is just a quick and easy way to transfer data from an external source to the app. Of course, this may not be an option in every situation.

Unfortunately we can't easily switch since not even a handful of scanner SDKs can read EAN-2 extensions plus it would cost our customer a lot. I will publish a NuGet package on friday, maybe it fixes your and @eekamouse problem too?

Definitely appreciate it!

imsam67 commented 2 years ago

@g0dpain I'd love to see if your solution would work. If it's reliable, I'd love to be able to implement the scan feature again. Thanks for soldiering on!

g0dpain commented 2 years ago

Just added the NuGet packages https://www.nuget.org/packages/g0dpain.ZXing.Net.Mobile/ https://www.nuget.org/packages/g0dpain.ZXing.Net.Mobile.Forms/

Those arent tested for older iPhone models. You can find it under the preview section

g0dpain commented 2 years ago

What I forgot to mention is... MobileBarcodeScanningOptions has now 2 new properties (only for iOS) FocusPointOfInterest (default like @Redth defined: .5f .5f) which sets the focus point, I found it better to let the user decide.. and CameraResolutionPreset (default 640x480p) so set the camera resolution by code. The second one was the problem - the resolution was way to small for the new cameras, maybe the both altogether.

The best and lowest resolution for my iPhone 13 Pro was 1280x720p I implemented the same default since I don't know if there will be problems for older models..

Additionally I implemented some fixes of the open PR like torch on iOS...

mark-sheldon commented 2 years ago

Thank you for all of your efforts. I was able to implement the new packages and add the new properties (FocusPointOfInterest, CameraResolutionPreset, Camera Resolution, etc.) to the options collection, but continue to experience the same issue. It works like a champ on my Pixel 6, but on my iPad the OnScanResult event never fires. I must be doing something wrong. Do you have any idea what it might be?

Tx.

crash.txt

g0dpain commented 2 years ago

@mark-sheldon Try this:

scanPage.OnScanResult += (result) => 
{
   scanPage.IsScanning = false;
   Device.BeginInvokeOnMainThread(async() => 
   {
      await Navigation.PopAsync();
      await DisplayAlert("Scanned Value", result.Text, "OK");
   }
}

Unless you want to scan continuously stop the scanning process, but given your code example it doesn't seem that way. And such things like using the Navigation or something else like changing UI elements that belongs to the main thread, only call it from there with Device.BeginInvokeOnMainThread

mark-sheldon commented 2 years ago

Thank you for your response. I appreciate your assistance.

That is exactly what I have. The iPad blows right past the OnScanResult event, but Pixel 6 performs exactly as expected, hitting the breakpoint as indicated below and returning the DisplayAlert: [image: image.png][image: image.png]

Tx.

On Tue, May 31, 2022 at 3:52 AM Patrick Schulz @.***> wrote:

@mark-sheldon https://github.com/mark-sheldon Try this:

scanPage.OnScanResult += (result) => { scanPage.IsScanning = false; Device.BeginInvokeOnMainThread(async() => { await Navigation.PopAsync(); await DisplayAlert("Scanned Value", result.Text, "OK"); } }

Unless you want to scan continuously stop the scanning process, but given your code example it doesn't seem that way. And such things like using the Navigation or something else like changing UI elements that belongs to the main thread, only call it from there with Device.BeginInvokeOnMainThread

— Reply to this email directly, view it on GitHub https://github.com/Redth/ZXing.Net.Mobile/issues/1041#issuecomment-1141977800, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI44BJTQVJGTY6GOX4DHTP3VMXVOFANCNFSM5VJXPUIQ . You are receiving this because you were mentioned.Message ID: <Redth/ZXing .@.***>

g0dpain commented 2 years ago

@mark-sheldon i sadly cannot see your images Can you try to catch the exception and send the stacktrace? I tested the code with my iPad Pro (2020) 11" and it worked very well...

mark-sheldon commented 2 years ago

It was just a couple of screen caps verifying the app was working on Android. No matter. Native stack trace below. I'll wrap just the event code and see if I can get anything further in a few minutes.

================================================================= Native stacktrace:

0x100de820c - /private/var/containers/Bundle/Application/A542D860-C9D2-4068-9946-5BA12A39744C/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : mono_dump_native_crash_info

0x100ddec5c - /private/var/containers/Bundle/Application/A542D860-C9D2-4068-9946-5BA12A39744C/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : mono_handle_native_crash

0x100debbdc - /private/var/containers/Bundle/Application/A542D860-C9D2-4068-9946-5BA12A39744C/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : mono_sigsegv_signal_handler_debug 0x1f096cc10 - /usr/lib/system/libsystem_platform.dylib :

0x100f74e84 - /private/var/containers/Bundle/Application/A542D860-C9D2-4068-9946-5BA12A39744C/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : xamarin_collapse_struct_name

0x100f81ec8 - /private/var/containers/Bundle/Application/A542D860-C9D2-4068-9946-5BA12A39744C/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : _ZL15param_iter_next14IteratorActionPvPKcmS0PS0

0x100f7abac - /private/var/containers/Bundle/Application/A542D860-C9D2-4068-9946-5BA12A39744C/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : xamarin_invoke_trampoline

0x100f81d8c - /private/var/containers/Bundle/Application/A542D860-C9D2-4068-9946-5BA12A39744C/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arch_trampoline

0x100f82a30 - /private/var/containers/Bundle/Application/A542D860-C9D2-4068-9946-5BA12A39744C/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arm64_common_trampoline

0x19fa2b08c - /System/Library/PrivateFrameworks/AVFCapture.framework/AVFCapture :

0x19fa15590 - /System/Library/PrivateFrameworks/AVFCapture.framework/AVFCapture : 0x19fc5efac - /System/Library/PrivateFrameworks/CMCapture.framework/CMCapture : 0x19fe20210 - /System/Library/PrivateFrameworks/CMCapture.framework/CMCapture : 0x18065da30 - /usr/lib/system/libdispatch.dylib : 0x180660eec - /usr/lib/system/libdispatch.dylib : 0x18067413c - /usr/lib/system/libdispatch.dylib : 0x180665000 - /usr/lib/system/libdispatch.dylib : 0x180665c80 - /usr/lib/system/libdispatch.dylib : 0x180670500 - /usr/lib/system/libdispatch.dylib : 0x1f09740bc - /usr/lib/system/libsystem_pthread.dylib : _pthread_wqthread 0x1f0973e5c - /usr/lib/system/libsystem_pthread.dylib : start_wqthread ================================================================= Basic Fault Address Reporting ================================================================= Memory around native instruction pointer (0x100f74d48):0x100f74d38 a8 83 5e f8 1f 01 00 39 01 00 00 14 a8 03 5f f8 ..^....9.... .._. 0x100f74d48 08 01 40 39 a8 10 00 34 01 00 00 14 a8 03 5f f8 ..@9...4......_ . 0x100f74d58 08 01 c0 39 08 8d 00 71 e8 13 00 f9 08 69 01 f1 ...9...q.....i.. 0x100f74d68 c8 0c 00 54 eb 13 40 f9 0a 00 00 90 4a 21 3f 91 ...***@***.***!?. ================================================================= Managed Stacktrace: ================================================================= ================================================================= The app has been terminated. Mark Sheldon Web Applications Mark Sheldon ASP.Net Full Stack Developer ***@***.*** Mobile: (916)335-4621 http://www.marksheldon.net - CAPCE Services - Internet Database Systems - Learning Management Systems Mark Sheldon Web Applications • 4009 Gunnar Drive • Roseville • CA • 95747 • USA This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet. On Tue, May 31, 2022 at 10:38 AM Patrick Schulz ***@***.***> wrote: > @mark-sheldon > > i sadly cannot see your images > Can you try to catch the exception and send the stacktrace? > I tested the code with my iPad Pro (2020) 11" and it worked very well... > > — > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . > You are receiving this because you were mentioned.Message ID: .***@***.***> >
mark-sheldon commented 2 years ago

This is all there is. The application is being terminated outside of the try/catch block. Final Stack Trace below: 2022-05-31 11:12:26.812 Xamarin.PreBuilt.iOS[405:8279] Xamarin.iOS: Successfully received USB connection from the IDE on port 10000, fd: 7

2022-05-31 11:12:26.814 Xamarin.PreBuilt.iOS[405:8279] Xamarin.iOS: Processing: 'start profiler: no'

2022-05-31 11:12:26.814 Xamarin.PreBuilt.iOS[405:8264] Xamarin.iOS: Profiler not loaded (disabled)

Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/Xamarin.iOS.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/Mono.Security.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS.exe [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/Xamarin.iOS.HotRestart.Application.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/netstandard.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Core.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Xml.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Numerics.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Data.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Transactions.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Data.DataSetExtensions.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Drawing.Common.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.IO.Compression.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.IO.Compression.FileSystem.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.ComponentModel.Composition.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Net.Http.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Runtime.Serialization.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.ServiceModel.Internals.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Web.Services.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Xml.Linq.dll [External] Thread started: #2 Thread started: #3 2022-05-31 11:12:27.313 Xamarin.PreBuilt.iOS[405:8264] Content folder: /var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content

2022-05-31 11:12:27.313 Xamarin.PreBuilt.iOS[405:8264] App path /var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/CapceMobileApp.iOS.exe

2022-05-31 11:12:27.314 Xamarin.PreBuilt.iOS[405:8264] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Platform.iOS' (culture: '')

2022-05-31 11:12:27.314 Xamarin.PreBuilt.iOS[405:8264] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Platform.iOS' (culture: '')

2022-05-31 11:12:27.314 Xamarin.PreBuilt.iOS[405:8264] Xamarin.iOS: Unable to locate assembly 'CapceMobileApp' (culture: '')

2022-05-31 11:12:27.315 Xamarin.PreBuilt.iOS[405:8264] Xamarin.iOS: Unable to locate assembly 'CapceMobileApp' (culture: '')

Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/CapceMobileApp.iOS.exe Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/Xamarin.Forms.Platform.iOS.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/CapceMobileApp.dll 2022-05-31 11:12:27.324 Xamarin.PreBuilt.iOS[405:8264] AppDelegate name: AppDelegate

2022-05-31 11:12:27.325 Xamarin.PreBuilt.iOS[405:8264] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Core' (culture: '') 2022-05-31 11:12:27.325 Xamarin.PreBuilt.iOS[405:8264] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Core' (culture: '')

Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/Xamarin.Forms.Core.dll [External] Thread started: #4 Thread started: #5 Thread started: #6 Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/Xamarin.Forms.Platform.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/Newtonsoft.Json.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/zxing.dll [External] 2022-05-31 11:12:27.385 Xamarin.PreBuilt.iOS[405:8264] Xamarin.iOS: Unable to locate assembly 'SQLitePCLRaw.core' (culture: '')

2022-05-31 11:12:27.385 Xamarin.PreBuilt.iOS[405:8264] Xamarin.iOS: Unable to locate assembly 'SQLitePCLRaw.core' (culture: '')

Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/SQLitePCLRaw.batteries_v2.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/SQLitePCLRaw.core.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/ZXingNetMobile.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/System.Buffers.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/System.Runtime.CompilerServices.Unsafe.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Runtime.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/ZXing.Net.Mobile.Forms.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/SQLitePCLRaw.provider.dynamic_cdecl.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.Memory.dll [External] 2022-05-31 11:12:27.411 Xamarin.PreBuilt.iOS[405:8264] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Xaml' (culture: '')

2022-05-31 11:12:27.412 Xamarin.PreBuilt.iOS[405:8264] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Xaml' (culture: '')

Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/Xamarin.Forms.Xaml.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/SQLite-net.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/Xamarin.Essentials.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/System.Memory.dll [External] Loaded assembly: /private/var/mobile/Containers/Data/Application/900E280F-20E3-4598-B5F4-B93167B988DF/Documents/CapceMobileApp.iOS.content/SQLitePCLRaw.nativelibrary.dll [External] Thread started: #7 Thread started: #8 Thread started: #9 Loaded assembly: Anonymously Hosted DynamicMethods Assembly [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.ComponentModel.Annotations.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/System.ComponentModel.DataAnnotations.dll [External] Resolved pending breakpoint at 'HomePage.xaml.cs:123,1' to void CapceMobileApp.Views.HomePage.d__3.MoveNext () [0x001ba]. 2022-05-31 11:13:45.051 Xamarin.PreBuilt.iOS[405:8264] ZXingScannerView.Setup() took 0.002 ms. 2022-05-31 11:13:45.051 Xamarin.PreBuilt.iOS[405:8264] StartScanning

Thread started: #10 Thread started: #11

================================================================= Native Crash Reporting

Got a segv while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.

================================================================= Native stacktrace:

0x104db820c - /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : mono_dump_native_crash_info

0x104daec5c - /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : mono_handle_native_crash

0x104dbbbdc - /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : mono_sigsegv_signal_handler_debug

0x1f0f0cc10 - /usr/lib/system/libsystem_platform.dylib :

0x104f44e84 - /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : xamarin_collapse_struct_name

0x104f51ec8 - /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : _ZL15param_iter_next14IteratorActionPvPKcmS0PS0

0x104f4abac - /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : xamarin_invoke_trampoline

0x104f51d8c - /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arch_trampoline 0x104f52a30 - /private/var/containers/Bundle/Application/56CF4BC4-5E67-432A-A64B-CD05D8F07F9E/ CapceMobileApp.iOS.app/Xamarin.PreBuilt.iOS : xamarin_arm64_common_trampoline

0x19ffcb08c - /System/Library/PrivateFrameworks/AVFCapture.framework/AVFCapture :

0x19ffb5590 - /System/Library/PrivateFrameworks/AVFCapture.framework/AVFCapture : 0x1a01fefac - /System/Library/PrivateFrameworks/CMCapture.framework/CMCapture : 0x1a03c0210 - /System/Library/PrivateFrameworks/CMCapture.framework/CMCapture : 0x180bfda30 - /usr/lib/system/libdispatch.dylib : 0x180c00eec - /usr/lib/system/libdispatch.dylib : 0x180c1413c - /usr/lib/system/libdispatch.dylib : 0x180c05000 - /usr/lib/system/libdispatch.dylib : 0x180c05c80 - /usr/lib/system/libdispatch.dylib : 0x180c10500 - /usr/lib/system/libdispatch.dylib : 0x1f0f140bc - /usr/lib/system/libsystem_pthread.dylib : _pthread_wqthread 0x1f0f13e5c - /usr/lib/system/libsystem_pthread.dylib : start_wqthread ================================================================= Basic Fault Address Reporting ================================================================= Memory around native instruction pointer (0x104f44d48):0x104f44d38 a8 83 5e f8 1f 01 00 39 01 00 00 14 a8 03 5f f8 ..^....9. ....._. 0x104f44d48 08 01 40 39 a8 10 00 34 01 00 00 14 a8 03 5f f8 ..@9...4......_. 0x104f44d58 08 01 c0 39 08 8d 00 71 e8 13 00 f9 08 69 01 f1 ...9...q.....i.. 0x104f44d68 c8 0c 00 54 eb 13 40 f9 0a 00 00 90 4a 21 3f 91 ...***@***.*** ....J!?. ================================================================= Managed Stacktrace: ================================================================= ================================================================= 2022-05-31 11:14:11.816 Xamarin.PreBuilt.iOS[405:8279] Xamarin.iOS: Processing: 'exit process' 2022-05-31 11:14:11.816 Xamarin.PreBuilt.iOS[405:8279] Xamarin.iOS: The IDE requested an exit, will exit immediately. The app has been terminated. Mark Sheldon Web Applications Mark Sheldon ASP.Net Full Stack Developer ***@***.*** Mobile: (916)335-4621 http://www.marksheldon.net - CAPCE Services - Internet Database Systems - Learning Management Systems Mark Sheldon Web Applications • 4009 Gunnar Drive • Roseville • CA • 95747 • USA This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet. On Tue, May 31, 2022 at 10:38 AM Patrick Schulz ***@***.***> wrote: > @mark-sheldon i sadly cannot see your > images > Can you try to catch the exception and send the stacktrace? > I tested the code with my iPad Pro (2020) 11" and it worked very well... > > — > Reply to this email directly, view it on GitHub > , > or unsubscribe > > . > You are receiving this because you were mentioned.Message ID: .***@***.***> >
g0dpain commented 2 years ago

@mark-sheldon I cannot really see something "interesting" or helpful in those iOS native stacktraces, kinda new to it But as far I can gather from that information it really does seem to be this libs problem or Apples problem (shutdown after StartScanning)

I happened to get thrown from the application without scanPage.IsScanning = false 1/4 times assuming some race condition, but I don't think that's the problem here. As I told you my iPad Pro (2020) with iOS 15.5 succeeded.

What CameraResolutionPreset do you use? I haven't tested much higher resolutions with devices (I literally don't have such test devices) which can't take a higher photo/video resolution. -> But via iPhone Simulator the app didn't crash on one of the old models such as iPhone 8 with a much higher value

If you are indeed in need of this, after all free, library and have some sparetime for it I really suggest you to debug it yourself as I have no possession of an iPad 9th Gen. If you fork my repo/fork we can discuss there and/or if you find the solution to the problem yourself you just can create a PR and publish it for everyone ourselves..

g0dpain commented 2 years ago

@mark-sheldon I am sorry I can not provide a proper solution myself, but I will look for a test device such as yours. And since Xamarin will be supported until late 2023 I kinda want to port this library anyways if @Redth doesn't have the time for it,

mark-sheldon commented 2 years ago

I have extracted the device log and attached it here if you think that might help.

m.

On Tue, May 31, 2022 at 10:38 AM Patrick Schulz @.***> wrote:

@mark-sheldon https://mailtrack.io/trace/link/7d8e727254573b143fc61797f41d290acf221609?url=https%3A%2F%2Fgithub.com%2Fmark-sheldon&userId=2925135&signature=09b0d949f8a9d8de i sadly cannot see your images Can you try to catch the exception and send the stacktrace? I tested the code with my iPad Pro (2020) 11" and it worked very well...

— Reply to this email directly, view it on GitHub https://mailtrack.io/trace/link/6ddfa828c5744af7cbe1e960568c809819d3e7ba?url=https%3A%2F%2Fgithub.com%2FRedth%2FZXing.Net.Mobile%2Fissues%2F1041%23issuecomment-1142424356&userId=2925135&signature=52b9f070f66ab397, or unsubscribe https://mailtrack.io/trace/link/7fe11144b71e7fe16e2a5e29c4dfca41201b7974?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAI44BJUKJKHGGFPSEPTAHJLVMZFDBANCNFSM5VJXPUIQ&userId=2925135&signature=48bcda0facdb93d8 . You are receiving this because you were mentioned.Message ID: <Redth/ZXing .@.***>

Time Device Name Type PID Tag Message May 31 12:48:15 Marks-iPad Error 136 applecamerad Failed to send the com.apple.applecamerad.FlickerDetection event into the diagnostics system 00000000 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH11ANEInterface) ANE#0 IOReturn H11ANEIn::ANE_PowerOff_gated(void ) May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH11ANEInterface) ANE0: virtual IOReturn AneIspIPCEndPoints::enableFWIPCEP_gated(AneIspEndpointIndex, bool) :H11ANEIn::Send CSNE_CMD_UNLOAD_AFPP FD networks with phy:0x1ee0000, size:0x000000000093a600 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH11ANEInterface) ANE0: virtual IOReturn AneIspIPCEndPoints::enableFWIPCEP_gated(AneIspEndpointIndex, bool) :H11ANEIn:: send CSNE_CMD_IPC_ENDPOINT_UNSET2 to FW! May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH11ANEInterface) ANE0: IOReturn H11ANEIn::powerStateDidChangeTo_gated(IOPMPowerFlags, unsigned long, IOService ) :H11ANEIn::powerStateDidChangeTo_gated peer down, diable IPC EP May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::setPowerStateGated (turn off) - change fPowerEvent from 2 to None May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ForceISPDPEIdle - control: 0xd01 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_FlushInactiveDARTMappings_gated - result: 0x00000000 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ForceISPDPEIdle - control: 0x101 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_Suspend - Statistics: NonPersistentMemory:122142720, PersistentMemory:36353788, DeletionPendingMemory:0, NonPersistentMemoryMax:261079040, PersistentMemoryMax:36353788 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::MotionDataDisable - MotionStateSet(false) May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_Suspend - Statistics: Starts:2, Resumes:2, SuspendSuccesses:4, SuspendFails:0, ResumeFails:0, DeInits:1 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_Suspend - Succeeded! (didDeInit=No!) May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::drainIOProcessorChannelMessageQueues - Received 1 messages on channel IO after Suspend is completed May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: free heap size=7640706 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: WRN: ./h10isp/common/misc/H12/CIspRTResourceManagerH12.cpp, 313: Invalid channelId 5 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: ch 0 APS/GCOL not available !!!! May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] Destroy Session May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CmdTurnOffDevicePower: ch 5 ctrlWord 0x0 TS: 56.484188 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CmdTurnOffDevicePower: ch 4 ctrlWord 0x0 TS: 56.484188 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CmdTurnOffDevicePower: ch 3 ctrlWord 0x0 TS: 56.484184 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CmdTurnOffDevicePower: TS: 56.484154 Disable FCAM FRONT_SHUTDOWN=0 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CmdTurnOffDevicePower: ch 2 ctrlWord 0x1 TS: 56.481178 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CmdTurnOffDevicePower: TS: 56.481148 Disable WIDE_AF_SHUTDOWN=0 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CmdTurnOffDevicePower: ch 1 ctrlWord 0x0 TS: 56.481178 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CmdTurnOffDevicePower: TS: 56.475147 Disable RCAM REAR_SHUTDOWN=0 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CImageCaptureH6::CmdProcessor L:64, Cmd: 0x1 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CmdTurnOffDevicePower: ch 0 ctrlWord 0x5 TS: 56.469528 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CImageCaptureH6::CmdProcessor L:64, Cmd: 0xd6 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CImageCaptureH6::CmdProcessor L:64, Cmd: 0x1 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: CImageCaptureH6::CmdProcessor L:64, Cmd: 0xd6 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] CMD = 0x0021 [CISP_CMD_SUSPEND] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_Suspend - 0x00000000 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_Suspend - Firmware timeout: 0, res = 0x0, isISPCPUNotInWFI: 1 indicate dirty shutdown to DART driver May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_FlushInactiveDARTMappings_gated - result: 0x00000000 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_Suspend - ISPCPU not in WFI after CISP_CMD_POWER_DOWN May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_Suspend - retries=20 ASCWRAP_IDLE_STATUS = 0x0 May 31 12:48:15 Marks-iPad Notice 64 backboardd brightness change:0.428325 reason:BrightnessSystemDidChange options: May 31 12:48:15 Marks-iPad Notice 64 backboardd(libEDR) ScheduleSetBrightnessIn_block_invoke: enter WaitUntil late 0.024292 millisecond (377 / 377) May 31 12:48:15 Marks-iPad Notice 64 backboardd brightness change:0.428168 reason:BrightnessSystemDidChange options: May 31 12:48:15 Marks-iPad Notice 64 backboardd(libEDR) ScheduleSetBrightnessIn_block_invoke: enter WaitUntil late 0.076541 millisecond (376 / 376) May 31 12:48:15 Marks-iPad Notice 108 apsd(CommonUtilities) Releasing power assertion {identifier: APSCourier(tcpStream:dataReceived:)-NonCellular} May 31 12:48:15 Marks-iPad Notice 99 dasd bgRefresh-com.apple.store.background.refresh:21E033:[ May 31 12:48:15 Marks-iPad Notice 99 dasd Evaluating 128 activities based on triggers May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_Suspend - CISP_CMD_SUSPEND command completed: res=0x00000000 May 31 12:48:15 Marks-iPad Notice 99 dasd Attempting to suspend based on triggers: ( "com.apple.duetactivityscheduler.nwstatus.wifi" ) May 31 12:48:15 Marks-iPad Notice 64 backboardd brightness change:0.428011 reason:BrightnessSystemDidChange options: May 31 12:48:15 Marks-iPad Notice 64 backboardd(libEDR) ScheduleSetBrightnessIn_block_invoke: enter WaitUntil late 0.097917 millisecond (375 / 375) May 31 12:48:15 Marks-iPad Notice 136 applecamerad May 31 12:48:15 Marks-iPad Notice 136 applecamerad Failed to send the com.apple.applecamerad.S2RPowerStatus event into the diagnostics system 00000000 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] CMD = 0x300b mappedWriteNogtifierRegiterAddr 0xfe000000 value 1 May 31 12:48:15 Marks-iPad Notice 136 applecamerad May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] CMD = 0x300b writeRingBuffer Addr 0x1008c000 len 0x4000 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] CMD = 0x300b readRingBuffer Addr 0x10084000 len 0x4000 May 31 12:48:15 Marks-iPad Notice 136 applecamerad May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] CMD = 0x300b [CISP_CMD_IPC_ENDPOINT_UNSET] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: IPC: Endpoint Config Unset ** May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) IspAneIPCEndPoints::enableFWIPCEP_gated - send CISP_CMD_IPC_ENDPOINT_UNSET to FW, self state: 4 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_Suspend - disable self IPC EP May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_Suspend - disable timer May 31 12:48:15 Marks-iPad Notice 136 applecamerad May 31 12:48:15 Marks-iPad Notice 136 applecamerad May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP: 56.417957] CH = 0 CMD = 0x0104 [CISP_CMD_CH_BUFFER_RETURN] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] Channel 0 Stop takes total 56415.5781ms May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP: 56.417927] CH = 0x0 CMD = 0x0101 [CISP_CMD_CH_STOP] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP: 56.417892] CH = 1 CMD = 0x0104 [CISP_CMD_CH_BUFFER_RETURN] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP: 56.417854] CH = 0x1 CMD = 0x0101 [CISP_CMD_CH_STOP] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] Channel 1 Stop takes total 56415.5781ms May 31 12:48:15 Marks-iPad Notice 35 mediaserverd(CMCapture) <<<< BWFigCaptureDevice >>>> -[BWFigCaptureDevice dealloc]: BWFigCaptureDevice (0x13b672ce0) with FigCaptureDeviceRef (0x13b2486c0) has been deallocated May 31 12:48:15 Marks-iPad Notice 35 mediaserverd(H10ISP.mediacapture) Destroying remote service object May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamInUserClient::free - Freeing UserClient for process: applecamerad (pid 136) May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_PowerOffCamera_gated (fPowerEvent=2, fOutstandingPowerUpRequests=0) May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP: 56.417599] CH = 2 CMD = 0x0104 [CISP_CMD_CH_BUFFER_RETURN] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] Channel 2 Stop takes total 56415.5781ms May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP: 56.417542] CH = 3 CMD = 0x0104 [CISP_CMD_CH_BUFFER_RETURN] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP: 56.417568] CH = 0x2 CMD = 0x0101 [CISP_CMD_CH_STOP] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] Channel 3 Stop takes total 56415.5781ms May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP: 56.417515] CH = 0x3 CMD = 0x0101 [CISP_CMD_CH_STOP] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP: 56.417477] CH = 4 CMD = 0x0104 [CISP_CMD_CH_BUFFER_RETURN] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] Channel 4 Stop takes total 56415.5820ms May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP: 56.417450] CH = 0x4 CMD = 0x0101 [CISP_CMD_CH_STOP] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamInUserClient::free - Freeing UserClient for process: mediaserverd (pid 35) May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP: 56.417419] CH = 5 CMD = 0x0104 [CISP_CMD_CH_BUFFER_RETURN] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] Channel 5 Stop takes total 56415.5820ms May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP: 56.417385] CH = 0x5 CMD = 0x0101 [CISP_CMD_CH_STOP] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) ISPCPU: [ISP] CMD = 0x0013 [CISP_CMD_RPC_ENABLE] [0x0] May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_Suspend May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::power_off_hardware May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::setPowerStateGated (turn off) - change fPowerEvent from 2 to PowerOffPending May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::setPowerStateGated - 0 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH11ANEInterface) ANE0: IOReturn H11ANEIn::powerStateWillChangeTo_gated(IOPMPowerFlags, unsigned long, IOService *) :H11ANEIn:: IPC peer ISP will power down May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_PowerOffCamera_gated (fPowerEvent=2, fOutstandingPowerUpRequests=0) May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_PowerOffCamera_gated - set fPowerEvent from 0 to kH10ISPPowerEventType_PowerOffPending, fOutstandingPowerUpRequests = 0 isPowered: 1 May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_PowerOffCamera_gated - requesting ISP power down May 31 12:48:15 Marks-iPad Notice 0 kernel(AppleH10CameraInterface) AppleH10CamIn::ISP_PowerOffCamera_gated (fPowerEvent=0, fOutstandingPowerUpRequests=0) May 31 12:48:15 Marks-iPad Notice 35 mediaserverd(CMCapture) <<<< BWFigCaptureDevice >>>> -[BWFigCaptureDevice invalidate]: Invalidating BWFigCaptureDevice (0x13b672ce0) with FigCaptureDevice (0x13b2486c0) May 31 12:48:15 Marks-iPad Notice 35 mediaserverd(CMCapture) <<<< BWFigCaptureDeviceVendor >>>> -[BWFigCaptureDeviceVendor _invalidateAndReleaseDevice]: Releasing BWFigCaptureDevice (0x13b672ce0) May 31 12:48:15 Marks-iPad Notice 64 backboardd brightness change:0.427853 reason:BrightnessSystemDidChange options: May 31 12:48:15 Marks-iPad Notice 64 backboardd(libEDR) ScheduleSetBrightnessIn_block_invoke: enter WaitUntil late 0.022667 millisecond (374 / 374) May 31 12:48:15 Marks-iPad Notice 52 wifid(WiFiPolicy) WiFiDeviceProcessLqmTxStatsEvent: LQM-TX: Success:2(100.0%) Failure:0(0.0%) Retries:0(0.0%) NoACK:0(0.0%) Drops:0(0.0%) NoBuff:0(0.0%) NoRes:0(0.0%) ChipErr:0(0.0%) Expired:0(0.0%) ForcedExpiry:0(0.0%) Free:0(0.0%) May 31 12:48:15 Marks-iPad Notice 0 kernel(IO80211Family) LQM-WiFi:TX(FF:FF:FF:FF:FF:FF) AC VO<0 0 0 0 0 0 0 0 0 0 0> (5001ms) May 31 12:48:15 Marks-iPad Notice 0 kernel(IO80211Family) LQM-WiFi:L3 Control VO TX(A8:70:5D:D4:10:72) Success=0 NoACK=0 Expired=0 OtherErr=0 May 31 12:48:15 Marks-iPad Notice 0 kernel(IO80211Family) postMessageInternal:isPipeOpened:1, msg 169, dataLen 136 May 31 12:48:15 Marks-iPad Notice 0 kernel(IO80211Family) LQM-WiFi:TX(A8:70:5D:D4:10:72) AC VO<0 0 0 0 0 0 0 0 0 0 0> (5001ms) May 31 12:48:15 Marks-iPad Notice 0 kernel(IO80211Family) LQM-WiFi:TX(A8:70:5D:D4:10:72) AC VI<0 0 0 0 0 0 0 0 0 0 0> (5001ms) May 31 12:48:15 Marks-iPad Notice 0 kernel(IO80211Family) LQM-WiFi:TX(A8:70:5D:D4:10:72) AC BK<0 0 0 0 0 0 0 0 0 0 0> (5001ms) May 31 12:48:15 Marks-iPad Notice 0 kernel(IO80211Family) LQM-WiFi:TX(A8:70:5D:D4:10:72) AC BE<2 0 0 0 0 0 0 0 0 0 0> (5001ms) May 31 12:48:15 Marks-iPad Notice 64 backboardd brightness change:0.427696 reason:BrightnessSystemDidChange options: May 31 12:48:15 Marks-iPad Notice 64 backboardd(libEDR) ScheduleSetBrightnessIn_block_invoke: enter WaitUntil late 0.079542 millisecond (373 / 373) May 31 12:48:14 Marks-iPad Notice 64 backboardd(libEDR) ScheduleSetBrightnessIn_block_invoke: enter WaitUntil late 0.083792 millisecond (372 / 372) May 31 12:48:14 Marks-iPad Notice 64 backboardd brightness change:0.427539 reason:BrightnessSystemDidChange options: May 31 12:48:14 Marks-iPad Notice 156 searchpartyd Beacon <mask.hash: 'KqjYfHrAvP5uBxnhHZ7jdg=='> is not connected. Last seen: 0001-01-01 00:00:00 +0000. May 31 12:48:14 Marks-iPad Notice 156 searchpartyd Beacon <mask.hash: 'cr/WhFv3JixmBPZOfkV41g=='> is not connected. Last seen: 2022-05-31 18:00:54 +0000. May 31 12:48:14 Marks-iPad Notice 64 backboardd brightness change:0.427382 reason:BrightnessSystemDidChange options: May 31 12:48:14 Marks-iPad Notice 64 backboardd(libEDR) ScheduleSetBrightnessIn_block_invoke: enter WaitUntil late 0.069084 millisecond (371 / 371) May 31 12:48:14 Marks-iPad Notice 64 backboardd brightness change:0.427225 reason:BrightnessSystemDidChange options: May 31 12:48:14 Marks-iPad Notice 64 backboardd(libEDR) ScheduleSetBrightnessIn_block_invoke: enter WaitUntil late 0.015875 millisecond (370 / 370) May 31 12:48:14 Marks-iPad Notice 64 backboardd brightness change:0.427068 reason:BrightnessSystemDidChange options: May 31 12:48:14 Marks-iPad Notice 64 backboardd(libEDR) ScheduleSetBrightnessIn_block_invoke: enter WaitUntil late 0.022417 millisecond (369 / 369) May 31 12:48:14 Marks-iPad Notice 0 kernel necp_client_parse_parameters: NECP_CLIENT_TRACKER_LOG <pid 582>: Parsing tracker flags - known-tracker 10000 non-app-initiated 0 silent 0 approved-app-domain 0 May 31 12:48:14 Marks-iPad Notice 65 sharingd(CoreUtils) NearbyInfo sending activity level, original: 0xb encrypted:0xd May 31 12:48:14 Marks-iPad Notice 64 backboardd(CoreBrightness) begin ramping L: 104.74 -> L: 107.72 Brightness: 0.743885 -> 0.748969 t: 5.000000 rate: 0.60 nits/s 10.00hz May 31 12:48:14 Marks-iPad Notice 64 backboardd brightness change:0.426912 reason:BrightnessSystemDidChange options: May 31 12:48:14 Marks-iPad Notice 64 backboardd(CoreBrightness) [BRT update: ALS]: Begin ramp: L_target=107.7193 Lmax=430.834290 Lmin=1.722382 timeConstant=5.0000 _Esensor_trusted=118.0000 May 31 12:48:14 Marks-iPad Notice 64 backboardd(CoreBrightness) fadePeriod=5.000000 startTime=675719294.539553 display->fade.timer=0x10500b030 May 31 12:48:14 Marks-iPad Notice 0 kernel(apfs) tx_flush:1170: disk0s1 xid 103291 tx stats: # 1460 finish 1469 enter 91 wait 45 3092us close 54us flush 3048us May 31 12:48:14 Marks-iPad Notice 40 configd(IPConfiguration) AUTOMATIC-V6 en0: publish success { IPv6, DNS, DHCPv6 } [PLATDiscovery] May 31 12:48:14 Marks-iPad Notice 0 kernel(IO80211Family) postMessageInternal:isPipeOpened:1, msg 39, dataLen 180 May 31 12:48:14 Marks-iPad Notice 68 locationd {"msg":"CLWifi1SystemLogic::apply", "event":"elapsed", "begin_mach":156420820550, "end_mach":156420822612, "elapsed_s":"0.000085917", "event":"Client::UpdateTimer", "now_s":"675719294.183598995"} May 31 12:48:14 Marks-iPad Notice 68 locationd os_transaction releasing: () May 31 12:48:14 Marks-iPad Notice 68 locationd @WifiLogic, handleInput, Client::UpdateTimer May 31 12:48:14 Marks-iPad Notice 68 locationd os_transaction created: () May 31 12:48:14 Marks-iPad Notice 108 apsd dumpLogsForInconsistencyIfNecessary - lastBecameInconsistentTime 0.000000 sBecameInconsistentTime 0.000000 logDumpReason (null) May 31 12:48:14 Marks-iPad Notice 108 apsd(IOKit) powerd returned assertion id 0x8108 for async id May 31 12:48:13 Marks-iPad Notice 68 locationd {"msg":"CLWifi1SystemLogic::apply", "event":"elapsed", "begin_mach":156415708064, "end_mach":156415711367, "elapsed_s":"0.000137625", "event":"System::CoarseMotion", "now_s":"675719293.970574975"} May 31 12:48:13 Marks-iPad Notice 68 locationd os_transaction releasing: () May 31 12:48:13 Marks-iPad Notice 68 locationd {"msg":"updateOperationalModeIfNecessary", "fCurrentTimeOffsetThreshold":"45.000000", "subHarvester":"Avenger"} May 31 12:48:13 Marks-iPad Notice 68 locationd {"msg":"updated avenger harvester motion activity state", "fLastMotionActivity":3, "nextMotionActivity":2, "subHarvester":"Avenger"} May 31 12:48:13 Marks-iPad Notice 68 locationd {"msg":"got motion state notification", "subHarvester":"Avenger"} May 31 12:48:13 Marks-iPad Notice 68 locationd WifiTimer, nextscan, 15, haveLoc, 1, codepath, Static May 31 12:48:13 Marks-iPad Notice 68 locationd @WifiLogic, handleInput, System::CoarseMotion May 31 12:48:13 Marks-iPad Notice 68 locationd os_transaction created: () May 31 12:48:13 Marks-iPad Error 0 kernel(AppleSMC) Failed to read key 1414543460 from SMC with error code 89 May 31 12:48:13 Marks-iPad Notice 0 kernel necp_client_parse_parameters: NECP_CLIENT_TRACKER_LOG <pid 582>: Parsing tracker flags - known-tracker 10000 non-app-initiated 0 silent 0 approved-app-domain 0 May 31 12:48:13 Marks-iPad Error 0 kernel(AppleSMC) Failed to read key 1414543204 from SMC with error code 89 May 31 12:48:13 Marks-iPad Error 0 kernel(AppleSMC) Failed to read key 1414542948 from SMC with error code 89 May 31 12:48:13 Marks-iPad Notice 108 apsd : Stream processing: complete no, invalid no, length parsed 0, parameters (null) May 31 12:48:13 Marks-iPad Notice 108 apsd updating wifi keepAliveInterval 1207.913183 growAttempts 3 May 31 12:48:13 Marks-iPad Notice 108 apsd : Outstanding data received: (length 2) onInterface: NonCellular. Connected on 1 interfaces. May 31 12:48:13 Marks-iPad Notice 108 apsd : Received successful keep-alive ack on interface NonCellular: May 31 12:48:13 Marks-iPad Notice 108 apsd : Stream processing: complete yes, invalid no, length parsed 2, parameters May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) 0x102f485b0 (voided) May 31 12:48:13 Marks-iPad Notice 108 apsd(CommonUtilities) Created power assertion {identifier: APSCourier(tcpStream:dataReceived:)-NonCellular} May 31 12:48:13 Marks-iPad Notice 99 dasd Trigger: is now [] May 31 12:48:13 Marks-iPad Notice 99 dasd Blue List notification called () May 31 12:48:13 Marks-iPad Notice 164 itunescloudd(iTunesCloud) Received link quality change on interface NOI: v:0 type:WiFi, isAny:yes, isBuiltin:no, loi:-1, flags:0. linkQuality=50 May 31 12:48:13 Marks-iPad Notice 60 contextstored(KnowledgeMonitor) Network quality for is 50 May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) NOICLIENT <0x102f2f160:52> observed linkQuality of object NOI: v:0 type:WiFi, isAny:no, isBuiltin:yes, loi:0, flags:0, partial update to pid: 52, change: { May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) linkQuality changed to 50 as loaded LQM changed on interface type 3 noi: NOI: v:0 type:WiFi, isAny:no, isBuiltin:yes, loi:0, flags:0 May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) linkQuality changed to 50 as loaded LQM changed on interface type 3 noi: NOI: v:0 type:WiFi, isAny:yes, isBuiltin:no, loi:-1, flags:1 May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) noi: NOI: v:0 type:WiFi, isAny:yes, isBuiltin:no, loi:-1, flags:0, event: linkQuality, oldLoadedLqm: 100, rawLoadedLqm: 50, newLoadedLqm: 50, not posting May 31 12:48:13 Marks-iPad Notice 45 atc(iTunesCloud) Received link quality change on interface NOI: v:0 type:WiFi, isAny:yes, isBuiltin:no, loi:-1, flags:0. linkQuality=50 May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) 0x102c3eb20 (voided) May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) NOICLIENT <0x102f279c0:45> observed linkQuality of object NOI: v:0 type:WiFi, isAny:yes, isBuiltin:no, loi:-1, flags:0, partial update to pid: 45, change: { May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) 0x102f47380 (voided) May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) NOICLIENT <0x102f28db0:60> observed linkQuality of object NOI: v:0 type:WiFi, isAny:yes, isBuiltin:no, loi:-1, flags:0, partial update to pid: 60, change: { May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) 0x102e529a0 (voided) May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) NOICLIENT <0x102f1c900:161> observed linkQuality of object NOI: v:0 type:WiFi, isAny:yes, isBuiltin:no, loi:-1, flags:0, partial update to pid: 161, change: { May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) 0x102d4e170 (voided) May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) NOICLIENT <0x102f29a40:164> observed linkQuality of object NOI: v:0 type:WiFi, isAny:yes, isBuiltin:no, loi:-1, flags:0, partial update to pid: 164, change: { May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) 0x102d4e170 (voided) May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) NOICLIENT <0x102f2eb70:197> observed linkQuality of object NOI: v:0 type:WiFi, isAny:yes, isBuiltin:no, loi:-1, flags:0, partial update to pid: 197, change: { May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) Enabling power monitoring for <PCSimpleTimer: 0x100b97760> - 2 timers May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) Enabling power monitoring for <PCSimpleTimer: 0x100b49120> - 1 timers May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) NOICLIENT <0x102f0a160:215> observed linkQuality of object NOI: v:0 type:WiFi, isAny:yes, isBuiltin:no, loi:-1, flags:0, partial update to pid: 215, change: { May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) 0x102e529a0 (voided) May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) 0x102f47160 (voided) May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) interfaceManagerInternetReachabilityChanged: isRunning YES delayTimer (null) wasReachable NO isReachable YES currentStyleIsPush? NO May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) NOICLIENT <0x102d3c8a0:147> observed linkQuality of object NOI: v:0 type:WiFi, isAny:yes, isBuiltin:no, loi:-1, flags:0, partial update to pid: 147, change: { May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) <PCSimpleTimer: 0x100b97760> created preventSleepTimer <PCDispatchTimer: 0x100b5fcb0> and fireTimer <PCDispatchTimer: 0x100b2da80> on queue May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) PCSimpleTimer - enabling power monitoring May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) linkQuality changed to 50 as loaded LQM changed on interface type 3 noi: NOI: v:0 type:WiFi, isAny:yes, isBuiltin:no, loi:-1, flags:0 May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) Started simple timer <PCSimpleTimer: 0x100b97760> with fire date [2022-05-31 12:49:13 -0700] May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) <PCSimpleTimer: 0x100b49120> created preventSleepTimer <PCDispatchTimer: 0x100d14130> and fireTimer <PCDispatchTimer: 0x100d04b10> on queue May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) 0x102d4e170 (voided) May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) NOICLIENT <0x102f2f160:52> observed linkQuality of object NOI: v:0 type:WiFi, isAny:no, isBuiltin:yes, loi:1, flags:0, partial update to pid: 52, change: { May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) Started simple timer <PCSimpleTimer: 0x100b49120> with fire date [2022-05-31 12:49:13 -0700] May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) <PCPersistentInterfaceManager: 0x100b44cd0> _updateWWANInterfaceUpState wasUp NO isUp NO wantsInterfaceAssertion NO avoidWWANOnCall NO May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) linkQuality changed to 50 as loaded LQM changed on interface type 3 noi: NOI: v:0 type:WiFi, isAny:no, isBuiltin:yes, loi:1, flags:0 May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) linkQuality updated, interface type = 3, delay = 0.552734 ms, (old/new) = (100/50) May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) Persistent interface link quality changed, firing interval timer: NO May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) pendedLqm = 0, primaryKey = May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) Starting lowLqm timer for May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) Populating a new LQM journal record for primaryKey = () May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) Appending a new journal record in memory, record = , pending records = 488 bytes May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) Incrementing loaded LQM transitions = 3.000000, interface = en0, primaryKey = , loaded LQM(old/new) = (100/50), LOI (extended) = 260 May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) Realtime LQM changed: new-lqm 50 old-lqm 100 data-stalls 2.00 known-good 1 hot-spot 0 interface-type 3 May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) _adjustPollTimerIfNecessary rightStyle YES isRunning YES isInReconnectMode NO intervalTimer (null) firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) Realtime LQM changed: new-lqm 50 old-lqm 100 data-stalls 2.00 known-good 1 hot-spot 0 interface-type 3 May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) Computing loaded LQM upon DS notification on interface type 3, LQM(old/new) = (100/50) May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) realTimeLqm was last updated on interface type 3 at 1654026493062.179199 May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) Received SCDynamicStore notification for LQM key, en0 has LQM = 50 type = 3 May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) <PCNonCellularUsabilityMonitor: 0x100e18dd0> NonCellularUsabilityMonitor - LQ changed from -2 to 50 May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x100e18cc0> Interface Manager: NonCellular(en0) LinkQuality changed from good to poor (50) May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(NetworkExtension) Current file handles for com.apple.networkserviceproxy.file-descriptor-maintainer: ( May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) SCDynamicStore retrieved value: { May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) SCDynamicStore key: State:/Network/Interface/en0/LinkQuality, interfaces: { May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x100e18cc0> _dynamicStoreCallback - processing changedKey State:/Network/Interface/en0/LinkQuality linkQualityInfo { May 31 12:48:13 Marks-iPad Notice 126 findmydeviced(PersistentConnection) <PCPersistentInterfaceManager: 0x104f109f0> _updateWWANInterfaceUpState wasUp NO isUp NO wantsInterfaceAssertion NO avoidWWANOnCall NO May 31 12:48:13 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) SCDynamicStore config_callback: k: State:/Network/Interface/en0/LinkQuality May 31 12:48:13 Marks-iPad Notice 126 findmydeviced(PersistentConnection) <PCNonCellularUsabilityMonitor: 0x104f35f80> NonCellularUsabilityMonitor - LQ changed from 100 to 50 May 31 12:48:13 Marks-iPad Notice 314 dataaccessd(PersistentConnection) _adjustPollTimerIfNecessary rightStyle YES isRunning YES isInReconnectMode NO intervalTimer (null) firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 126 findmydeviced(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x104f362b0> Interface Manager: NonCellular(en0) LinkQuality changed from good to poor (50) May 31 12:48:13 Marks-iPad Notice 126 findmydeviced(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x104f362b0> _dynamicStoreCallback - processing changedKey State:/Network/Interface/en0/LinkQuality linkQualityInfo { May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) _adjustPollTimerIfNecessary rightStyle NO isRunning NO isInReconnectMode NO intervalTimer (null) firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) _adjustPollTimerIfNecessary rightStyle NO isRunning NO isInReconnectMode NO intervalTimer (null) firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Wake schedule for ''() completed for [] (took 0.001 seconds; result code 0) May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) _adjustPollTimerIfNecessary rightStyle NO isRunning NO isInReconnectMode NO intervalTimer (null) firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) _adjustPollTimerIfNecessary rightStyle NO isRunning YES isInReconnectMode NO intervalTimer firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) _adjustPollTimerIfNecessary rightStyle NO isRunning NO isInReconnectMode NO intervalTimer (null) firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) _adjustPollTimerIfNecessary rightStyle NO isRunning NO isInReconnectMode NO intervalTimer (null) firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 108 apsd(ApplePushService) APSPowerLog: {event: , dict: } May 31 12:48:13 Marks-iPad Notice 108 apsd : Sending keep alive message via conn: onInterface: NonCellular. Connected on 1 interfaces. Current link quality: May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Scheduling a wake for date leeway 0 wake identifier May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Disabling power monitoring for <PCSimpleTimer: 0x14de77e30> - 3 timers May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Wake cancel for ''() completed for [] (took 0.001 seconds; result code 0) May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Invalidating simple timer <PCSimpleTimer: 0x14de77e30> May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) updating timer guidance to 2022-05-31 13:08:55 -0700 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCPersistentTimer: 0x14de64fc0> Calculated minimum fire date [2022-05-31 13:08:55 -0700] (100%) with fire date [2022-05-31 13:08:55 -0700], start date [2022-05-31 12:48:13 -0700], minimum early fire proportion 0, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCPersistentTimer: 0x14de64fc0> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCPersistentTimer: 0x14de64fc0> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Last system wake date (2022-05-31 10:59:43 -0700) was longer than half of the timer duration, so setting minimum fire date to fire date. May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Request to schedule wake 1 date 2022-05-31 13:08:40 -0700 leeway 0 service identifier com.apple.apsd(push.apple.com)-NonCellular unique identifier <PCSimpleTimer: 0x14de742d0> May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Enabling power monitoring for <PCSimpleTimer: 0x14de742d0> - 4 timers May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCSimpleTimer: 0x14de742d0> Existing wake at (null) re-scheduling to 2022-05-31 13:08:40 -0700 with leeway of 0 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCSimpleTimer: 0x14de742d0> created preventSleepTimer <PCDispatchTimer: 0x14de16850> and fireTimer <PCDispatchTimer: 0x14de34c00> on queue May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Started simple timer <PCSimpleTimer: 0x14de742d0> with fire date [2022-05-31 13:08:55 -0700] May 31 12:48:13 Marks-iPad Notice 130 networkserviceproxy Interface en0, link quality changed to Poor (50) May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCPersistentTimer: 0x14de64fc0> created <PCSimpleTimer: 0x14de742d0> May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Enabling power monitoring for <PCSimpleTimer: 0x14de77e30> - 3 timers May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) WiFi growth algorithm-IPv4: received action PCActionMaintainPushKeepAliveInterval while in stage InitialGrowth May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCMultiStageGrowthAlgorithm: 0x14dd11980>{keep alive interval = 1207.91, state = InitialGrowth, next recalibration date = (null)}: adjustGrowthAlgorithmMode. {lastMode: Defaults, currentMode: Defaults} May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Cancelling scheduled wake for wake identifier May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Last timer interruption was early: []. Expected fire time was []. {lastKeepAliveWasUntracked: NO} May 31 12:48:13 Marks-iPad Notice 108 apsd(IOKit) Setting gAssertionsOffloader timeout to 1 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Resuming push keep alive timer in normal mode with action PCActionMaintainPushKeepAliveInterval May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCSimpleTimer: 0x14de77e30> created preventSleepTimer <PCDispatchTimer: 0x14de5cd10> and fireTimer <PCDispatchTimer: 0x14de11b00> on queue May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Disabling power monitoring for <PCSimpleTimer: 0x14df3d300> - 2 timers May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Started simple timer <PCSimpleTimer: 0x14de77e30> with fire date [2022-05-31 12:49:13 -0700] May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Request to schedule wake 0 date 2022-05-31 12:50:09 -0700 leeway 0 service identifier com.apple.apsd(push.apple.com)-NonCellular unique identifier <PCSimpleTimer: 0x14df3d300> May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Canceling system wake for simpletimer [2022-05-31 12:50:09 -0700] May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Invalidating simple timer <PCSimpleTimer: 0x14df3d300> May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Invalidating timer <PCPersistentTimer: 0x14df081c0> May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Setting keep alive grace period to 35 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Setting usingServerStatsAggressively for (null) to NO May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x1508455b0> Calculated minimum fire date [2022-06-04 23:00:01 -0700] (90%) with fire date [2022-06-05 11:00:01 -0700], start date [2022-05-31 11:00:01 -0700], minimum early fire proportion 0.9, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Setting server stats expected keep alive interval for (null) to 0 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x1508455b0> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Setting server stats min keep alive interval for (null) to 0 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Setting server stats max keep alive interval for (null) to 0 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x1508455b0> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 108 apsd calculated current connection quality. {Quality:0, Interface: NonCellular} May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fda72b0> Calculated minimum fire date [2022-06-01 10:31:04 -0700] (98%) with fire date [2022-06-01 10:59:52 -0700], start date [2022-05-31 10:59:52 -0700], minimum early fire proportion 0.98, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 108 apsd WiFi poorLQ keepAlive sent May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fda72b0> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fda72b0> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x1509e7860> Calculated minimum fire date [2022-05-31 13:29:06 -0700] (100%) with fire date [2022-05-31 13:29:06 -0700], start date [2022-05-31 12:29:06 -0700], minimum early fire proportion 0.75, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x1509e7860> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) Last system wake date (2022-05-31 10:59:43 -0700) was longer than half of the timer duration, so setting minimum fire date to fire date. May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x1509e7860> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fe3e630> Calculated minimum fire date [2022-05-31 21:47:52 -0700] (90%) with fire date [2022-05-31 22:59:52 -0700], start date [2022-05-31 10:59:52 -0700], minimum early fire proportion 0.9, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fe3e630> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fe3e630> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCSimpleTimer: 0x1509802e0> updateFireTime from Tue May 31 14:55:06 2022 + 288 to Tue May 31 14:59:54 2022 + 0, trigger from YES to YES May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x15099f9e0> Calculated minimum fire date [2022-05-31 14:59:54 -0700] (100%) with fire date [2022-05-31 14:59:54 -0700], start date [2022-05-31 10:59:54 -0700], minimum early fire proportion 0.98, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x15099f9e0> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCSimpleTimer: 0x14fd86a90> updateFireTime from Tue May 31 16:23:52 2022 + 2160 to Tue May 31 16:59:52 2022 + 0, trigger from YES to YES May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x15099f9e0> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fd64c40> Calculated minimum fire date [2022-05-31 16:59:52 -0700] (100%) with fire date [2022-05-31 16:59:52 -0700], start date [2022-05-31 10:59:52 -0700], minimum early fire proportion 0.9, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fd64c40> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fd64c40> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fd3ede0> Calculated minimum fire date [2022-06-01 08:35:51 -0700] (90%) with fire date [2022-06-01 10:59:51 -0700], start date [2022-05-31 10:59:51 -0700], minimum early fire proportion 0.9, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fd3ede0> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fd3ede0> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fdec8d0> Calculated minimum fire date [2022-05-31 13:47:56 -0700] (100%) with fire date [2022-05-31 13:47:56 -0700], start date [2022-05-31 12:47:56 -0700], minimum early fire proportion 0.9, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fdec8d0> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) Last system wake date (2022-05-31 10:59:43 -0700) was longer than half of the timer duration, so setting minimum fire date to fire date. May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fdec8d0> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCSimpleTimer: 0x1508d9e30> updateFireTime from Tue May 31 15:32:51 2022 + 1800 to Tue May 31 16:02:51 2022 + 0, trigger from YES to YES May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(PersistentConnection) <PCPersistentTimer: 0x105c0f630> Calculated minimum fire date [2022-05-31 17:29:37 -0700] (25%) with fire date [2022-06-01 11:29:37 -0700], start date [2022-05-31 11:29:37 -0700], minimum early fire proportion 0, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(PersistentConnection) Forcing timer alignment to fire date [2022-05-31 17:29:37 -0700] May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x15087b020> Calculated minimum fire date [2022-05-31 16:02:51 -0700] (100%) with fire date [2022-05-31 16:02:51 -0700], start date [2022-05-31 11:02:51 -0700], minimum early fire proportion 0.9, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x15087b020> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) interfaceManagerInternetReachabilityChanged: isRunning NO delayTimer (null) wasReachable YES isReachable YES currentStyleIsPush? YES May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) interfaceManagerInternetReachabilityChanged: isRunning NO delayTimer (null) wasReachable YES isReachable YES currentStyleIsPush? YES May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCPersistentTimer: 0x14df081c0> Calculated minimum fire date [2022-05-31 12:50:24 -0700] (100%) with fire date [2022-05-31 12:50:24 -0700], start date [2022-05-31 12:29:41 -0700], minimum early fire proportion 0, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x15087b020> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) interfaceManagerInternetReachabilityChanged: isRunning NO delayTimer (null) wasReachable YES isReachable YES currentStyleIsPush? YES May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCPersistentTimer: 0x14df081c0> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) Last system wake date (2022-05-31 10:59:43 -0700) was longer than half of the timer duration, so setting minimum fire date to fire date. May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCPersistentTimer: 0x14df081c0> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) interfaceManagerInternetReachabilityChanged: isRunning YES delayTimer (null) wasReachable YES isReachable YES currentStyleIsPush? YES May 31 12:48:13 Marks-iPad Notice 56 identityservicesd(PersistentConnection) <PCPersistentTimer: 0x104f0ed30> Calculated minimum fire date [2022-06-26 19:44:24 -0700] (100%) with fire date [2022-06-26 19:44:24 -0700], start date [2022-05-31 11:00:20 -0700], minimum early fire proportion 1, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) Enabling power monitoring for <PCSimpleTimer: 0x13d225740> - 2 timers May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCPersistentInterfaceManager: 0x14df1bb50> _updateWWANInterfaceUpState wasUp NO isUp NO wantsInterfaceAssertion NO avoidWWANOnCall NO May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) _adjustPollTimerIfNecessary rightStyle NO isRunning NO isInReconnectMode NO intervalTimer (null) firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 71 imagent(PersistentConnection) <PCPersistentInterfaceManager: 0x105540f20> _updateWWANInterfaceUpState wasUp NO isUp NO wantsInterfaceAssertion NO avoidWWANOnCall NO May 31 12:48:13 Marks-iPad Notice 71 imagent(PersistentConnection) <PCNonCellularUsabilityMonitor: 0x105638e70> NonCellularUsabilityMonitor - LQ changed from 100 to 50 May 31 12:48:13 Marks-iPad Notice 71 imagent(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x105639050> _dynamicStoreCallback - processing changedKey State:/Network/Interface/en0/LinkQuality linkQualityInfo { May 31 12:48:13 Marks-iPad Notice 71 imagent(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x105639050> Interface Manager: NonCellular(en0) LinkQuality changed from good to poor (50) May 31 12:48:13 Marks-iPad Notice 61 SpringBoard(PersistentConnection) <PCPersistentInterfaceManager: 0x2814eda70> _updateWWANInterfaceUpState wasUp NO isUp NO wantsInterfaceAssertion NO avoidWWANOnCall NO May 31 12:48:13 Marks-iPad Notice 61 SpringBoard(PersistentConnection) <PCNonCellularUsabilityMonitor: 0x28057c5f0> NonCellularUsabilityMonitor - LQ changed from 100 to 50 May 31 12:48:13 Marks-iPad Notice 61 SpringBoard(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x2814edb90> Interface Manager: NonCellular(en0) LinkQuality changed from good to poor (50) May 31 12:48:13 Marks-iPad Notice 52 wifid(WiFiPolicy) __WiFiLQAMgrLogStats(marksheldon:Moving): Rssi: -68 Channel: 44 Bandwidth: 80Mhz Snr: 20 Cca: 14 (S:0 O:0 I:0) TxPer: 12.7% (55) BcnPer: 2.4% (170, 50.6%) RxFrms: 66 RxRetryFrames: 17 TxRate: 585000 RxRate: 260000 FBRate: 6500 TxFwFrms: 44 TxFwFail: 2 TxReTrans: 102 time: 21.9secs fgApp: org.capce.CAPCEMobileApp1 May 31 12:48:13 Marks-iPad Notice 61 SpringBoard(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x2814edb90> _dynamicStoreCallback - processing changedKey State:/Network/Interface/en0/LinkQuality linkQualityInfo { May 31 12:48:13 Marks-iPad Error 52 wifid(WiFiPolicy) Tx failure is observed May 31 12:48:13 Marks-iPad Notice 52 wifid(WiFiPolicy) Too frequent(0.707397 secs) rssi event from driver, ignoring May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(PersistentConnection) <PCPersistentTimer: 0x105c0f630> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(PersistentConnection) <PCPersistentTimer: 0x105c0f630> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(PersistentConnection) <PCPersistentTimer: 0x105976090> Calculated minimum fire date [2022-05-31 13:29:37 -0700] (100%) with fire date [2022-05-31 13:29:37 -0700], start date [2022-05-31 12:29:37 -0700], minimum early fire proportion 0.45, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(PersistentConnection) <PCPersistentTimer: 0x105976090> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(PersistentConnection) Last system wake date (2022-05-31 10:59:43 -0700) was longer than half of the timer duration, so setting minimum fire date to fire date. May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(PersistentConnection) <PCPersistentTimer: 0x105976090> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 56 identityservicesd(PersistentConnection) <PCPersistentTimer: 0x104f0ed30> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 56 identityservicesd(PersistentConnection) <PCPersistentTimer: 0x104f0ed30> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 56 identityservicesd(PersistentConnection) <PCPersistentInterfaceManager: 0x104f5fd80> _updateWWANInterfaceUpState wasUp NO isUp NO wantsInterfaceAssertion NO avoidWWANOnCall NO May 31 12:48:13 Marks-iPad Notice 56 identityservicesd(PersistentConnection) <PCNonCellularUsabilityMonitor: 0x104f476d0> NonCellularUsabilityMonitor - LQ changed from 100 to 50 May 31 12:48:13 Marks-iPad Notice 56 identityservicesd(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x1059588a0> _dynamicStoreCallback - processing changedKey State:/Network/Interface/en0/LinkQuality linkQualityInfo { May 31 12:48:13 Marks-iPad Notice 56 identityservicesd(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x1059588a0> Interface Manager: NonCellular(en0) LinkQuality changed from good to poor (50) May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fdcdb00> Calculated minimum fire date [2022-06-01 10:31:04 -0700] (98%) with fire date [2022-06-01 10:59:52 -0700], start date [2022-05-31 10:59:52 -0700], minimum early fire proportion 0.98, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fdcdb00> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14fdcdb00> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14feb91d0> Calculated minimum fire date [2022-06-01 03:11:55 -0700] (90%) with fire date [2022-06-01 04:59:55 -0700], start date [2022-05-31 10:59:55 -0700], minimum early fire proportion 0.9, power state detection supported: no, in high power state: no, early fire constant interval 0.000000 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14feb91d0> Device is plugged in, overriding earlyFireProportion to be 1.0 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentTimer: 0x14feb91d0> calculating _earlyFireDate. powerStateDetectionSupported = NO = (detectionSupported(NO) && (wwanIsUp(NO) || ! internetReachable(YES))) May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) Enabling power monitoring for <PCSimpleTimer: 0x13d2298e0> - 1 timers May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) PCSimpleTimer - enabling power monitoring May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) interfaceManagerInternetReachabilityChanged: isRunning NO delayTimer (null) wasReachable YES isReachable YES currentStyleIsPush? YES May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) interfaceManagerInternetReachabilityChanged: isRunning NO delayTimer (null) wasReachable YES isReachable YES currentStyleIsPush? YES May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) <PCSimpleTimer: 0x13d225740> created preventSleepTimer <PCDispatchTimer: 0x13d11bf10> and fireTimer <PCDispatchTimer: 0x13d12ccf0> on queue May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) Started simple timer <PCSimpleTimer: 0x13d225740> with fire date [2022-05-31 12:49:13 -0700] May 31 12:48:13 Marks-iPad Notice 0 kernel(AppleBCMWLANCore) WiFi Scores ChanQual Score = 0 TxLoss Score = 2 RxLoss Score = 0 TxLat Score = 5 [1(100 %) / 0(0 %) / 0(0 %) / 0(0 %)] RxLat Score = 0 [0(0 %) / 0(0 %) / 0(0 %) / 0(0 %)] intermittent-state = 0 latency = 1 LinkReco = 0x0 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) _adjustPollTimerIfNecessary rightStyle NO isRunning NO isInReconnectMode NO intervalTimer (null) firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) _adjustPollTimerIfNecessary rightStyle NO isRunning NO isInReconnectMode NO intervalTimer (null) firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) _adjustPollTimerIfNecessary rightStyle NO isRunning YES isInReconnectMode NO intervalTimer firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCNonCellularUsabilityMonitor: 0x14df0a170> NonCellularUsabilityMonitor - LQ changed from 100 to 50 May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x14dd0a670> Interface Manager: NonCellular(en0) LinkQuality changed from good to poor (50) May 31 12:48:13 Marks-iPad Notice 108 apsd(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x14dd0a670> _dynamicStoreCallback - processing changedKey State:/Network/Interface/en0/LinkQuality linkQualityInfo { May 31 12:48:13 Marks-iPad Notice 0 kernel(IO80211Family) postMessageInternal:isPipeOpened:1, msg 39, dataLen 180 May 31 12:48:13 Marks-iPad Notice 0 kernel(IO80211Family) postMessageInternal:isPipeOpened:1, msg 190, dataLen 16 May 31 12:48:13 Marks-iPad Notice 0 kernel(AppleBCMWLANCore) LQM-WiFi:BT Coex Stats2:btDur=21ms(0%) status=0x400 reqTypeMap=0x300000 req=6 gnt=6 abort=76 rx1ovfl=32 latency=0 [8467ms] May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) <PCSimpleTimer: 0x13d2298e0> created preventSleepTimer <PCDispatchTimer: 0x13d219500> and fireTimer <PCDispatchTimer: 0x13d2289e0> on queue May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) Started simple timer <PCSimpleTimer: 0x13d2298e0> with fire date [2022-05-31 12:49:13 -0700] May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCNonCellularUsabilityMonitor: 0x1509116c0> NonCellularUsabilityMonitor - LQ changed from 100 to 50 May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCPersistentInterfaceManager: 0x14fd42c40> _updateWWANInterfaceUpState wasUp NO isUp NO wantsInterfaceAssertion NO avoidWWANOnCall NO May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x14fd417d0> _dynamicStoreCallback - processing changedKey State:/Network/Interface/en0/LinkQuality linkQualityInfo { May 31 12:48:13 Marks-iPad Notice 68 locationd(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x14fd417d0> Interface Manager: NonCellular(en0) LinkQuality changed from good to poor (50) May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(PersistentConnection) <PCPersistentInterfaceManager: 0x10592bcf0> _updateWWANInterfaceUpState wasUp NO isUp NO wantsInterfaceAssertion NO avoidWWANOnCall NO May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(PersistentConnection) <PCNonCellularUsabilityMonitor: 0x105a1bf80> NonCellularUsabilityMonitor - LQ changed from 100 to 50 May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x105a16980> Interface Manager: NonCellular(en0) LinkQuality changed from good to poor (50) May 31 12:48:13 Marks-iPad Notice 29 UserEventAgent(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x105a16980> _dynamicStoreCallback - processing changedKey State:/Network/Interface/en0/LinkQuality linkQualityInfo { May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) <PCPersistentInterfaceManager: 0x13be75c10> _updateWWANInterfaceUpState wasUp NO isUp NO wantsInterfaceAssertion NO avoidWWANOnCall NO May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) _adjustPollTimerIfNecessary rightStyle NO isRunning NO isInReconnectMode NO intervalTimer (null) firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) _adjustPollTimerIfNecessary rightStyle NO isRunning NO isInReconnectMode NO intervalTimer (null) firingIsImminent NO - should Adjust? NO May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) <PCNonCellularUsabilityMonitor: 0x13be04c30> NonCellularUsabilityMonitor - LQ changed from 100 to 50 May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x13be04aa0> Interface Manager: NonCellular(en0) LinkQuality changed from good to poor (50) May 31 12:48:13 Marks-iPad Notice 88 CommCenter(PersistentConnection) <PCInterfaceUsabilityMonitor: 0x13be04aa0> _dynamicStoreCallback - processing changedKey State:/Network/Interface/en0/LinkQuality linkQualityInfo { May 31 12:48:13 Marks-iPad Notice 116 mDNSResponder May 31 12:48:13 Marks-iPad Notice 0 kernel(corecapture) 006516.398995 wlan0.A[264] @.***:Report LQM to User Land 50, ivars->fAverageRSSI -72 May 31 12:48:12 Marks-iPad Notice 46 WirelessRadioManagerd May 31 12:48:12 Marks-iPad Notice 46 WirelessRadioManagerd May 31 12:48:12 Marks-iPad Notice 46 WirelessRadioManagerd May 31 12:48:12 Marks-iPad Notice 124 symptomsd(SymptomEvaluator) Received Wi-Fi Assist Override along with LQM info: 0 May 31 12:48:12 Marks-iPad Notice 61 SpringBoard(SpringBoard) vpn is unchanged, still disabled

eekamouse commented 2 years ago

Thanks for your effort here. I am getting the following on our iOS project when I try to compile with the new packages:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(254,3): error MT2101: Can't resolve the reference 'System.Void ObjCRuntime.DisposableObject::Dispose()', referenced from the method 'System.Void ZXing.Mobile.ZXingScannerView/OutputRecorder::DidOutputSampleBuffer(AVFoundation.AVCaptureOutput,CoreMedia.CMSampleBuffer,AVFoundation.AVCaptureConnection)' in 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'.

Some Googling, brought up that I should roll back from the .2401 version of Xamarin Forms to the previous release, although that didn't make a difference. I did some testing of dropping the package in and out with different version of Xamarin Forms, and only when the new package is present do we see the error above, regardless of the version of Xamarin Forms.

mark-sheldon commented 2 years ago

Thank you for all your efforts. I tried all the CameraResolutionPreset settings with no luck. I'm about 75% convinced this is not really a ZXing issue. I'm thinking it's a Xamarin.iOS issue. I have read several places this issue disappears if your Apple phone or iPad is directly plugged into an Apple build server. Unfortunately, my Apple Build server (a MacBook Pro) is no longer upgradeable to the latest macOS or xCode versions, so I'm going to have to make other arrangements (buy a new Mac or go the hackintosh route) in order to test that.

Thanks again for taking a look at this.

m.

On Tue, May 31, 2022 at 1:06 PM Patrick Schulz @.***> wrote:

@mark-sheldon https://github.com/mark-sheldon I cannot really see something "interesting" or helpful in those iOS native stacktraces, kinda new to it But as far I can gather from that information it really does seem to be this libs problem or Apples problem (shutdown after StartScanning)

I happened to get thrown from the application without scanPage.IsScanning = false 1/4 times assuming some race condition, but I don't think that's the problem here. As I told you my iPad Pro (2020) with iOS 15.5 succeeded.

What CameraResolutionPreset do you use? I haven't tested much higher resolutions with devices (I literally don't have such test devices) which can't take a higher photo/video resolution. -> But via iPhone Simulator the app didn't crash on one of the old models such as iPhone 8 with a much higher value

If you are indeed in need of this, after all free, library and have some sparetime for it I really suggest you to debug it yourself as I have no possession of an iPad 9th Gen. If you fork my repo/fork we can discuss there and/or if you find the solution to the problem yourself you just can create a PR and publish it for everyone ourselves..

— Reply to this email directly, view it on GitHub https://github.com/Redth/ZXing.Net.Mobile/issues/1041#issuecomment-1142591959, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI44BJTJ5VODMEJYUBT75DLVMZWMZANCNFSM5VJXPUIQ . You are receiving this because you were mentioned.Message ID: <Redth/ZXing .@.***>

imsam67 commented 2 years ago

I installed my app on my iPhone XS through TestFlight and still didn’t work. I don’t think plugging phone directly into build server will help but that’s just my opinion. There may be a reason why this library has been abandoned more than once. Again, that’s my opinion.

stoff99 commented 2 years ago

Hi @all and thx @g0dpain,

i'm also creating a new customer project right now and found this issue with the newest iPhone generation. Do you plan to maintain your fork or was this a one time fix? :)

@imsam67: The barcode sdk you posted, this is not supporting live tracking via the device camera right? You can simply send a FileStream into the sdk and get back a result?

Does anybody have experience with: https://github.com/JimmyPun610/BarcodeScanner.Mobile ?

I also checked: https://scanbot.io/de/pricing/ but this starts with 20.000$ per year for the minimum version :D

Thx Stefan

imsam67 commented 2 years ago

All the options that were viable for our use case are commercial solutions and are NOT cheap. What's worse is I hate their pricing model where they give you a price based on number of scans. It's a piece of software that runs on users' devices and interacts with our backend so how many times we execute a block of code that they produced shouldn't matter but that's how they charge you. At this time, we've abandoned the scan feature in our app. Clearly the community needs a good viable scanning solution.

danrus commented 2 years ago

Hi @ALL and thx @g0dpain,

i'm also creating a new customer project right now and found this issue with the newest iPhone generation. Do you plan to maintain your fork or was this a one time fix? :)

@imsam67: The barcode sdk you posted, this is not supporting live tracking via the device camera right? You can simply send a FileStream into the sdk and get back a result?

Does anybody have experience with: https://github.com/JimmyPun610/BarcodeScanner.Mobile ?

I also checked: https://scanbot.io/de/pricing/ but this starts with 20.000$ per year for the minimum version :D

Thx Stefan

Hi,

I switched from this package to BarcodeScanner about a year ago (currently using version 5.0.9). This one had problems with small QR-Codes (10 mm) and could not decode DataMatrix codes which were even smaller. A can say that the BarcodeScanner works really well in our use case: small QR-Codes printed on shiny foil with gray background and glued on surfaces which are not always flat or really small DataMatrix codes.

utkarshsaviant commented 2 years ago

Using Zxing library for scanning barcodes for more than 2 years in our project. As mentioned by others scanning barcodes apart from iPhone 13 work but on iPhone 13 does not scan them. We have tried with most of the solutions found from various platforms. Updated to the latest package as well and still the result is same.

Has this issue been resolved or a working resolution or workaround for this has been made available anywhere.

We are on very high priority and tight timeline to resolve this issue so expect a solution that works for all the above who are facing this.

SylvainDosSantos commented 2 years ago

Hi !

I Tried to develop a .net Maui app using this library, and unfortunately, it doesn't seem to detect barcodes or qr codes on my Iphone 12 mini.

g0dpain commented 2 years ago

Hi !

I Tried to develop a .net Maui app using this library, and unfortunately, it doesn't seem to detect barcodes or qr codes on my Iphone 12 mini.

There is a MAUI port of this library from Redth himself https://github.com/Redth/ZXing.Net.Maui

This is still in progress, but there you will be having the ability to change the scanners resolution. It may appear to be high quality in the preview, but in the background it is being scanned in 480p. I implemented in a fork of this specific lib for Xamarin Forms a property inside BarcodeScannerOptions to change it manually. Maybe you can use this in the meantime

brendonupson commented 2 years ago

iPhone 14 Pro also fails to detect barcode. My guess is it's using the wrong camera and/or can't focus properly to detect the barcode? Macro mode?

g0dpain commented 2 years ago

iPhone 14 Pro also fails to detect barcode. My guess is it's using the wrong camera and/or can't focus properly to detect the barcode? Macro mode?

@brendonupson ZXing.Net.Mobile probably never will be updated again. A MAUI version is on the way. You may be right with the focus too. But I found out that the iOS scanning implementation sets the camera resolution to 640x480 and maybe I am wrong the default camera is "Ultrawide" on newer devices, so you can imagine that the preview you see is not the image the scanner processes e.g. internally it picks up the barcode further away at a low resolution.

I implemented a workaround and added some PR-fixes for this library (iOS only), search for preview nuget package g0dpain.ZXing.Net.Mobile or if you are using Xamarin.Forms over Xamarin native g0dPain.ZXing.Net.Mobile.Forms and add CameraResolutionPreset property to your MobileBarcodeScanningOptions, preferably 1920x1080 since a lot of devices doesn't support the highest and it crashed on a few devices on app release (I think iPad Gen 4)

An implementation to set a resolution in the MAUI library will be supported

MariusPCK commented 1 year ago

The reason why iphone >= 13 has trouble scanning is that the default back camera is WideAngle which has a minimum focus distance of 20cm. To fix this focusing issue, we need to use macro mode. To use macro mode, we need to use the correct lens / camera. When searching for AvCaptureDevice using the type UltraWideAngle it yields no results, the reason for this is that the function used for looking up devices are deprecated. NsDiscoverySession ( if i recall the name correctly ) needs to be used.

I've created a fork https://github.com/MariusPCK/ZXing.Net.Mobile which is a fork of g0dpain's fork, so it includes the resolution stuffies. The fork has a new option "TryUseUltraWideCamera", if not found it defaults back to the default back camera. You can see it in use via https://github.com/MariusPCK/ZXing.Net.Mobile/blob/master/Samples/Sample.Forms/Sample.Forms/CustomScanPage.cs

Packages:

Install-Package mariuspck.ZXing.Net.Mobile -Version 3.1.5-alpha Install-Package mariuspck.ZXing.Net.Mobile.Forms -Version 3.1.5-alpha

RathodBindiya commented 1 year ago

Thank you very much.. :) I tried it with iPhone 14 pro.. and it's working correctly.

g0dpain commented 1 year ago

@MariusPCK great stuff! Would you care to implement this solution also for the MAUI version of this repo and create a PR?

MariusPCK commented 1 year ago

@MariusPCK great stuff! Would you care to implement this solution also for the MAUI version of this repo and create a PR?

Probably, however not until the app I'm working on will be ported to MAUI.

Engincode commented 1 year ago

@MariusPCK Version "3.1.5-alpha" doesn't work on simulator iOS 15.2 But it worked on Physical device iOS 15.7.2.

iOS 15.2 Error Detail: Object reference not set to an instance of an object ZXing.Net.Mobile\iOS\ZXingScannerView.ios.cs:150

g0dpain commented 1 year ago

@MariusPCK Version "3.1.5-alpha" doesn't work on simulator iOS 15.2 But it worked on Physical device iOS 15.7.2.

iOS 15.2 Error Detail: Object reference not set to an instance of an object ZXing.Net.Mobile\iOS\ZXingScannerView.ios.cs:150

To my understanding you should not be able to open the scanner on the iOS simulator at all. Unlike the android simulator the iOS one does not include a CaptureDevice (e.g. camera) and therefore throws an unhandled exception

Engincode commented 1 year ago

@g0dpain Version "3.1.5-alpha" Simulator, iOS Version 15.2 and doesn't work. Physical Device, iOS Version 15.7.2 worked.

Version 2.4.1 (Last Stable) Simulator, iOS Version 15.2 worked. Physical Device, iOS Version 15.7.2 worked.

Edit @g0dpain on the Android Side Version "3.1.5-alpha" Emulator and Physical device worked.

Version 2.4.1 (Last Stable) Emulator: Object reference not set to an instance of an object. at ZXing.Mobile.MobileBarcodeScanner.GetContext (Android.Content.Context context) [0x0001f] in <819b29aa6d91462699e19a679be55a44>:0

Physical Device: : : 'Unable to activate instance of type Java.Lang.Runnable from native handle 0x7ff29e2384 at ZXing.Mobile.MobileBarcodeScanner.GetContext (Android.Content.Context context) [0x0001f] in <819b29aa6d91462699e19a679be55a44>:0

Is it clear?

MariusPCK commented 1 year ago

@g0dpain Version "3.1.5-alpha" Simulator, iOS Version 15.2 and doesn't work. Physical Device, iOS Version 15.7.2 worked.

Version 2.4.1 (Last Stable) Simulator, iOS Version 15.2 worked. Physical Device, iOS Version 15.7.2 worked.

Edit @g0dpain on the Android Side Version "3.1.5-alpha" Emulator and Physical device worked.

Version 2.4.1 (Last Stable) Emulator: Object reference not set to an instance of an object. at ZXing.Mobile.MobileBarcodeScanner.GetContext (Android.Content.Context context) [0x0001f] in <819b29aa6d91462699e19a679be55a44>:0

Physical Device: : : 'Unable to activate instance of type Java.Lang.Runnable from native handle 0x7ff29e2384 at ZXing.Mobile.MobileBarcodeScanner.GetContext (Android.Content.Context context) [0x0001f] in <819b29aa6d91462699e19a679be55a44>:0

Is it clear?

I don't use a simulator for IOS so I won't be doing a fix (avoiding unhandled throw) for it.

Feel free to fork and implement :)

Engincode commented 1 year ago

@g0dpain @MariusPCK

Thanks. Now I tested version of ""3.1.0-beta2"" prerelease It worked to all environments.

giljgx commented 1 year ago

@g0dpain @MariusPCK

Thank you so much for resolve a long term issue since iPhone 12 released.

It works finally. I just hope this will be applied to ZXing javascript library as soon as possible.

Please share if it's been implemented already.

Code-Writing-Guy commented 1 year ago

Hi @g0dpain @MariusPCK @giljgx

So, I'm still running into issues on basically any 3 camera (maybe others?) recent iOS devices. This thread describes what I'm seeing. I'm currently on the 3.1.0-beta2 NuGet and am able to get some QR/DataMatrix to be caught, but only larger ones. The ones I need to scan are pretty small and on a package's white background. My guess is about 1 cm x 1 cm.

Able to work on Droid and 1 and 2 camera iOS devices, just not 3 camera ones like described in this thread. Are there settings that need to be set in Settings as well to get such things working and/or is there a minimum size that these newer cameras can focus on?

This library has been working fine for like 2+ years and just now giving us trouble. We can certainly try migrating to a paid library (I've used Scandit in the past), but my guess is that due to these issues they may be hit and miss as well.

Any guidance or ideas on this would be much appreciated. I don't feel like I'm ready to throw in the towel quite yet, but I do have deadlines.

My guess is that either: 1. These types of phone cameras are not capable of focusing correctly and this library is seeing thos shortcomings. Or 2. The iPhone cameras are not capable of focusing on anything that close to the lens.

Thanks in advance for your response.

MariusPCK commented 1 year ago

Hi @g0dpain @MariusPCK @giljgx

So, I'm still running into issues on basically any 3 camera (maybe others?) recent iOS devices. This thread describes what I'm seeing. I'm currently on the 3.1.0-beta2 NuGet and am able to get some QR/DataMatrix to be caught, but only larger ones. The ones I need to scan are pretty small and on a package's white background. My guess is about 1 cm x 1 cm.

Able to work on Droid and 1 and 2 camera iOS devices, just not 3 camera ones like described in this thread. Are there settings that need to be set in Settings as well to get such things working and/or is there a minimum size that these newer cameras can focus on?

This library has been working fine for like 2+ years and just now giving us trouble. We can certainly try migrating to a paid library (I've used Scandit in the past), but my guess is that due to these issues they may be hit and miss as well.

Any guidance or ideas on this would be much appreciated. I don't feel like I'm ready to throw in the towel quite yet, but I do have deadlines.

My guess is that either: 1. These types of phone cameras are not capable of focusing correctly and this library is seeing thos shortcomings. Or 2. The iPhone cameras are not capable of focusing on anything that close to the lens.

Thanks in advance for your response.

The fix isn't in version 3.1.0-beta2. See https://github.com/Redth/ZXing.Net.Mobile/issues/1041#issuecomment-1372080125

Code-Writing-Guy commented 1 year ago

@MariusPCK Not sure where I saw here that it was in the latest beta, but I tried your branch as pointed out. It does work for larger QR codes, which is fantastic! Kudos on the fix!

I'm still having issues with tiny data matrices/QR. I downloaded the demos for Scandit and Scanbot and both work, but like everyone else here, I really don't want to pay $25k for something that is super close to working. Is there something I'm missing with the tiny codes? Is it just that the new cameras can't focus on them, I'd guess? Any thoughts on a work around for this? Or ZXing about as good as it's going to get?

More...

It looks like versions earlier than 16 are not having this issue either. But, it may be a separate issue I'm running into in conjunction with the issue in the thread being the tiny code recognition. Either way, I think they're related.

MariusPCK commented 1 year ago

@MariusPCK Not sure where I saw here that it was in the latest beta, but I tried your branch as pointed out. It does work for larger QR codes, which is fantastic! Kudos on the fix!

I'm still having issues with tiny data matrices/QR. I downloaded the demos for Scandit and Scanbot and both work, but like everyone else here, I really don't want to pay $25k for something that is super close to working. Is there something I'm missing with the tiny codes? Is it just that the new cameras can't focus on them, I'd guess? Any thoughts on a work around for this? Or ZXing about as good as it's going to get?

More...

It looks like versions earlier than 16 are not having this issue either. But, it may be a separate issue I'm running into in conjunction with the issue in the thread being the tiny code recognition. Either way, I think they're related.

Upload an example QR code and I will test it.

Code-Writing-Guy commented 1 year ago

@MariusPCK Thank you for the offer to test. It's not the QR code itself that's the issue in the sense of it being valid or not, it's the size. I'm not really sure how to upload with the actual size, which is small. I will say, it does pick up when larger (when I increase the size in the image file). But, as its actual size on the packaging, which is small, it doesn't work. It does work with paid solutions and older iPhones on iOS 15, but not 16. Not sure exactly what changed other than the physical camera, but it seems pretty buggy on Apple's end from my testing...though I wouldn't rule out ZXing either as other solutions have seemed to nail this one.

At this point, I still haven't given up on ZXing, but am preparing to find an alternative if this can't be fixed. I was hoping there was some flag or something I wasn't hitting correctly, but as I go down the rabbit hole it seems to be much more involved.

I appreciate the quick responses. And thank you very much for your help.

imsam67 commented 1 year ago

@Code-Writing-Guy Is your app a Xamarin or a MAUI app?

Code-Writing-Guy commented 1 year ago

@imsam67 Xamarin Forms. We're going to upgrade to MAUI when all of our paid libraries/tools support it, which they currently don't. But, hopefully in the next few months.