-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS app crashes when viewing PDFs #231
Comments
It seems that |
Hi @espresso3389 Exception 1: _Exception stacktrace_utils.dart in getCurrentStackTraceMessage: Exception: Could not allocate intermediate for pixel conversion. When this exception is happening I can see that the pdf is not loading and just stays white. The stack trace is sadly not giving much. Exception 2: EXC_BAD_ACCESS SkNVRefCnt::SkNVRefCntMessage: EXC_BAD_ACCESS I'm not sure if this one is related to pdfrx. Stack Trace```sh OS Version: iOS 17.6.1 (21G93) Report Version: 104Exception Type: EXC_BAD_ACCESS (SIGSEGV) Application Specific Information: Thread 4 Crashed: Thread 0 Thread 1 Thread 2 Thread 3 name: com.apple.uikit.eventfetch-thread Thread 4 name: io.flutter.1.ui Crashed: Thread 5 name: io.flutter.1.raster Thread 6 name: io.flutter.1.io Thread 7 name: io.worker.1 Thread 8 name: io.worker.2 Thread 9 name: dart:io EventHandler Thread 10 name: isarworker Thread 11 name: isarworker Thread 12 name: ForegroundHandleFlutterEngine.2.ui Thread 13 name: ForegroundHandleFlutterEngine.2.raster Thread 14 name: ForegroundHandleFlutterEngine.2.io Thread 15 name: DartWorker Thread 16 Thread 17 Thread 18 name: com.apple.NSURLConnectionLoader Thread 19 Thread 20 name: SentryCrash Exception Handler (Secondary) Thread 22 name: io.sentry.app-hang-tracker Thread 23 name: DartWorker Thread 24 name: DartWorker Thread 25 name: DartWorker Thread 26 name: DartWorker Thread 27 Thread 28 Thread 29 Thread 4 crashed with ARM Thread State (64-bit): EOF
|
Hi,
First things first thank you very much for this library! It has been great to work with!
We started to implement it into our iOS app to view technical drawings of buildings.
Sadly we have seen quite consistent crashes when opening PDF and panning around.
There is a error report that we get consistent that point to pdfrx in our sentry.
Error Title:
Exception:
Stack Trace
```sh StateError: Bad state: RenderBox was not laid out: RenderFittedBox#78226 #0 RenderBox.size (package:flutter/src/rendering/box.dart:2200) #1 RenderFittedBox.paintsChild (package:flutter/src/rendering/proxy_box.dart:2852) #2 RenderFittedBox.applyPaintTransform (package:flutter/src/rendering/proxy_box.dart:2857) #3 RenderObject.getTransformTo (package:flutter/src/rendering/object.dart:3411) #4 RenderBox.localToGlobal (package:flutter/src/rendering/box.dart:2887) #5 _PdfViewerState._localToGlobal (package:pdfrx/src/widgets/pdf_viewer.dart:1546) #6 _PdfViewerState._documentToGlobal (package:pdfrx/src/widgets/pdf_viewer.dart:1558) #7 _PdfViewerState._documentToRenderBox (package:pdfrx/src/widgets/pdf_viewer.dart:829) #8 _PdfViewerState._buildPageOverlayWidgets (package:pdfrx/src/widgets/pdf_viewer.dart:735) #9 _PdfViewerState.build.. (package:pdfrx/src/widgets/pdf_viewer.dart:451) #10 StreamBuilder.build (package:flutter/src/widgets/async.dart:451) #11 _StreamBuilderBaseState.build (package:flutter/src/widgets/async.dart:120) #12 StatefulElement.build (package:flutter/src/widgets/framework.dart:5729) #13 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5617) #14 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5780) #15 Element.rebuild (package:flutter/src/widgets/framework.dart:5333) #16 StatefulElement.update (package:flutter/src/widgets/framework.dart:5803) #17 Element.updateChild (package:flutter/src/widgets/framework.dart:3941) #18 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6907) #19 Element.updateChild (package:flutter/src/widgets/framework.dart:3941) #20 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642) #21 Element.rebuild (package:flutter/src/widgets/framework.dart:5333) #22 ProxyElement.update (package:flutter/src/widgets/framework.dart:5946) #23 _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:105) #24 Element.updateChild (package:flutter/src/widgets/framework.dart:3941) #25 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642) #26 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5780) #27 Element.rebuild (package:flutter/src/widgets/framework.dart:5333) #28 StatefulElement.update (package:flutter/src/widgets/framework.dart:5803) #29 Element.updateChild (package:flutter/src/widgets/framework.dart:3941) #30 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6907) #31 Element.updateChild (package:flutter/src/widgets/framework.dart:3941) #32 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5642) #33 Element.rebuild (package:flutter/src/widgets/framework.dart:5333) #34 StatelessElement.update (package:flutter/src/widgets/framework.dart:5693) #35 Element.updateChild (package:flutter/src/widgets/framework.dart:3941) #36 _LayoutBuilderElement._rebuildWithConstraints.updateChildCallback (package:flutter/src/widgets/layout_builder.dart:207) #37 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:3038) #38 _LayoutBuilderElement._rebuildWithConstraints (package:flutter/src/widgets/layout_builder.dart:231) #39 RenderObject.invokeLayoutCallback. (package:flutter/src/rendering/object.dart:2719) #40 PipelineOwner._enableMutationsToDirtySubtrees (package:flutter/src/rendering/object.dart:1098) #41 RenderObject.invokeLayoutCallback (package:flutter/src/rendering/object.dart:2719) #42 RenderConstrainedLayoutBuilder.rebuildIfNecessary (package:flutter/src/widgets/layout_builder.dart:278) #43 _RenderLayoutBuilder.performLayout (package:flutter/src/widgets/layout_builder.dart:369) #44 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #45 ChildLayoutHelper.layoutChild (package:flutter/src/rendering/layout_helper.dart:61) #46 RenderFlex._computeSizes (package:flutter/src/rendering/flex.dart:1009) #47 RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:1051) #48 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #49 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111) #50 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #51 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:291) #52 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #53 RenderFittedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:2731) #54 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #55 ChildLayoutHelper.layoutChild (package:flutter/src/rendering/layout_helper.dart:61) #56 RenderStack._computeSize (package:flutter/src/rendering/stack.dart:595) #57 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:622) #58 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #59 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111) #60 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #61 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111) #62 RenderCustomPaint.performLayout (package:flutter/src/rendering/custom_paint.dart:569) #63 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #64 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111) #65 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1448) #66 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #67 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:291) #68 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #69 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111) #70 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #71 RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:451) #72 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #73 RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:111) #74 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #75 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:291) #76 RenderObject.layout (package:flutter/src/rendering/object.dart:2608) #77 RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:451) #78 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:2446) #79 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1052) #80 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:1065) #81 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:602) #82 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:1164) #83 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:468) #84 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1397) #85 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1318) #86 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1176) #87 _invoke (dart:ui/hooks.dart:312) #88 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419) #89 _drawFrame (dart:ui/hooks.dart:283) ```Project details
Please let me know if there are more information that you need or if I can help in any other way to debug these crashes.
Thank you!
The text was updated successfully, but these errors were encountered: