You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2022/12/28 21:08:35 UTC

[Bug 66404] New: invoking an implementation of WorkBook crashes in android project when proguard / r8 is enabled

https://bz.apache.org/bugzilla/show_bug.cgi?id=66404

            Bug ID: 66404
           Summary: invoking an implementation of WorkBook crashes in
                    android project when proguard / r8 is enabled
           Product: POI
           Version: unspecified
          Hardware: Other
                OS: other
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: asiimwedismas@gmail.com
  Target Milestone: ---

Created attachment 38456
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38456&action=edit
crash report

You will forgive me if this is the wrong place to post this. 

So I have the latest dependency of poi-ooxml in an android project, it works
well until I minifiy the code with r8, then it crashed with the attached
message. When I have put a break point just above the point where that crash is
originating from  and found the method causing it only gets called when r8 is
on and never called when its off... but r8 only removes code that is never
reached. So I decided to instruct r8 not to touch the offending classes but
that doesn't help.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 66404] invoking an implementation of WorkBook crashes in android project when proguard / r8 is enabled

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66404

--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
Please take a look at https://github.com/centic9/poi-on-android
It provides a complete sample project and contains some more necessary
workarounds that seem necessary to use Apache POI on Android successfully.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 66404] invoking an implementation of WorkBook crashes in android project when proguard / r8 is enabled

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66404

Axel Howind <ax...@dua3.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INFORMATIONPROVIDED
             Status|NEW                         |RESOLVED

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 66404] invoking an implementation of WorkBook crashes in android project when proguard / r8 is enabled

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66404

--- Comment #1 from Axel Howind <ax...@dua3.com> ---
It looks like proguard removes ressources needed by POI. It should be possible
to configure Proguard not to remove these ressources, but how to do this is
something you should ask the people at proguard. Alternatively I think you
might get helpful advice on this problem when you ask on stackoverflow. Make
sure to provide the correct tags for Proguard/r8.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org