• MSGREAD.MPY - Corrupted Mem. Error

    From xqtr@21:1/111 to All on Sun Feb 2 10:15:22 2020
    I am trying to make a new script in MPY, using the MSGREAD example, but when i try to run it, i always get this error:

    2020.02.02 12:10:43 MYSTIC 001 An error has occured: Corrupted memory (216)

    The test is under a A44 fresh install and also a A43. The script crashes, i think, when reaches the msg_seek(msg, 0) function.

    Can anyone else verify it? or is just me... :(

    thanx in advance :)

    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A43 2019/03/03 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From g00r00@21:1/108 to xqtr on Sun Feb 2 12:38:48 2020
    I am trying to make a new script in MPY, using the MSGREAD example, but when i try to run it, i always get this error:

    2020.02.02 12:10:43 MYSTIC 001 An error has occured: Corrupted memory (216)

    It might be related to this from the Wiki: http://wiki.mysticbbs.com/doku.php?id=python_install

    ----

    NOTE: Some Linux distributions come with a pre-installed Python 2.7 or a package-based install of Python 2.7 that is not compiled in a way that works properly with embedded Python applications.

    When Python is compiled wrong, it will have issues loading some modules resulting in an error when you execute the Mystic Python script. One of the most popular operating systems (Ubuntu) unfortunately seems to suffer from
    this problem, and the only way to solve it is to recompile Python 2.7
    properly. The enable-shared option is required for embedded applications, and also the unicode size may need to be either ucs2 or ucs4.

    The following steps can be used to reinstall Python 2.7 tested on a fresh Ubuntu 18.04 LTS:

    INSTALL PREREQUISITES:

    sudo apt-get update
    sudo apt-get install build-essential checkinstall
    sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

    COMPILE PYTHON:

    cd /usr/src
    sudo wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
    sudo tar xzf Python-2.7.15.tgz
    cd /usr/src/Python-2.7.15
    sudo ./configure -enable-optimizations -enable-unicode=ucs4 -enable-shared
    sudo make install

    --- Mystic BBS v1.12 A44 2020/02/01 (Linux/64)
    * Origin: Sector 7 (21:1/108)
  • From xqtr@21:1/111 to g00r00 on Mon Feb 3 12:29:54 2020
    It might be related to this from the Wiki: http://wiki.mysticbbs.com/doku.php?id=python_install


    i have done this. also in other scripts (mpy) i can use all sorts of python libs with no problem... either way i will do it again, just in case :) perhaps during an update on my system something went off. i also tried the script to
    my main board, so it has to be something with my setup.

    thanx for the help. :D

    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A43 2019/03/03 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From g00r00@21:1/108 to xqtr on Mon Feb 3 09:52:40 2020
    It might be related to this from the Wiki: http://wiki.mysticbbs.com/doku.php?id=python_install

    i have done this. also in other scripts (mpy) i can use all sorts of python libs with no problem... either way i will do it again, just in
    case :) perhaps during an update on my system something went off. i also tried the script to my main board, so it has to be something with my setup.

    I just tested the "msgread.mpy" that comes with Mystic and its working here with the latest builds. The error you're seeing is exactly the error I see when I don't recompile, but other than that I haven't seen the error before.

    What Linux distro are you using?

    --- Mystic BBS v1.12 A44 2020/02/02 (Linux/64)
    * Origin: Sector 7 (21:1/108)
  • From xqtr@21:1/101 to g00r00 on Tue Feb 4 04:06:26 2020
    I just tested the "msgread.mpy" that comes with Mystic and its working here with the latest builds. The error you're seeing is exactly the
    error I see when I don't recompile, but other than that I haven't seen
    the error before.
    What Linux distro are you using?

    Lubuntu 18.10


    :: Another Droid BBS
    :: Telnet : andr01d.zapto.org:9999
    :: Contact : xqtr@gmx.com

    --- Mystic BBS v1.12 A44 2020/02/02 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From xqtr@21:1/111 to g00r00 on Mon Feb 3 15:29:22 2020
    I just tested the "msgread.mpy" that comes with Mystic and its working here with the latest builds. The error you're seeing is exactly the
    error I see when I don't recompile, but other than that I haven't seen
    the error before.

    I recompiled python2.7 but no luck... :( i am testing the example script in my main board and it works... i am testing it in my other pc, with A43 and A44... and it doesn't :( both are fresh installs with just a few messages in the two bases that come with the installation.

    At least i know, that it's on my side :)

    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A43 2019/03/03 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From g00r00@21:1/108 to xqtr on Tue Feb 4 11:58:34 2020
    I recompiled python2.7 but no luck... :( i am testing the example script in my main board and it works... i am testing it in my other pc, with
    A43 and A44... and it doesn't :( both are fresh installs with just a few messages in the two bases that come with the installation.

    Did you adjust the "ucs2/4" setting? Try running this and see if it matches what you're compiling with:

    python -c "import sys; print('ucs2' if sys.maxunicode == 65535 else 'ucs4')"

    Also could it be possible you have multiple Python versions installed?

    I'm sorry if you already answered this but is this on a Pi?

    --- Mystic BBS v1.12 A44 2020/02/02 (Linux/64)
    * Origin: Sector 7 (21:1/108)
  • From xqtr@21:1/111 to g00r00 on Wed Feb 5 16:19:10 2020
    Did you adjust the "ucs2/4" setting? Try running this and see if it matches what you're compiling with:
    python -c "import sys; print('ucs2' if sys.maxunicode == 65535 else 'ucs4')"

    Python2 is compiled with UCS4, as written in the mystic wiki and also checked my version and it uses UCS4.

    Also could it be possible you have multiple Python versions installed?

    Perhaps... i currently have 2.7.15 and also 3.6 and 3.7 installed.

    I'm sorry if you already answered this but is this on a Pi?

    No, not on the Pi... actually on the Pi, the example script works fine. The problem is on my main computer, that runs Lubuntu 18.10.

    Thank you for your help. I'll figure it out. As long it's not a Mystic bug (which is not), i will find the way to make it work :)

    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A43 2019/03/03 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)