-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anki crashes everytime i sync #4691
Comments
Update : I have formatted my phone and installed Android 8.0 and i can confirm the issue is still there. |
We don't have any crash reports for that UUID. Uninstalling / reinstalling
the app will change your UUID... Can you please reproduce the problem and
confirm you provided your current UUID?
…On Thu, Sep 7, 2017 at 9:04 PM, Vaanen ***@***.***> wrote:
Update : I have formatted my phone and installed Android 8.0 and i can
confirm the issue is still there.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4691 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACsA4rnM4gJ0FKg2IcxLoNlCXVS-jzWpks5sf9u8gaJpZM4PGWoK>
.
|
Can you send me your collection?
peceptualchaos2, gmail
…On Tue, Sep 12, 2017 at 6:02 AM, Vaanen ***@***.***> wrote:
https://imgur.com/EWRp7rW <http://url>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4691 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACsA4po9zRhuasqpvuqJpXL_Qgo8kiQ4ks5shZ_pgaJpZM4PGWoK>
.
|
surez it's pretty big so i'll probably have to upload it somewhere |
Hello, i tried to send an email, but it said such adress didnt exist ? i added @gmail.com to what you wrote |
Did you receive it ? I see it's still "awaiting for feedback", i tried to send it to "perceptual" and not "peceptual", maybe the r was the typo. in any case, it's here https://drive.google.com/file/d/0B2BMxLA7EzgBN01yNktVTVRVZFk/view?usp=drivesdk |
GM... I started experiencing the same prob 2 days ago on my Android devices. Can u pls help? |
Hi, I've had the same problem for at least the last 4 months, maybe longer. AnkiDroid Version = 2.8.2 Android Version = 8.0.0 ACRA UUID = f517a5ec-65aa-4cb3-b5c5-346d967c84b6 |
Hi, I see this issue is still waiting on feedback. I've been experiencing these crashes too and am willing to give all the feedback you need to solve it. |
Well, they're supposed to wait for my feedback, but i've given them what
they asked months ago
…On Dec 7, 2017 09:51, "Brambo27" ***@***.***> wrote:
Hi, I see this issue is still waiting on feedback. I've been experiencing
these crashes too and am willing to give all the feedback you need to solve
it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4691 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYw96AX2N8PqIcwnUL4qo6DK56rGa4EVks5s96cbgaJpZM4PGWoK>
.
|
@Vaanen |
Well the issue is that the email you gave me returns a failure to send
message, i think there's a typo somewhere. can you give it to me again ?
know that i linked the collection in a previous post also, it's here
https://drive.google.com/file/d/0B2BMxLA7EzgBN01yNktVTVRVZFk/view?usp=drivesdk
…On Dec 8, 2017 13:03, "Tim Rae" ***@***.***> wrote:
@Vaanen <https://github.com/vaanen>
Could you quickly email me again now so I can search through my emails to
find yours again? If you can do it right now I have a little bit of time to
check your collection.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4691 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYw96OuZsul6heh0_9-0t9zBQDQl5F_7ks5s-SWegaJpZM4PGWoK>
.
|
Thanks for your ID, here's the stacktrace, it seems to be a problem with SSL authentication doing media sync. If you disable media sync does it work?
|
Ah thanks, I didn't see that. Also, just in case it's changed, could you please check your UUID again? and post it if it's different? |
it's
ACRA UUID = 9faf1ec0-cddb-4ae0-b6d4-1762e902bf99
…On Dec 8, 2017 13:11, "Tim Rae" ***@***.***> wrote:
i linked the collection in a previous post also
Ah thanks, I didn't see that. Also, just in case it's changed, could you
please check your UUID again? and post it if it's different?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4691 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYw96KYSR8V9YrQMuxIq6s_s2jUzYIc3ks5s-SeOgaJpZM4PGWoK>
.
|
Thanks, there are some crashes there, but none seem to be related to sync, so I guess it's not going through. Does it happen as soon as you start syncing or just in the media sync part? |
as soon as i sync, like immeditaely and every single time, even when
there's no media changes
…On Dec 8, 2017 13:16, "Tim Rae" ***@***.***> wrote:
Thanks, there are some crashes there, but none seem to be related to sync,
so I guess it's not going through. Does it happen as soon as you start
syncing or just in the media sync part?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4691 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYw96BCIR6dwMe5KTby2aN_Dan3W8Hweks5s-SiugaJpZM4PGWoK>
.
|
Hi, I disabled "fetch media on sync" and it still crashes |
My ACRA UUID Changed too it is now: ACRA UUID = c895da83-c370-4a0c-a4fe-185f887e45df |
Good news, I could reproduce the issue with your collection, and found that the issue is the same as this one, except that you don't get a error message anymore [i.e. it just crashes instead] ever since we changed our SQLite library. So I went through your collection and deleted all the unused note types, after that it was working fine. |
FYI, it looks like two more users with this "too many note types" issue, and now it causes a core dump at the C++ layer, so we can't just catch the Java |
I deleted all my unused note types and it does not crash anymore. Thank you
…On Dec 8, 2017 2:18 PM, "Tim Rae" ***@***.***> wrote:
@Vaanen <https://github.com/vaanen>
Good news, I could reproduce the issue with your collection, and found
that the issue is the same as this one
<https://github.com/ankidroid/Anki-Android/wiki/FAQ#why-do-i-get-an-error-message-about-the-size-limit-for-a-string-in-a-database>,
except that you don't get a error message anymore [i.e. it just crashes
instead] ever since we changed our SQLite library.
So I went through your collection and deleted all the unused note types,
after that it was working fine.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4691 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQGC0OCD_SDY9da5Y1q2DFcDXfVb3DBwks5s-TcagaJpZM4PGWoK>
.
|
Apologies for the delay in getting to this |
No worries.I can confirm it solvedmy issue too.I'm wondering though, what's
the limit of card type then ?
…On Dec 8, 2017 14:32, "Tim Rae" ***@***.***> wrote:
Apologies for the delay in getting to this
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4691 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYw96PkumKL11Rs4KqmmqMKDHq2ZFG-_ks5s-TqAgaJpZM4PGWoK>
.
|
Basically all we can say is 2MB of text for the json of all your models and
decks combined
On 9/12/2017 02:13, "Vaanen" <notifications@github.com> wrote:
No worries.I can confirm it solvedmy issue too.I'm wondering though, what's
the limit of card type then ?
On Dec 8, 2017 14:32, "Tim Rae" ***@***.***> wrote:
Apologies for the delay in getting to this
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4691#
issuecomment-350263900>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AYw96PkumKL11Rs4KqmmqMKDHq2ZFG-_ks5s-TqAgaJpZM4PGWoK>
.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4691 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACsA4v88ts6jyJY9gEgiOv8h3wCuHxhZks5s-W4wgaJpZM4PGWoK>
.
|
where can we see the weight of this file ?
On Dec 8, 2017 21:44, "Tim Rae" <notifications@github.com> wrote:
Basically all we can say is 2MB of text for the json of all your models and
decks combined
On 9/12/2017 02:13, "Vaanen" <notifications@github.com> wrote:
No worries.I can confirm it solvedmy issue too.I'm wondering though, what's
the limit of card type then ?
On Dec 8, 2017 14:32, "Tim Rae" ***@***.***> wrote:
Apologies for the delay in getting to this
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4691#
issuecomment-350263900>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AYw96PkumKL11Rs4KqmmqMKDHq2ZFG-_ks5s-TqAgaJpZM4PGWoK>
.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4691#
issuecomment-350318208>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
ACsA4v88ts6jyJY9gEgiOv8h3wCuHxhZks5s-W4wgaJpZM4PGWoK>
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4691 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYw96EOdGi7fafrs7iK5Fn4Pqfxtrx-wks5s-Z_IgaJpZM4PGWoK>
.
|
The only way is to open the database and inspect the cd $YOUR_ANKI_DIRECTORY
sqlite3 collection.anki2 "select length(hex(id))+length(hex(crt))+length(hex(mod))+length(hex(scm))+length(hex(ver))+length(hex(dty))+length(hex(usn))+length(hex(ls))+length(hex(conf))+length(hex(models))+length(hex(decks))+length(hex(dconf))+length(hex(tags)) as 'total' from col" |
Sorry I accidentally closed and reopened the issue, I was having trouble with my browser. I also updated my comment to give a bit more information, but it's not something simple like just checking the size of a file. |
Also, FYI the output of the command above before and after deleting all the unused models was: 384012 It needs to be less than 1048576. |
fixes #4691 et al editing the template seems to work, so the size limit only appears to be when reading the column, not writing to it
parameterized new loadModels method from dae so it could load any column, used new parameterized method to load models as before, but also to load decks, as hinted by timrae
parameterized new loadModels method from dae so it could load any column, used new parameterized method to load models as before, but also to load decks, as hinted by timrae
fixes #4691 et al editing the template seems to work, so the size limit only appears to be when reading the column, not writing to it
parameterized new loadModels method from dae so it could load any column, used new parameterized method to load models as before, but also to load decks, as hinted by timrae
@timrae - this is pretty old at the moment, but I'm wondering if you remember the crash - was it in android:utf8toJavaCharArray? Because we have a much lower count of those from 2.8.3 -> 2.8.4 when this fix was released, but we still have a lot of them, I think it's our #2 crash. If this strategy (loading in chunks) worked for the 2 columns it was applied to, and that was the method you saw on local reproduction, I might go after attempting local reproduction and chunk-load of the other possible columns |
Which columns? I think we already have all the columns with unbounded size...? I think this was a native crash... |
It is native, that's the name in the jni part of the native crash |
Oh right, yeah I don't really remember, sorry. In general I'm not really a fan of reactively changing things in the code base to handle a specific stack trace from triage without a reproduction case, or at least a strong hypothesis for the cause of the error |
I agree with that on triage. The IncompatibleClassChangeError on the other thread has documentation supporting that it is ABI breakage and it's out of library client code control, so its a different thread but that one is just hypothesis with a tough reproduction. This one, with as many crashes as are triggered by it still if I can't crash it locally with a test case I'm doing it wrong - I was just hoping you'd have recollection that it was that method as to motivate the repro effort. I'll hold on this for a bit then as it's not a feature-freeze blocker anyway, just something we'd want to release when 2.9 goes out |
Research
Enter an [ x ] character to confirm the points below:
[ x ] I have read the support page and am reporting a bug or enhancement request specific to AnkiDroid
[ x ] I have checked the manual and the FAQ and could not find a solution to my issue
[ x ] I have searched for similar existing issues here and on the user forum
Reproduction Steps
Expected Result
Go back to normal
Actual Result
Crash of the app
Debug info
Refer to the support page if you are unsure where to get the "debug info".
AnkiDroid Version = 2.8.2
Android Version = 8.0.0
ACRA UUID = 8ad98706-43aa-4b83-885e-5a857662aebe
Notes
I reinstalled Ankidroid, removed everything, tried the last beta, nothing solves it, it just crashes right after syncing. I can open the app afterwards and sync was successful but its very annoying since i set to sync very often to avoid forgetting. It appeared all of the sudden, was working fine before, i did some cleaning on my desktop Anki client and then this bug started to appear on Ankidroid. Tried rebuild databese, check media, nothing fixes it.
This also have the effect of not being able to restore collection from APKG. This time, Ankidroid crashes before even importing, so its actually not possible. I suspect there may be some incompatibility between how Anki computer builds the database vs how Ankidroid expects a database to be
The text was updated successfully, but these errors were encountered: