Jump to content


Photo

Mobile PdfFrame Pan / Zoom random errors ?

PDF

  • Please log in to reply
8 replies to this topic

#1 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 200 posts
  • LocationMelbourne Australia

Posted 09 January 2018 - 09:10 AM

I am using the Mobile PdfFrame and when displaying a PDF file containing an image of approx 800 x 800..1600 I get random errors during panning and zooming:-

 

"webkit error"

 

"a problem repeatedly occurred"

 

"error encountered"

 

etc.

 

In all occasions it takes out the current session. Sometimes it shows in safari as a warning that the site is faulty. 

 

Please advise how to resolve.

 

To test simply build a similar PDF and pan and zoom on iPhone.

Attached Files


  • 0

Andy


#2 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 200 posts
  • LocationMelbourne Australia

Posted 09 January 2018 - 07:58 PM

It makes no difference whether it is one page of text, one page of image, many pages of text or many pages of images.

 

Platform: iPhoneX, iOS 11.2.1, Safari

 

I have seen the same problem on Android (I will endeavor to get version).


  • 0

Andy


#3 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3885 posts

Posted 10 January 2018 - 06:28 AM

Hi,

Please, can you make a simple testcase for this?!

Best regards,
  • 0

#4 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 200 posts
  • LocationMelbourne Australia

Posted 10 January 2018 - 10:49 AM

As mentioned, it is not code specific nor pdf specific, knock up any mobile PdfFrame and load any PDF file and zoom / pan all over the place and it will crash.


  • 0

Andy


#5 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3885 posts

Posted 10 January 2018 - 11:02 AM

Hi,

 

I have seen the same problem on Android (I will endeavor to get version).

 

I couldn't reproduce this issue


  • 0

#6 Nigel602

Nigel602

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 54 posts

Posted 14 January 2018 - 09:56 AM

I don't know if this helps, but I get the same error when i rotate the device whilst viewing a pdf. I am currently using an iPad.

It seems it's only reproducible if you rotate while the pdf is loading from a previous rotate.

This is using the demo code, so i guess is it's something to do with the onshow event, as this is when the pdf is loaded for some reason. I'm going to swap this out to load the pdf on form create to see if it helps.

Sent from my Pixel using Tapatalk
  • 0

#7 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 200 posts
  • LocationMelbourne Australia

Posted 14 January 2018 - 07:08 PM

On iPhone it happens without rotating but is related to zooming and panning.

 

 

Attached Files


  • 0

Andy


#8 Nigel602

Nigel602

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 54 posts

Posted 16 January 2018 - 08:32 PM

I have tried but I can't pin point the issue. It happens often enough that it will cause a real issue for my customers.
Any ideas?

Sent from my Pixel using Tapatalk
  • 0

#9 andyhill

andyhill

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 200 posts
  • LocationMelbourne Australia

Posted 16 January 2018 - 10:05 PM

Is it possible that a Zoom event is interrupted by a Pan event (or visa versa), in other words there is no logic to prevent re-entry while executing ?


  • 0

Andy






Also tagged with one or more of these keywords: PDF

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users