Skip to content
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

have error on 15.4.1 IOS #17

Closed
choowx2002 opened this issue Aug 16, 2023 · 1 comment
Closed

have error on 15.4.1 IOS #17

choowx2002 opened this issue Aug 16, 2023 · 1 comment

Comments

@choowx2002
Copy link

loadDocument(io.File file) async {
var documentFile = await PDFDocument.fromFile(file);
print("documentcwx"+documentFile.toString());
setState(
() {
document = documentFile;
},
);
}

body: Center(
child: document == null
? Center(
child: CircularProgressIndicator(),
)
: PDFViewer(
document: document!,
showIndicator: false,
showPicker: false,
),
),

(first time create issue any rules i need to know?)
im using 1.0.4
When i run in android and ios simulator 16.2 all is fine
but it crash and come below error when run on IOS 15.4.1

 ----------------FIREBASE CRASHLYTICS----------------

2023-08-16 17:29:46.154278+0800 Runner[52085:1657670] flutter: RangeError (index): Invalid value: Valid value range is empty: 0
2023-08-16 17:29:46.155712+0800 Runner[52085:1657670] flutter:
#0 _Array.[] (dart:core-patch/array.dart:10:36)
#1 _PDFViewerState._loadPage (package:easy_pdf_viewer/src/viewer.dart:159:16)
#2 _PDFViewerState.didChangeDependencies (package:easy_pdf_viewer/src/viewer.dart:121:5)
#3 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5036:11)
#4 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4853:5)
#5 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3863:16)
#6 Element.updateChild (package:flutter/src/widgets/framework.dart:3586:20)
#7 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6307:14)
#8 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
#9 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
#10 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
#11 StatelessElement.update (package:flutter/src/widgets/framework.dart:4956:5)
#12 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
#13 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
#14 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
#15 StatelessElement.update (package:flutter/src/widgets/framework.dart:4956:5)
#16 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
#17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
#18 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
#19 ProxyElement.update (package:flutter/src/widgets/framework.dart:5228:5)
#20 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
#21 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
#22 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
#23 ProxyElement.update (package:flutter/src/widgets/framework.dart:5228:5)
#24 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
#25 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:5904:32)
#26 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6460:17)
#27 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
#28 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
#29 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
#30 ProxyElement.update (package:flutter/src/widgets/framework.dart:5228:5)
#31 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
#32 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
#33 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5050:11)
#34 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
#35 StatefulElement.update (package:flutter/src/widgets/framework.dart:5082:5)
#36 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
#37 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
lohanidamodar#38 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5050:11)
lohanidamodar#39 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
lohanidamodar#40 StatefulElement.update (package:flutter/src/widgets/framework.dart:5082:5)
lohanidamodar#41 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#42 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
lohanidamodar#43 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
lohanidamodar#44 ProxyElement.update (package:flutter/src/widgets/framework.dart:5228:5)
lohanidamodar#45 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#46 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
CrossPT#47 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5050:11)
lohanidamodar#48 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
lohanidamodar#49 StatefulElement.update (package:flutter/src/widgets/framework.dart:5082:5)
lohanidamodar#50 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#51 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6307:14)
lohanidamodar#52 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#53 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
lohanidamodar#54 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
CrossPT#55 ProxyElement.update (package:flutter/src/widgets/framework.dart:5228:5)
lohanidamodar#56 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#57 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6307:14)
lohanidamodar#58 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#59 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
CrossPT#60 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5050:11)
lohanidamodar#61 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
lohanidamodar#62 StatefulElement.update (package:flutter/src/widgets/framework.dart:5082:5)
lohanidamodar#63 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#64 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
lohanidamodar#65 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5050:11)
lohanidamodar#66 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
lohanidamodar#67 StatefulElement.update (package:flutter/src/widgets/framework.dart:5082:5)
lohanidamodar#68 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#69 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
lohanidamodar#70 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
lohanidamodar#71 ProxyElement.update (package:flutter/src/widgets/framework.dart:5228:5)
lohanidamodar#72 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#73 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
lohanidamodar#74 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
lohanidamodar#75 ProxyElement.update (package:flutter/src/widgets/framework.dart:5228:5)
lohanidamodar#76 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#77 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
lohanidamodar#78 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
lohanidamodar#79 ProxyElement.update (package:flutter/src/widgets/framework.dart:5228:5)
lohanidamodar#80 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#81 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
lohanidamodar#82 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5050:11)
lohanidamodar#83 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
lohanidamodar#84 StatefulElement.update (package:flutter/src/widgets/framework.dart:5082:5)
lohanidamodar#85 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#86 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
lohanidamodar#87 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
lohanidamodar#88 ProxyElement.update (package:flutter/src/widgets/framework.dart:5228:5)
lohanidamodar#89 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#90 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
lohanidamodar#91 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5050:11)
lohanidamodar#92 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
lohanidamodar#93 StatefulElement.update (package:flutter/src/widgets/framework.dart:5082:5)
lohanidamodar#94 Element.updateChild (package:flutter/src/widgets/framework.dart:3570:15)
lohanidamodar#95 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4904:16)
lohanidamodar#96 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5050:11)
lohanidamodar#97 Element.rebuild (package:flutter/src/widgets/framework.dart:4604:5)
lohanidamodar#98 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2667:19)
lohanidamodar#99 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:882:21)
lohanidamodar#100 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:378:5)
lohanidamodar#101 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1175:15)
lohanidamodar#102 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1104:9)
lohanidamodar#103 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1015:5)
lohanidamodar#104 _rootRun (dart:async/zone.dart:1391:13)
lohanidamodar#105 _CustomZone.run (dart:async/zone.dart:1293:19)
lohanidamodar#106 _CustomZone.runGuarded (dart:async/zone.dart:1201:7)
lohanidamodar#107 _invoke (dart:ui/hooks.dart:150:10)
lohanidamodar#108 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:318:5)
lohanidamodar#109 _drawFrame (dart:ui/hooks.dart:115:31)
2023-08-16 17:29:46.157763+0800 Runner[52085:1657670] flutter: ---------------------

@choowx2002
Copy link
Author

Flutter 3.10.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 796c8ef792 (9 weeks ago) • 2023-06-13 15:51:02 -0700
Engine • revision 45f6e00911
Tools • Dart 3.0.5 • DevTools 2.23.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant