I'm not sure why the maximum value would be big enough to overflow a signed
int. Maybe it's a 32 bit int in the Android client, so when it's syncing
really large files for example (>2gb?) it could trigger this overflow since
it uses the total size of the files as the range for the progress bar (
https://github.com/mnemosyne-proj/mnemosyne/blob/8c1db97f33b468b90683ae881b87e2736e496741/openSM2sync/client.py#L584
).
Instead it might be better to keep track of the downloaded ratio as a
percentage and set the maximum range of the progress bar to 100.


On Tue, 23 Nov 2021, 13:36 mateusz, <[email protected]> wrote:

> I tried once more:
>
> - reinstalled app
> - deleted default.db_media/_latex folder
>
> Still failed with
>
> https://user-images.githubusercontent.com/899988/141748994-685cbd29-5389-4e48-9d4e-ae42c236e5ca.png
>
> Looking at
>
> https://github.com/mnemosyne-proj/mnemosyne/blob/8c1db97f33b468b90683ae881b87e2736e496741/mnemosyne/android_python/main_widget.py#L43
> it seems to be crash in interface, so maybe I should try compiling my
> own app with this commented out?
>
> On Tue, 23 Nov 2021 13:46:58 +0100
> Peter Bienstman <[email protected]> wrote:
>
> > Indeed.
> >
> > On Tue, Nov 23, 2021 at 1:46 PM mateusz <[email protected]> wrote:
> >
> > > So I should delete entire default.db_media/_latex folder, right?
> > >
> > > On Mon, 15 Nov 2021 12:10:14 +0100
> > > Peter Bienstman <[email protected]> wrote:
> > >
> > > > What you can do is delete the pregenerated latex files on the
> > > > server. They should be inside your Mnemosyne data directory (see
> > > > here on where to find it
> > > > https://mnemosyne-proj.org/help/backups.php) in a directory
> > > > default.db_media/latex (make sure not to delete the rest, though!)
> > > >
> > > > Peter
> > > >
> > > > On Mon, Nov 15, 2021 at 12:07 PM Mateusz Konieczny
> > > > <[email protected]> wrote:
> > > >
> > > > > I already tried it (via deleting app data0. I now reinstalled
> > > > > app, the same error appears.
> > > > >
> > > > > Is it possible that corrupted data is on PC? How can I reset
> > > > > sync data on the computer? No other devices are syncing, so
> > > > > fully clearing sync data is fine.
> > > > >
> > > > > On Monday, November 15, 2021 at 9:50:04 AM UTC+1 Peter Bienstman
> > > > > wrote:
> > > > >> Depending on your Android version, either delete
> > > > >> /sdcard/Mnemosyne and/or uninstall mnemosyne. That way you can
> > > > >> start from scratch. Don't interrupt the sync server when it's
> > > > >> processing the latex media files.
> > > > >>
> > > > >> Peter
> > > > >>
> > > > >> On Mon, Nov 15, 2021 at 9:45 AM Mateusz Konieczny
> > > > >> <[email protected]> wrote:
> > > > >>
> > > > >>> I have run into the first sync taking forever (which I
> > > > >>> reported as
> > > > >>> https://github.com/mnemosyne-proj/mnemosyne/issues/206 ).
> > > > >>>
> > > > >>> So I stopped mnemosyne to start it in a command line, because
> > > > >>> I wanted to see
> > > > >>> its stdout/stderr.
> > > > >>>
> > > > >>> But now mnemosyne sync fails with "signed integer greater than
> > > > >>> maximum".
> > > > >>>
> > > > >>>
> > > > >>>
> > >
> https://user-images.githubusercontent.com/899988/141748994-685cbd29-5389-4e48-9d4e-ae42c236e5ca.png
> > >
> > > > >>> (sorry for image of text but error popup has unselectable
> > > > >>> text).
> > > > >>>
> > > > >>> How can I reset sync data to start from scratch?
> > > > >>>
> > > > >>> I looked at https://mnemosyne-proj.org/help/syncing
> > > > >>> I searched for this specific error and have not found
> > > > >>> anything. I searched for how to reset sync server
> > > > >>>
> https://duckduckgo.com/?t=ffsb&q=reset+menmosyne+sync+server&ia=web
> > > > >>>
> > > > >>> --
> > > > >>> You received this message because you are subscribed to the
> > > > >>> Google Groups "mnemosyne-proj-users" group.
> > > > >>> To unsubscribe from this group and stop receiving emails from
> > > > >>> it, send an email to [email protected].
> > > > >>> To view this discussion on the web visit
> > > > >>>
> > >
> https://groups.google.com/d/msgid/mnemosyne-proj-users/ffeb107a-2ac4-4f05-be32-3a8f8ff123a8n%40googlegroups.com
> > >
> > > > >>> <
> > >
> https://groups.google.com/d/msgid/mnemosyne-proj-users/ffeb107a-2ac4-4f05-be32-3a8f8ff123a8n%40googlegroups.com?utm_medium=email&utm_source=footer
> > >
> > > >
> > > > >>> .
> > > > >>>
> > > > >> --
> > > > > You received this message because you are subscribed to the
> > > > > Google Groups "mnemosyne-proj-users" group.
> > > > > To unsubscribe from this group and stop receiving emails from
> > > > > it, send an email to
> > > > > [email protected]. To view this
> > > > > discussion on the web visit
> > >
> https://groups.google.com/d/msgid/mnemosyne-proj-users/882e0276-58e3-4884-b803-c9c097523121n%40googlegroups.com
> > >
> > > > > <
> > >
> https://groups.google.com/d/msgid/mnemosyne-proj-users/882e0276-58e3-4884-b803-c9c097523121n%40googlegroups.com?utm_medium=email&utm_source=footer
> > >
> > > >
> > > > > .
> > > > >
> > > >
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "mnemosyne-proj-users" group.
> > > To unsubscribe from this group and stop receiving emails from it,
> > > send an email to [email protected].
> > > To view this discussion on the web visit
> > >
> https://groups.google.com/d/msgid/mnemosyne-proj-users/20211123134352.3d197f34%40grima
> > > .
> > >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/20211123141338.6b10c3d9%40grima
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mnemosyne-proj-users/CAO-0pXBJUQb5JAnYn5CUSxtFf0BELM-BUFESH-vSY5gfd_W3zQ%40mail.gmail.com.

Reply via email to