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

Dictionary update fails with "can't create /sdcard/Android/data/sk.baka.aedict3/files/aedict3/dictionaries/JMDICT/null" #468

Closed
mvysny opened this Issue Mar 31, 2015 · 11 comments

Comments

Projects
None yet
2 participants
@mvysny
Owner

mvysny commented Mar 31, 2015

Whenever you update JMDict in the Dictionary updater it fails, complaining that it can't create /sdcard/Android/data/sk.baka.aedict3/files/aedict3/dictionaries/JMDICT/null.
When you back out to the main menu you then get put into the original welcome setup screen saying you need to download JMDICT, which (fortunately) then works.
This has been happening on all three of my android devices and has persisted over several updates of the app.

@mvysny mvysny added the bug label Mar 31, 2015

@mvysny

This comment has been minimized.

Show comment
Hide comment
@mvysny

mvysny Mar 31, 2015

Owner

I can't seem to simulate this bug, but I think I know the cause of this bug (I keep dictionaries opened while I change them, not a good pattern ;). I tried to fix this by closing all dictionaries while the download goes, let us see whether it helps or not.

Owner

mvysny commented Mar 31, 2015

I can't seem to simulate this bug, but I think I know the cause of this bug (I keep dictionaries opened while I change them, not a good pattern ;). I tried to fix this by closing all dictionaries while the download goes, let us see whether it helps or not.

@mvysny

This comment has been minimized.

Show comment
Hide comment
@mvysny

mvysny Mar 31, 2015

Owner

Fixed in Aedict 3.15, please feel free to reopen if the bug occurs again.

Owner

mvysny commented Mar 31, 2015

Fixed in Aedict 3.15, please feel free to reopen if the bug occurs again.

@mvysny mvysny closed this Mar 31, 2015

@AAurion

This comment has been minimized.

Show comment
Hide comment
@AAurion

AAurion Apr 18, 2015

Also running into this problem, I had just deleted the dictionaries from my system memory to redownload them on my sd card. It keeps failing saying if failed to create diretory '/mnt/extSdCard/aedict3/dictionaries/JMDICT/null'. I'm pretty sure I'm up to date.

AAurion commented Apr 18, 2015

Also running into this problem, I had just deleted the dictionaries from my system memory to redownload them on my sd card. It keeps failing saying if failed to create diretory '/mnt/extSdCard/aedict3/dictionaries/JMDICT/null'. I'm pretty sure I'm up to date.

@mvysny mvysny reopened this Apr 18, 2015

@mvysny

This comment has been minimized.

Show comment
Hide comment
@mvysny

mvysny Apr 18, 2015

Owner

Hi, thanks for letting me know. As a first aid, would you please try to reboot your phone if it makes the problem disappear?

Owner

mvysny commented Apr 18, 2015

Hi, thanks for letting me know. As a first aid, would you please try to reboot your phone if it makes the problem disappear?

@mvysny

This comment has been minimized.

Show comment
Hide comment
@mvysny

mvysny Apr 18, 2015

Owner

Android is so stupid it can't tell you why it failed to create the directory. What a failure.

Owner

mvysny commented Apr 18, 2015

Android is so stupid it can't tell you why it failed to create the directory. What a failure.

@AAurion

This comment has been minimized.

Show comment
Hide comment
@AAurion

AAurion Apr 18, 2015

Yeah, I've reset my phone a few times since then, but nothing.
The first time I tried, though, there wasn't enough space on the sd card, so I moved some stuff to my computer and tried again, then got this failure message.

AAurion commented Apr 18, 2015

Yeah, I've reset my phone a few times since then, but nothing.
The first time I tried, though, there wasn't enough space on the sd card, so I moved some stuff to my computer and tried again, then got this failure message.

@AAurion

This comment has been minimized.

Show comment
Hide comment
@AAurion

AAurion Apr 19, 2015

I tried uninstalling and reinstalling the whole app, but that didn't do anything either. I'm still able to download them to my phone's memory, though, so it's definitely just the sd card...

AAurion commented Apr 19, 2015

I tried uninstalling and reinstalling the whole app, but that didn't do anything either. I'm still able to download them to my phone's memory, though, so it's definitely just the sd card...

@mvysny

This comment has been minimized.

Show comment
Hide comment
@mvysny

mvysny Apr 19, 2015

Owner

Retarded Android can't tell us why he can't create a directory, what a joke. So, we will have to guess. Perhaps try to kill Aedict, then manuall deleting the entire /mnt/extSdCard/aedict3/dictionaries directory (perhaps the access rights have somehow changed for that directory?), then launch Aedict?

Owner

mvysny commented Apr 19, 2015

Retarded Android can't tell us why he can't create a directory, what a joke. So, we will have to guess. Perhaps try to kill Aedict, then manuall deleting the entire /mnt/extSdCard/aedict3/dictionaries directory (perhaps the access rights have somehow changed for that directory?), then launch Aedict?

@AAurion

This comment has been minimized.

Show comment
Hide comment
@AAurion

AAurion Apr 19, 2015

Nah, that just brought me back to the starter screen where it asks to download the dictionaries, and then if I try to download to my sd card it gives the same IOException.

AAurion commented Apr 19, 2015

Nah, that just brought me back to the starter screen where it asks to download the dictionaries, and then if I try to download to my sd card it gives the same IOException.

@AAurion

This comment has been minimized.

Show comment
Hide comment
@AAurion

AAurion Apr 19, 2015

Oh, ok. I redownloaded them to my device storage, force quit the app, and manually moved the folder to my sd card. When I restarted the app, it gave me the usual download dictionaries page, so I set the download path to my sd card and let it run. But, since it's already there, it didn't download anything or give any error message, and it seems to be working properly from what I can see.

AAurion commented Apr 19, 2015

Oh, ok. I redownloaded them to my device storage, force quit the app, and manually moved the folder to my sd card. When I restarted the app, it gave me the usual download dictionaries page, so I set the download path to my sd card and let it run. But, since it's already there, it didn't download anything or give any error message, and it seems to be working properly from what I can see.

@mvysny

This comment has been minimized.

Show comment
Hide comment
@mvysny

mvysny Apr 19, 2015

Owner

This is weird, it seems that Aedict can read from your SD Card, but can't write there. Aedict requests both the android.permission.READ_EXTERNAL_STORAGE and android.permission.WRITE_EXTERNAL_STORAGE permissions so the SD Card should be writable... I will create a hack which will tell us exactly why Android can't create the directory.

Owner

mvysny commented Apr 19, 2015

This is weird, it seems that Aedict can read from your SD Card, but can't write there. Aedict requests both the android.permission.READ_EXTERNAL_STORAGE and android.permission.WRITE_EXTERNAL_STORAGE permissions so the SD Card should be writable... I will create a hack which will tell us exactly why Android can't create the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment