flutter_pdfview icon indicating copy to clipboard operation
flutter_pdfview copied to clipboard

Plugin shows blank screen on loading pdf

Open terminaro opened this issue 1 year ago • 5 comments

I had no problem on older flutter versions but i get following errors recently after upgrading to latest flutter and using flutter_pdfview 1.3.2: 2 D/EGL_emulation( 9271): eglMakeCurrent: 0x7ffa2747c460: ver 3 1 (tinfo 0x7ffa27418560) W/OpenGLRenderer( 9271): dequeueBuffer failed, error = -110; switching to fallback 2 D/EGL_emulation( 9271): eglMakeCurrent: 0x7ffa2747c460: ver 3 1 (tinfo 0x7ffa27418560) W/OpenGLRenderer( 9271): reserveNext failed, error = -2147483648 (Unknown error -2147483648) D/EGL_emulation( 9271): eglMakeCurrent: 0x7ffa2747c460: ver 3 1 (tinfo 0x7ffa27418560) I/chatty ( 9271): uid=10146(ir.dbook.app) RenderThread identical 6 lines D/EGL_emulation( 9271): eglMakeCurrent: 0x7ffa2747c460: ver 3 1 (tinfo 0x7ffa27418560)

terminaro avatar Jan 02 '25 15:01 terminaro

Consider that i run in debug mode with --no-enable-impeller and it works fine while not using it. there is performance issues with vulkan and i don't know what is the problem with --no-enable-impeller!?

terminaro avatar Jan 02 '25 16:01 terminaro

I'm also encountering this issue. Sometimes the pdf shows blank upon opening it on the pdf viewer, but if I interact with the viewer, it loads and works fine after that.

It's annoying because if there's no interaction, it stays blank.

It doesn't happen everytime though, but most of the time.

adriano-silva avatar Jan 20 '25 12:01 adriano-silva

Same issue, Does anyone have any idea on how to solve this?

BechirAhmed avatar Jan 28 '25 18:01 BechirAhmed

temporary solution @override void initState() { // TODO: implement initState super.initState(); Timer(const Duration(seconds:1), () { setState(() { print("reload hahahaha"); }); }); }

MostafaSlaam avatar Feb 10 '25 15:02 MostafaSlaam

I encountered the same problem. My app used PDF in two places. The first place had no problem, but the second place kept encountering this problem.

wangya123456789 avatar Feb 17 '25 05:02 wangya123456789