Bug 1645181 Comment 20 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Agi Sferro | :agi | ⏰ PST | he/him from comment #13)
> (In reply to Agi Sferro | :agi | ⏰ PST | he/him from comment #11)
> > I wonder if this is just a aarch64/x86_64 problem. I'll try in my phone.
> 
> I can reproduce with the above profile on my phone too, so not related to different architecture.
> 
> Victor do you have any idea why we would be getting a `IndeterminateBitDepth` error in Comment 10? The profile in Comment 1 has the rkv database in  the `extension-store`  folder.
> 
> We should probably also handle that in our code and not fail like that.

I recall there used to be issues when using RKV with LMDB, where database files weren't usable across architectures, so stores created on 32bit must be manually migrated to 64bit and vice versa as they aren't compatible with each other. See bug 1557161 and this explanation[0].

I'm thinking Nan might also have some more info here, as he's worked with myk on this back when it was an issue.

So you might get this when migrating between 32bit and 64bit, and the error is thrown here[1]. Try checking the list of limitations here[0] and see if any of them apply. 

Note that all of this will go away once we switch kvstore away from LMDB and to safe-mode.

[0] https://github.com/mozilla/rkv/blob/abd08f409aac4d8ff3d537e5ad8887590c44171d/src/migrate.rs#L11
[1] https://github.com/mozilla/rkv/blob/abd08f409aac4d8ff3d537e5ad8887590c44171d/src/migrate.rs#L526
[2] https://github.com/mozilla/rkv/blob/abd08f409aac4d8ff3d537e5ad8887590c44171d/src/migrate.rs#L29
(In reply to Agi Sferro | :agi | ⏰ PST | he/him from comment #13)
> (In reply to Agi Sferro | :agi | ⏰ PST | he/him from comment #11)
> > I wonder if this is just a aarch64/x86_64 problem. I'll try in my phone.
> 
> I can reproduce with the above profile on my phone too, so not related to different architecture.
> 
> Victor do you have any idea why we would be getting a `IndeterminateBitDepth` error in Comment 10? The profile in Comment 1 has the rkv database in  the `extension-store`  folder.
> 
> We should probably also handle that in our code and not fail like that.

I recall there used to be issues when using RKV with LMDB, where database files weren't usable across architectures, so stores created on 32bit must be manually migrated to 64bit and vice versa as they aren't compatible with each other. See bug 1557161 and this explanation[0].

I'm thinking Nan might also have some more info here, as he's worked with myk on this back when it was an issue.

So you might get this when migrating between 32bit and 64bit, and the error is thrown here[1]. Try checking the list of limitations here[2] and see if any of them apply. 

Note that all of this will go away once we switch kvstore away from LMDB and to safe-mode.

[0] https://github.com/mozilla/rkv/blob/abd08f409aac4d8ff3d537e5ad8887590c44171d/src/migrate.rs#L11
[1] https://github.com/mozilla/rkv/blob/abd08f409aac4d8ff3d537e5ad8887590c44171d/src/migrate.rs#L526
[2] https://github.com/mozilla/rkv/blob/abd08f409aac4d8ff3d537e5ad8887590c44171d/src/migrate.rs#L29

Back to Bug 1645181 Comment 20