Bug#812149: retext: program crash

2016-02-04 Thread Dmitry Shachnev
Hi Erik,

On Wed, Feb 03, 2016 at 04:02:46PM -0800, Erik Haller wrote:
> script output:
> 
> erik@incense:~$ python3
> Python 3.5.1+ (default, Jan 13 2016, 15:09:18) 
> [GCC 5.3.1 20160101] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import enchant
> >>> enchant.Dict('en_US')._Dict__describe()
> ('en_US', 'myspell', 'Myspell Provider', 
> '/usr/lib/i386-linux-gnu/enchant/libenchant_myspell.so')
> 
> LANG=en_US.utf8 is set in my shell.

Thanks a lot, I managed to reproduce this bug and I've just uploaded a new
version that fixes it.

--
Dmitry Shachnev


signature.asc
Description: PGP signature


Bug#812149: retext: program crash

2016-02-03 Thread Erik Haller
​- Does this error happen every time you start ReText? Or only for some

*Yes. Happens everytime. No special documents.*

  special documents? (If the latter, can you attach one of them?)

- Did you configure ReText for custom language for spell checking?


*I did not configure any language setting. I enabled spell checking. ​I
​just discovered that it only crashes when spell checking is enabled.*

*​script output:*

*​Script started on Wed 03 Feb 2016 03:57:29 PM PST*
*erik@incense:~$ python3*
*Python 3.5.1+ (default, Jan 13 2016, 15:09:18) *
*[GCC 5.3.1 20160101] on linux*
*Type "help", "copyright", "credits" or "license" for more information.*
*>>> import enchant*
*>>> enchant.Dict('en_US')._Dict__describe()*
*('en_US', 'myspell', 'Myspell Provider',
'/usr/lib/i386-linux-gnu/enchant/libenchant_myspell.so')*
*>>> *
*erik@incense:~$ exit*

*Script done on Wed 03 Feb 2016 03:57:59 PM PST*


*​*
*LANG=en_US.utf8 is set in my shell.*

On Sat, Jan 30, 2016 at 2:27 AM, Dmitry Shachnev  wrote:

> Control: tags -1 +moreinfo
>
> Hi Erik,
>
> On Wed, Jan 20, 2016 at 05:32:44PM -0800, Erik wrote:
> > Ran: retext docs/api.md and received the below output:
> >
> > Traceback (most recent call last):
> >   File "/usr/share/retext/ReText/highlighter.py", line 129, in
> highlightBlock
> > if not self.dictionary.check(match.group(0)):
> >   File "/usr/lib/python3/dist-packages/enchant/__init__.py", line 634,
> in check
> > self._check_this()
> >   File "/usr/lib/python3/dist-packages/enchant/__init__.py", line 606,
> in _check_this
> > _EnchantObject._check_this(self,msg)
> >   File "/usr/lib/python3/dist-packages/enchant/__init__.py", line 176,
> in _check_this
> > raise Error(msg)
> > enchant.errors.Error: Dict unusable: the underlying C-library object has
> been freed.
>
> I cannot reproduce this error.
> Can you please provide me the following details:
>
> - Does this error happen every time you start ReText? Or only for some
>   special documents? (If the latter, can you attach one of them?)
>
> - Did you configure ReText for custom language for spell checking?
>
> - Can you please run python3 console and check what is the enchant provider
>   there? For example:
>
>   >>> import enchant
>   >>> enchant.Dict('en_US')._Dict__describe()
>   ('en_US', 'aspell', 'Aspell Provider',
> '/usr/lib/x86_64-linux-gnu/enchant/libenchant_aspell.so')
>
>   ... and paste all the output here.
>   If you are using a different language, replace en_US with code of that
> language.
>
> Thanks in advance,
>
> --
> Dmitry Shachnev
>


Processed: Re: Bug#812149: retext: program crash

2016-01-30 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 +moreinfo
Bug #812149 [retext] retext: program crash
Added tag(s) moreinfo.

-- 
812149: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812149
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#812149: retext: program crash

2016-01-30 Thread Dmitry Shachnev
Control: tags -1 +moreinfo

Hi Erik,

On Wed, Jan 20, 2016 at 05:32:44PM -0800, Erik wrote:
> Ran: retext docs/api.md and received the below output:
>
> Traceback (most recent call last):
>   File "/usr/share/retext/ReText/highlighter.py", line 129, in highlightBlock
> if not self.dictionary.check(match.group(0)):
>   File "/usr/lib/python3/dist-packages/enchant/__init__.py", line 634, in 
> check
> self._check_this()
>   File "/usr/lib/python3/dist-packages/enchant/__init__.py", line 606, in 
> _check_this
> _EnchantObject._check_this(self,msg)
>   File "/usr/lib/python3/dist-packages/enchant/__init__.py", line 176, in 
> _check_this
> raise Error(msg)
> enchant.errors.Error: Dict unusable: the underlying C-library object has been 
> freed.

I cannot reproduce this error.
Can you please provide me the following details:

- Does this error happen every time you start ReText? Or only for some
  special documents? (If the latter, can you attach one of them?)

- Did you configure ReText for custom language for spell checking?

- Can you please run python3 console and check what is the enchant provider
  there? For example:

  >>> import enchant
  >>> enchant.Dict('en_US')._Dict__describe()
  ('en_US', 'aspell', 'Aspell Provider', 
'/usr/lib/x86_64-linux-gnu/enchant/libenchant_aspell.so')

  ... and paste all the output here.
  If you are using a different language, replace en_US with code of that 
language.

Thanks in advance,

--
Dmitry Shachnev


signature.asc
Description: PGP signature


Bug#812149: retext: program crash

2016-01-20 Thread Erik
Package: retext
Version: 5.3.0-1
Severity: grave
Justification: renders package unusable

Ran: retext docs/api.md and received the below output:

Traceback (most recent call last):
  File "/usr/share/retext/ReText/highlighter.py", line 129, in highlightBlock
if not self.dictionary.check(match.group(0)):
  File "/usr/lib/python3/dist-packages/enchant/__init__.py", line 634, in check
self._check_this()
  File "/usr/lib/python3/dist-packages/enchant/__init__.py", line 606, in 
_check_this
_EnchantObject._check_this(self,msg)
  File "/usr/lib/python3/dist-packages/enchant/__init__.py", line 176, in 
_check_this
raise Error(msg)
enchant.errors.Error: Dict unusable: the underlying C-library object has been 
freed.

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 4.3.0-1-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages retext depends on:
ii  python3-docutils0.12+dfsg-1
ii  python3-enchant 1.6.6-2
ii  python3-markdown2.6.5-1
ii  python3-markups 1.0.1-1
ii  python3-pygments2.0.1+dfsg-2
ii  python3-pyqt5   5.5.1+dfsg-3+b1
ii  python3-pyqt5.qtwebkit  5.5.1+dfsg-3+b1
pn  python3:any 

Versions of packages retext recommends:
ii  docutils-common   0.12+dfsg-1
ii  shared-mime-info  1.5-2

retext suggests no packages.

-- no debconf information