Bug 111549 - Add support for Netpbm formats (.pbm, .pgm )
Summary: Add support for Netpbm formats (.pbm, .pgm )
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: ARM Android
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (Android)-Unsupported-formats
  Show dependency treegraph
 
Reported: 2017-08-09 05:27 UTC by vihsa
Modified: 2023-01-17 12:28 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vihsa 2017-08-09 05:27:46 UTC
Description:
Netpbm format .pbm, .pgm files either crashes or unable to open on libreoffice viewer 5.0, 5.1, 5.2, 5.3 alpha versions

Steps to Reproduce:
download and open 
fool.ascii.pbm http://people.sc.fsu.edu/%7Ejburkardt/data/pbma/pbma.html
saturn.ascii.pgm http://people.sc.fsu.edu/%7Ejburkardt/data/pgma/pgma.html

Actual Results:  
in endless loop

Expected Results:
open file

fileopen test result:

5.0.0.0.alpha1+-ab465b9 crash
5.1.0.0.alpha1+-1a6ec13 endless loop / cannot open file
5.1.0.0.alpha1+-5b791ec endless loop / cannot open file
5.2.0.0.alpha0+-f6a74ce endless loop / cannot open file
5.3.0.0.alpha1+-4136757 endless loop / cannot open file

os: android 5.1
device: lyf flame 3 [ ls-4001 ]

for other file formats or files https://github.com/kr1shnas/qa/projects/25



Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Android 5.1; Mobile; rv:57.0) Gecko/57.0 Firefox/57.0
Comment 1 Michael Weghorn 2023-01-17 12:28:54 UTC
Is this issue still relevant?
Supporting more file formats presumably also means that the size of the APK will increase (due to more services that will have to be included), so I tend to suggest focusing on those that are particularly relevant.

In addition, the mechanism to open a file in Android Viewer currently depends on the Android system identifying the proper MIME type, which probably isn't the case for most of the proprietary and not so frequently used file types. (So supporting these might need some "open any file, ignore file type" handling instead (possibly hidden behind a setting?).)