• voteliners

    From paulie420@21:2/150 to xqtr on Sat Jan 6 19:48:48 2024
    Hey buddy... I just found an issue within voteliners; when I tab over to the USERES tab, I get:
    -----
    PYTHON ERROR (/home/x/mystic/themes/default/scripts/voteliner.mpy)░▒▒▒▒▓▓▓▓███▀
    File "/home/x/mystic/themes/default/scripts/voteliner.mpy", line 1011, in <mo dule>lie420····························2024.01.06···················32·······
    File "/home/x/mystic/themes/default/scripts/voteliner.mpy", line 961, in show liners
    done = showusers(window[0],window[1],window[2],window[3])
    File "/home/x/mystic/themes/default/scripts/voteliner.mpy", line 763, in show users
    updatebar()
    File "/home/x/mystic/themes/default/scripts/voteliner.mpy", line 729, in upda tebar
    y = (selbar * (y2-y1)) // (len(items)-1)
    ZeroDivisionError: integer division or modulo by zero
    -----
    First I thought this was the other thing where if you mess with the xqtr ANSI (last tab) it can crash if not XX amount of lines... but its doing so on the users tab. Any thoughts?? I have 1000+ users - what ya think??



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)
  • From xqtr@21:1/111 to paulie420 on Wed Jan 10 20:45:46 2024
    |16 y = (selbar * (y2-y1)) // (len(items)-1)|07 |16ZeroDivisionError: integer division or modulo by zero |07

    This means that the "items" list has one item, thus 1-1=0, so it produces the division by zero exception.

    The question is, why the items list has only one object... this maybe caused by numerous cause, with the most possible one, that the file containing the data, wasn't read and the items list is empty.

    I can't do more debugging, without more data/info... and i presume it's something happening in that particular system? I checked mine and it works. Did others have the same problem?

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

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From paulie420@21:2/150 to xqtr on Wed Jan 10 18:48:12 2024
    The question is, why the items list has only one object... this maybe caused by numerous cause, with the most possible one, that the file containing the data, wasn't read and the items list is empty.

    I can't do more debugging, without more data/info... and i presume it's something happening in that particular system? I checked mine and it works. Did others have the same problem?

    No others - however it's stopped happening and... it happened right AFTER I deleted all the fsx_dat.* files; then it happened again, but after removing the fsx_dat files a second time it fixed itself. So something was afoot in those data files; I don't know how it happened twice in succession.

    Thanks for your attempt.



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: 2o fOr beeRS bbs>>>20ForBeers.com:1337 (21:2/150)