Skip to content
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

WebKit Browsers Showing Nothing instead of Web Content #55

Closed
jansenmtan opened this issue Mar 7, 2018 · 12 comments
Closed

WebKit Browsers Showing Nothing instead of Web Content #55

jansenmtan opened this issue Mar 7, 2018 · 12 comments
Labels
enhancement no-issue-activity shmem https://github.com/sdrausty/libandroid-shmem

Comments

@jansenmtan
Copy link

I have installed Arch Linux and LXDE successfully, and they run pretty well (nothing short of amazing).

However, WebKit browsers, although drawing the UI, are not displaying websites.
When I run them on the terminal, they output hundreds of errors that look like Failed to create shared memory file /WK2SharedMemory.##########: Permission denied
Apparently, the issue comes from /dev/shm (or its nonexistence) : https://bugzilla.redhat.com/show_bug.cgi?id=1347436

So far, I've been using NetSurf, which works.

@SDRausty
Copy link
Owner

SDRausty commented Mar 7, 2018

they run pretty well (nothing short of amazing).

Thank you for your praise. Countless hours and iterations have created what we praise. This is an upstream issue. Which upstream, I am not sure. The more upstream knows about it, the faster it may be solved.

@SDRausty SDRausty closed this as completed Mar 7, 2018
@SDRausty SDRausty changed the title WebKit browsers showing nothing instead of web content WebKit Browsers Showing Nothing instead of Web Content Mar 8, 2018
@SDRausty
Copy link
Owner

This f16c27d commit adds Arch Linux IRC channel upstream contact information to the TermuxArch motd and logout.

See https://wiki.archlinux.org/index.php/IRC_channel for available Arch Linux IRC channels.

@robsmith11
Copy link

robsmith11 commented Mar 27, 2018

Has this issue been identified or reported anywhere upstream?
I believe Firefox experiences a similar problem.

@SDRausty To clarify, by saying it's an upstream issue, are you suggesting that shmem appears to be working properly in TermuxArch?

@SDRausty
Copy link
Owner

@robsmith11 if you believe that TermuxArch can influence shmem in some way, please enlighten us. I see nothing that a BASH script working within the confines of Android can do for shmem and similar issues. If I am mistaken, this issue can be reopened at anytime.

Has this issue been identified or reported anywhere upstream?

If it has not been reported yet, hopefully it will be reported upstream soon. This is why upstream links are posted throughout this website.

@robsmith11
Copy link

@SDRausty Well shmem system calls can be fixed by using LD_PRELOAD with an ashmem wrapper like this:
https://github.com/pelya/android-shmem

As for programs that want to write to /dev/shm, the easiest way to get them working would be to just create an empty, writeable directory there, but that might not be so great for performance. I'm not sure if there's an easy way to get it pointing to a tmpfs filesystem without root. Is there any writeable tmpfs in android? A symlink could point to there if so.

@SDRausty
Copy link
Owner

SDRausty commented Apr 15, 2018

@robsmith11

fixed by using LD_PRELOAD

$ egrep LD_PRELOAD *
archsystemconfigs.sh:   unset LD_PRELOAD
archsystemconfigs.sh:   unset LD_PRELOAD
archsystemconfigs.sh:   unset LD_PRELOAD
necessaryfunctions.sh:  unset LD_PRELOAD
necessaryfunctions.sh:  unset LD_PRELOAD

There doesn't seem to be any place more that this can be used in TermuxArch as far as I know.

an ashmem wrapper like this:
https://github.com/pelya/android-shmem

TermuxArch is a BASH shell script. Your example is written in C.

write to /dev/shm

/dev is mounted from Android along with the permissions. If the apps we are discussing could use shared memory as an option, there would be no issues.

How can I change the cache folder (to tmpfs)?
On Linux and BSD, you can set XDG_CACHE_HOME for all applications, or just Midori. Midori saves icons and cache files in that location. The default is ~/.cache.

export XDG_CACHE_HOME=/dev/shm

From http://midori-browser.org/faqs/

Here are some links where repeating the shm topic should be worth the effort and time:

https://github.com/archlinuxarm
https://github.com/ArchStrike/ArchStrike
https://wiki.archlinux.org/index.php/IRC_channel
Email : [email protected]
Github : https://github.com/termux/
Gitter : https://gitter.im/termux/termux
Termux Community : https://plus.google.com/communities/101692629528551299417

@SDRausty
Copy link
Owner

SDRausty commented May 10, 2018

@SDRausty
Copy link
Owner

SDRausty commented Sep 3, 2018

@robsmith11 Accessing libandroid-shmem support is now possibly in TermuxArch, use setupTermuxArch.sh r for quick system refresh; libandroid-shmem support is added with this a250672 commit. The current version of TermuxArch also sets locales from Android on the fly for Arch Linux in Termux PRoot to be in the language you wish.

@SDRausty SDRausty reopened this Sep 17, 2018
@SDRausty SDRausty added enhancement shmem https://github.com/sdrausty/libandroid-shmem and removed question labels Sep 17, 2018
@sudomain
Copy link

This was broken for a while but Firefox appears normally now

Screenshot_2020-04-29-17-41-14

@github-actions
Copy link

Stale issue message

@SDRausty
Copy link
Owner

This was broken for a while but Firefox appears normally now

Good news; Thank you for sharing @sudomain

@github-actions github-actions bot closed this as completed Jul 7, 2020
@SDRausty
Copy link
Owner

SDRausty commented Jul 9, 2020

This commit a2e8c54 @jansenmtan and upstream may have resolved your issuu. You are welcome to comment here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement no-issue-activity shmem https://github.com/sdrausty/libandroid-shmem
Projects
None yet
Development

No branches or pull requests

4 participants