Bug#1041435: bitsnpicas: unusable, chokes with nullptr exception

Nilesh Patra nilesh at debian.org
Tue Jul 18 20:48:31 BST 2023


Package: bitsnpicas
Version: 2.0+ds-1
Severity: serious
X-Debbugs-Cc: tar at debian.org

Dear Maintainer,

bitsnpicas is currently unusable and chokes with:

$ bitsnpicas
Exception in thread "main" java.lang.NullPointerException
        at java.base/java.io.Reader.<init>(Reader.java:168)
        at java.base/java.io.InputStreamReader.<init>(InputStreamReader.java:76)
        at java.base/java.util.Scanner.<init>(Scanner.java:566)
        at com.kreative.unicode.data.Encoding.<init>(Encoding.java:26)
        at com.kreative.unicode.data.EncodingList.<init>(EncodingList.java:58)
        at com.kreative.unicode.data.EncodingList.instance(EncodingList.java:20)
        at com.kreative.bitsnpicas.edit.GlyphListModelList$GlyphListModelRootNode.<init>(GlyphListModelList.java:93)
        at com.kreative.bitsnpicas.edit.GlyphListModelList.<init>(GlyphListModelList.java:29)
        at com.kreative.bitsnpicas.edit.GlyphListPanel.<init>(GlyphListPanel.java:34)
        at com.kreative.bitsnpicas.edit.BitmapListFrame.<init>(BitmapListFrame.java:19)
        at com.kreative.bitsnpicas.edit.Main.openFont(Main.java:158)
        at com.kreative.bitsnpicas.edit.Main.newBitmapFont(Main.java:71)
        at com.kreative.bitsnpicas.edit.Main.main(Main.java:55)
        at com.kreative.bitsnpicas.main.Main.main(Main.java:12)

This is because of the exclusion of following files w/o patching the
code properly

 main/java/BitsNPicas/src/com/kreative/unicode/mappings/Mac*.txt
 main/java/BitsNPicas/src/com/kreative/unicode/mappings/Windows*.txt
 main/java/BitsNPicas/src/com/kreative/unicode/mappings/IBM*.txt

I applied a patch trying to exclude unicodes and can get it to a usable state. The patch is
attached with this bug report. However, even after being able to launch
the menu, I see windows and IBM related unicode options in the menu. I
did not dive deep into the code, but it could be stemming from

main/java/BitsNPicas/src/com/kreative/unicode/data/unidata.ucd

In which case the unicode bin itself contains non-free content and needs
fixing accordingly.

Thanks,
Nilesh

-- System Information:
Debian Release: 12.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_IN, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US.UTF-8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages bitsnpicas depends on:
ii  xdg-utils  1.1.3-4.1

bitsnpicas recommends no packages.

bitsnpicas suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exclude-unicode.patch
Type: text/x-diff
Size: 17300 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20230719/d2d57985/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20230719/d2d57985/attachment-0001.sig>


More information about the pkg-java-maintainers mailing list