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

Unhandled Exception: MissingPluginException(No implementation found for method getPage on channel flutter_plugin_pdf_viewer) #102

Open
sreenivassreeee opened this issue Mar 24, 2022 · 7 comments

Comments

@sreenivassreeee
Copy link

Shutting down VM
E/AndroidRuntime(16749): FATAL EXCEPTION: main
E/AndroidRuntime(16749): Process: com.edvoy.mdev, PID: 16749
E/AndroidRuntime(16749): java.lang.IllegalStateException: Reply already submitted
E/AndroidRuntime(16749): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:431)
E/AndroidRuntime(16749): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:267)
E/AndroidRuntime(16749): at pt.tribeiro.flutter_plugin_pdf_viewer.FlutterPluginPdfViewerPlugin$1$2.run(FlutterPluginPdfViewerPlugin.java:92)
E/AndroidRuntime(16749): at android.os.Handler.handleCallback(Handler.java:790)
E/AndroidRuntime(16749): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(16749): at android.os.Looper.loop(Looper.java:164)
E/AndroidRuntime(16749): at android.app.ActivityThread.main(ActivityThread.java:6494)
E/AndroidRuntime(16749): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(16749): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
E/AndroidRuntime(16749): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
E/flutter (16749): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method getPage on channel flutter_plugin_pdf_viewer)
E/flutter (16749): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7)
E/flutter (16749):
E/flutter (16749): #1 PDFDocument.get (package:advance_pdf_viewer/src/document.dart:97:18)
E/flutter (16749):
E/flutter (16749): #2 _PDFViewerState._loadPage (package:advance_pdf_viewer/src/viewer.dart:151:18)
E/flutter (16749):
E/flutter (16749):

flutter doctor
(base) ITs-MacBook-Pro-2:~ sreenivas$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.3, on macOS 12.3 21E230 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.65.2)
[✓] VS Code (version 1.63.2)
[✓] Connected device (3 available)
! Error: Sreenivas’s 13 Mini is not connected. Xcode will continue when Sreenivas’s 13 Mini is connected. (code -13)
[✓] HTTP Host Availability

• No issues found!
(base) ITs-MacBook-Pro-2:~ sreenivas$

its happening in android please check and update.

@Relik77
Copy link

Relik77 commented May 3, 2022

Hi,
I have the same error. Still no solution ?

@jeyremy
Copy link

jeyremy commented May 31, 2022

same here di anyone found what's causing this ??

@DanielSalinas09
Copy link

Hello, I have the same error, have you found any solution?

@ManjunathVMK
Copy link

Facing the same issue :->>>
java.lang.IllegalStateException: Already closed
W/System.err(30348): at android.graphics.pdf.PdfRenderer.throwIfClosed(PdfRenderer.java:270)
W/System.err(30348): at android.graphics.pdf.PdfRenderer.close(PdfRenderer.java:187)
W/System.err(30348): at pt.tribeiro.flutter_plugin_pdf_viewer.FlutterPluginPdfViewerPlugin.getPage(FlutterPluginPdfViewerPlugin.java:206)
W/System.err(30348): at pt.tribeiro.flutter_plugin_pdf_viewer.FlutterPluginPdfViewerPlugin.access$100(FlutterPluginPdfViewerPlugin.java:31)
W/System.err(30348): at pt.tribeiro.flutter_plugin_pdf_viewer.FlutterPluginPdfViewerPlugin$1.run(FlutterPluginPdfViewerPlugin.java:84)
W/System.err(30348): at android.os.Handler.handleCallback(Handler.java:883)
W/System.err(30348): at android.os.Handler.dispatchMessage(Handler.java:100)
W/System.err(30348): at android.os.Looper.loop(Looper.java:214)
W/System.err(30348): at android.os.HandlerThread.run(HandlerThread.java:67)

@Syscomp-Software
Copy link

Hello, I have the same error, have you found any solution?

@Relik77
Copy link

Relik77 commented Aug 31, 2022

Hello,

On my side I did not find a solution with this plugin, but in another project I used syncfusion_flutter_pdfviewer which seems to work (for a web app in my case, need to test if it is also the case for Android / iOS because I have not yet had the need to generate the mobile version of this project)

@simonyang81
Copy link

Hello, I have the same error, have you found any solution?

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

7 participants