kiwix / java-libkiwix

Libkiwix binding for Java & Kotlin
https://central.sonatype.com/artifact/org.kiwix/libkiwix
GNU General Public License v3.0
3 stars 4 forks source link

`Illustration.getData()` does not provide the `Illustration` for book. #73

Closed MohitMaliFtechiz closed 1 year ago

MohitMaliFtechiz commented 1 year ago

We have an functionality to writing/reading library in a file. https://github.com/kiwix/java-libkiwix/blob/f9dc43e17700568143ef24edd7ca30fc8ea711be/lib/src/main/java/org/kiwix/libkiwix/Library.java#L44

https://github.com/kiwix/java-libkiwix/blob/f9dc43e17700568143ef24edd7ca30fc8ea711be/lib/src/main/java/org/kiwix/libkiwix/Manager.java#L32

The library has the book objects and it has an illustration for the book, but when I try to get the Illustration.getData() from the book object it is giving an error.

pid: 19731, tid: 19772, name: RxCachedThreadS  >>> org.kiwix.kiwixmobile <<<
A        #10 pc 000000000001f0f4  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/base.apk!libkiwix_wrapper.so (Java_org_kiwix_libkiwix_Illustration_getData+156) (BuildId: d509aa2e940c165a50d156c0469c5234d4108a96)
A        #17 pc 0000000000009e46  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks.getBookmarksList+538)
A        #23 pc 0000000000009a7a  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks.access$getBookmarksList+18)
A        #26 pc 0000000000008fd0  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks$bookmarkListBehaviour$2.invoke+12)
A        #32 pc 0000000000009000  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks$bookmarkListBehaviour$2.invoke+8)
A        #37 pc 000000000078369a  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (kotlin.SynchronizedLazyImpl.getValue+80)
A        #43 pc 0000000000009924  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks.getBookmarkListBehaviour+12)
A        #49 pc 000000000000a8c6  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks.flowableBookmarkList$lambda-19+38)
A        #52 pc 000000000000a2d8  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks.$r8$lambda$cGKTklQTmUYsuOCbDLX4HqreYBg+0)
A        #55 pc 0000000000008dc8  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks$$ExternalSyntheticLambda4.subscribe+4)
A        #60 pc 00000000006dff4e  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.internal.operators.flowable.FlowableCreate.subscribeActual+146)
A        #65 pc 00000000006b5f66  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.Flowable.subscribe+62)
A        #70 pc 00000000006f0eb8  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.internal.operators.flowable.FlowableMap.subscribeActual+78)
2023-11-03 18:48:49.336 19925-19925 DEBUG                   pid-19925                           pid: 19731, tid: 19772, name: RxCachedThreadS  >>> org.kiwix.kiwixmobile <<<
A        #10 pc 000000000001f0f4  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/base.apk!libkiwix_wrapper.so (Java_org_kiwix_libkiwix_Illustration_getData+156) (BuildId: d509aa2e940c165a50d156c0469c5234d4108a96)
A        #17 pc 0000000000009e46  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks.getBookmarksList+538)
A        #23 pc 0000000000009a7a  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks.access$getBookmarksList+18)
A        #26 pc 0000000000008fd0  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks$bookmarkListBehaviour$2.invoke+12)
A        #32 pc 0000000000009000  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks$bookmarkListBehaviour$2.invoke+8)
A        #37 pc 000000000078369a  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (kotlin.SynchronizedLazyImpl.getValue+80)
A        #43 pc 0000000000009924  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks.getBookmarkListBehaviour+12)
A        #49 pc 000000000000a8c6  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks.flowableBookmarkList$lambda-19+38)
A        #52 pc 000000000000a2d8  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks.$r8$lambda$cGKTklQTmUYsuOCbDLX4HqreYBg+0)
A        #55 pc 0000000000008dc8  /data/data/org.kiwix.kiwixmobile/code_cache/.overlay/base.apk/classes2.dex (org.kiwix.kiwixmobile.core.dao.LibkiwixBookmarks$$ExternalSyntheticLambda4.subscribe+4)
A        #60 pc 00000000006dff4e  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.internal.operators.flowable.FlowableCreate.subscribeActual+146)
A        #65 pc 00000000006b5f66  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.Flowable.subscribe+62)
A        #70 pc 00000000006f0eb8  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.internal.operators.flowable.FlowableMap.subscribeActual+78)
A        #75 pc 00000000006b5f66  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.Flowable.subscribe+62)
A        #80 pc 00000000006b6002  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.Flowable.subscribe+32)
A        #85 pc 000000000070217a  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.internal.operators.flowable.FlowableSubscribeOn$SubscribeOnSubscriber.run+40)
A        #90 pc 000000000075ed84  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.internal.schedulers.ScheduledRunnable.run+40)
A        #95 pc 000000000075eb60  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.internal.schedulers.ScheduledRunnable.call+8)
A        #75 pc 00000000006b5f66  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.Flowable.subscribe+62)
A        #80 pc 00000000006b6002  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.Flowable.subscribe+32)
A        #85 pc 000000000070217a  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.internal.operators.flowable.FlowableSubscribeOn$SubscribeOnSubscriber.run+40)
A        #90 pc 000000000075ed84  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.internal.schedulers.ScheduledRunnable.run+40)
A        #95 pc 000000000075eb60  /data/app/~~zahB8XNGeTaxc8wT7PQJQg==/org.kiwix.kiwixmobile-VznQm-J2n72KVceDytHSPA==/oat/arm64/base.vdex (io.reactivex.internal.schedulers.ScheduledRunnable.call+8)

