Comments (10)
PS:
There are one more item in config that is defined with nil value:
NETWORK_PROXY = nil,
Will be affected as well.
from koreader.
Maybe something messing with the config?
What the contents of defaults.custom.lua file?
from koreader.
Indeed, I commented out the STARDICT
line and that fixed it.
This is how the last 3 lines of defaults.custom.lua looked like before:
},
STARDICT_DATA_DIR = "/mnt/onboard/.adds/dict",
}
Is this not the proper way to define a custom dictionary location? The dictionaries were loaded from there correctly. I don't remember when I last opened the Advanced settings -- it could have been months ago.
from koreader.
Could you try like that?
STARDICT_DATA_DIR = /mnt/onboard/.adds/dict,
EDIT: That will evenΒ΄t read
I'm looking at it...
from koreader.
When building the list of the default default values the program iterates over all key-values from defaults.lua.
koreader/frontend/apps/filemanager/filemanagersetdefaults.lua
Lines 37 to 45 in c345de5
But defaults.lua contains
Line 196 in c345de5
Lua
pairs
skips keys with nil
values, so when building the list of custom default values we got crash in line 47koreader/frontend/apps/filemanager/filemanagersetdefaults.lua
Lines 46 to 49 in c345de5
because
self.state["STARDICT_DATA_DIR"]
is nil
.from koreader.
yes, but not exactly.
The problem is here with dofile: https://github.com/koreader/koreader/blob/master/frontend/luadefaults.lua#L46
dofile will not load STARDICT_DATA_DIR even if is explicit defined with nil value.
We use this var here: https://github.com/koreader/koreader/blob/master/frontend/apps/reader/modules/readerdictionary.lua#L110
I suggest change to STARDICT_DATA_DIR = false in defaults.lua, what do you think?
from koreader.
Shouldn't we have seen this 2 or more years ago already? What changed since?
from koreader.
for reference: https://stackoverflow.com/questions/40441508/how-to-represent-nil-in-a-table or https://forums.solar2d.com/t/inserting-nil-into-table/327955/3
> t = {a = "1", STARDICT_DATA_DIR = nil, b = 2}
for key,_ in pairs(t) do
print(key)
end
b
a
>
from koreader.
Shouldn't we have seen this 2 or more years ago already? What changed since?
Four since f756a6a π€
TBH I didn't check advanced settings back then so it is probably broken since its inception.
from koreader.
Shouldn't we have seen this 2 or more years ago already? What changed since?
Four since f756a6a π€
TBH I didn't check advanced settings back then so it is probably broken since its inception.
This one will not crash. Is since this: #9546 ;-)
from koreader.
Related Issues (20)
- FR: Colour saturation on Kobo Libra Colour HOT 17
- FR: [Android]Ability to use other virtual keyboards HOT 1
- Can't open books from library when files are associated on some Pocketbooks HOT 12
- Pdf annotations not migrated properly HOT 28
- Android app does not write highlights to PDF if app is closed HOT 1
- FR: be able to add a vertical line between two columns HOT 1
- koreader doen't launches on kindle PW5 (8GB) HOT 4
- Missing text in Weblate HOT 2
- FR: Display note in differend line in bookmarks list HOT 3
- Alignment of ruby text is affected by -epub-text-align-last HOT 1
- "Move to archive" action triggers directory metadata and cover refresh HOT 1
- Moving a book to another folder deleted my notes, highlights, bookmarks, and reading progress HOT 9
- FR: Open links in PocketBook web browser HOT 5
- Hot swapping dictionaries unavailable on NT devices HOT 3
- Some PDFs have stopped opening. HOT 9
- FR: Right Click Mouse Support HOT 6
- Building APK fails because of unknown switch of 7z HOT 5
- FR: Paginated Bookmark details
- Timer related features stopped working HOT 1
- Can not open feeds from Newsdownloder plugin after last update HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koreader.