Page 1 of 1

Crash in Image Viewer

Posted: Mon Oct 10, 2016 11:03 am
by bromichaelhenry
Hello Tim,

Whenever I load up any/all images in the Image Viewer, the image loads but it shows an error message and I have to restart BA.

The error is:

Version: Bible Analyzer 5.0.4.15
Application Path: /home/bromichaelhenry
Modules Path: /home/bromichaelhenry/Documents/BibleAnalyzer
User Path: /home/bromichaelhenry/.config/bibleanalyzer
Current Ref: Rom 4:5
Current Bible: AV
Current Dict: Web-1828a
Current Comm: ExpDT
Current Word: A

Operating System: Linux 4.4.0-38-generic x86_64
System Architecture: 64bit x86_64
Frozen: False

#---- End System Information ----#


#---- Traceback Info ----#

*** Mon Oct 10 11:00:17 2016 ***
Traceback (most recent call last):
File "/opt/bibleanalyzer/ba-500.zip/imgViewer.py", line 572, in OnSelChanged
img = self.PilImageToWxImage(img)
File "/opt/bibleanalyzer/ba-500.zip/imgViewer.py", line 612, in PilImageToWxImage
myWxImage.SetData( myPilImage.convert( 'RGB' ).tostring() )
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 695, in tostring
"Please call tobytes() instead.")
Exception: tostring() has been removed. Please call tobytes() instead.

#---- End Traceback Info ----#


It looks like a problem with my Python, though I'm not for certain. Any suggestions?

Re: Crash in Image Viewer

Posted: Mon Oct 10, 2016 11:08 am
by Tim
Yes, that is a bug in the Python Imaging Library (PIL), not in Bible Analyzer. I may be able to make a work around when I get time.

Re: Crash in Image Viewer

Posted: Mon Oct 10, 2016 11:13 am
by bromichaelhenry
Can I upgrade the python used for BA?

Re: Crash in Image Viewer

Posted: Mon Oct 10, 2016 7:57 pm
by Tim
I fixed this issue and made a new deb which we officially released (5.0.5). It is available here,
www.bibleanalyzer.com/bibleanalyzer_5.0-5_all.deb

This is also available from our main download page.

Re: Crash in Image Viewer

Posted: Mon Oct 10, 2016 9:19 pm
by darrel_jw
Hi Tim,
Thanks! That resolved error. It now displays each location nicely. Since this is 5.05 does that mean it incorporates the changes in the windows 5.05 version or am I "jumping the gun" on that one?

Darrel

Re: Crash in Image Viewer

Posted: Mon Oct 10, 2016 9:34 pm
by Tim
There may be a few things different from the v5.0 Windows edition, but it is essentially the same. Remember, this is v5.0. The windows edition is now 5.1. They are different.

Re: Crash in Image Viewer

Posted: Mon Oct 10, 2016 10:35 pm
by darrel_jw
I understand, but I do appreciate your moving the Linux version forward as you are. Thank you!

Re: Crash in Image Viewer

Posted: Tue Oct 11, 2016 1:05 am
by bromichaelhenry
Thank you Bro. Tim, I downloaded the new version and it worked perfectly. One thing you might need to mention on the website is that on Mint 18, in order to play midi files, the package vlc-fluidsynth-plugin needs to be installed so Mint will support playback of Midi files from music players/programs.

And to repeat what Darrel said, thank you for supporting Linux. This truly is the best native Bible study program on Linux and is the only one I use. I used to work on Ubuntu Christian Edition and have looked/used every native Bible software available. This is bar none the best.

In the Messiah's Name