Library content is:

<library version="20110515">
<book id="78603798-2235-9c50-24ae-3fdaf25ee355" path="../wikipedia_af_all_maxi_2023-09.zim" title="Wikipedia" description="aflyn weergawe van Wikipedia in Afrikaans" language="afr" creator="Wikipedia" publisher="Kiwix" name="wikipedia_af_all" flavour="maxi" tags="wikipedia;_category:wikipedia;_pictures:yes;_videos:no;_details:yes;_ftindex:yes" faviconMimeType="text/plain" favicon="iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAARQklEQVR4nO1ZeWyb93lm2qEbumDZihXdOgz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vUGjY8jU1KlY5wD3xSWllJtX1J+Wlv2Xkqe5srOzf9tisSQ7HH230PZxdgPViKNARBYUaLF08mctrW1kMjVRuxlyoJF0eiMZjI2CNFBr2BE1DqnqwTY4aSvlWVcqTb51/gPpRalU+kXJr2pZrdYXurttyp4e+yYG8I5OK8OitlZJl+TFVFJymSoqqujM6TMcdUiDpuZWxjoMx3CCguWT5koFpcsy6fyFi5uyzJw6ubzshV+Z4Z/kiNXanW02d/gBCTih0xk44uiiWnHrDJwBRByGVytqeZdVVAE2/kJ5cbZCpfq/M/ynl06ne1av17+kM5guqLW6Nq3OMKvTG9e1OsPWpeLLDy9eTH5YWHRpq6ZOtaaoqfWVlle0XiopvXC5ouKl4uLiZyX/3xZ+PVEoFH9QW1v7NaVS843SqqpvlJYq/ryiouIrRUVFv/nrtu+zJXnK638AM6p7hAbGBRoAAAAASUVORK5CYII=" date="2023-09-02" articleCount="110800" mediaCount="145624" size="1465527"/>
</library>

More reference https://github.com/kiwix/kiwix-android/pull/3474#issuecomment-1792429443

MohitMaliFtechiz commented 1 year ago

@mgautierfr Before releasing the new java-libkiwix by any chance we could fix this? As of now, As a hack, I am creating the archive object from filePath given by the book and I am taking the illustration from that object.

It would be better to fix this before releasing the new java-libkiwix.

MohitMaliFtechiz commented 1 year ago

@mgautierfr It has the Illustration in book

Get illustration from book: Illustration = org.kiwix.libkiwix.Illustration@d75d52

This is the proper error when we try to get the data from Illustration.

java_vm_ext.cc:579] JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte 0x89
java_vm_ext.cc:579]     string: '?PNG
java_vm_ext.cc:579] 
java_vm_ext.cc:579] '
java_vm_ext.cc:579]     input: '<0x89> 0x50 0x4e 0x47 0x0d 0x0a 0x1a 0x0a'
java_vm_ext.cc:579]     in call to NewStringUTF
java_vm_ext.cc:579]     from java.lang.String org.kiwix.libkiwix.Illustration.getData()