-
Notifications
You must be signed in to change notification settings - Fork 18
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
Guard dictionary visibility check in hacker's edition #9
Conversation
Using unintialized pointer leads to segmentation fault in developer's firmware when turning pages of the book QBookApp: 13:37:38.232 Debug: MouseFilter::TouchEventType MouseFilter::getTouchType() ELAPSED 228 ms, MOVED QPoint(-923,101) QBookApp: 13:37:38.235 Debug: virtual bool MouseFilter::eventFilter(QObject*, QEvent*) RELEASE-TAP/SWIPE Segmentation fault
@avsej thank you very much for this fix. |
@avsej: When I installed developer's firmware I found this bug too, I didn't care too much because I want to port KOReader to these devices but now that I know this can be fixed I think it will be better to have both readers available and switch between them on demand. Could you please share the binary you compiled? Did you found any other bug / difficulty building the application? Thanks again |
Here is my binary: http://files.avsej.net/QBookApp-1 And here are my steps to produce the binary. In my home directory I've got
And the in the docker
I know those steps with shuffling shared objects are hack, but I don't have enough time to do it properly. Maybe maintainers will give more precise build instructions. @pazos, the only issue I've got with my binary, is that it cannot apply fonts for some reason. But now I just installed recent koreader, and everything goes perfect. I'm afraind that the official reading app is pretty much abandoned now, as email server bouncing messages sent to the addresses of commiters. |
Hi Sergey, thanks for catching that issue, which I now have merged here, and also into our internal repository. While the repository looks somewhat less active, it is definitly not abandoned and your other email seems to have reached our support people, who pointed me to your merge request. But yeah the people whose emails you can see in the commits here on github have set sail to new adventures in the meantime since their last commits. As for build environment, that is currently sort of an achilles heel as our internal buildhost is still running an older ubuntu and also an older gcc and I'm actually working on modernizing that, but that might most like take a bit more time. |
@mmind we have a recent crosstool-ng toolchain tailored for these devices at https://github.com/koreader/koxtoolchain. BTW, thank you for providing the sources of your program. It made porting other software a lot easier. I'm not sure about this but it seems that the wireless chip is powered on boot and you didn't try to turn it off when it is not used. That is weird because your kernel has a module which does that (sdio_wifi_pwr). It can be handled from userspace writting to /dev/ntx_io but I didn't found any related call. |
@pazos generally the wifi chip enters some low-power-state on its own when not in use and it's always a tradeoff between startup time of the chip and power consumption. Generally the bsp-wifi-modules do not take kindly to power getting pulled from under them, so you'd always do: wifi-down; rmmod wifi-module; powerdown-wifi ... powerup-wifi; insmod; wait for everything to probe; connect wifi |
Thanks for this fix...is there a way I can apply or install and use the formed binary on a BQ Touch Light running the 7.0.2 firmware from here to fix this issue? https://blog.bq.com/es/bq-ereaders-developers-program/ Or is there an upgraded build of the reader for the Touch Light that can be installed? |
Using unintialized pointer leads to segmentation fault in developer's
firmware when turning pages of the book