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

Failure to start on Android 8.0 Oreo #206

Open
gnomon- opened this Issue Sep 3, 2017 · 131 comments

Comments

Projects
None yet
@gnomon-

gnomon- commented Sep 3, 2017

When I launch the application on my Pixel XL running Android 8.0.0, the window animation displays then immediately disappears, leaving a translucent "Window 1" banner for a second or two.

Running kernel 3.18.52-g06de20685970. I installed GNURoot Debian prior to the upgrade to 8.0.0.


[edit 2018-02-12]: dear folks also experiencing this issue, as per @oganm's note downthread, the cause is now fully understood. It is more useful for you to add a reaction (which shows up in reports on active issues) rather than a new comment (which sends a notification to every person watching this issue to keep up to date on a fix). Please consider the quieter option. Thanks!!

@drhuffman12

This comment has been minimized.

drhuffman12 commented Sep 4, 2017

Would un-installing and re-installing GNURoot help?

@kenyoung

This comment has been minimized.

kenyoung commented Sep 5, 2017

I have the same issue on a Google Pixel XL phone running exactly the same kernel and Android release as gnomon mentioned above. I have uninstalled and re-installed GNURoot Debian several times. When I launch the app, I get the message "GNURoot not yet installed. This could take a bit. Please wait." on a translucent window which disappears after ~1 second, and is followed by the "Window 1" banner that gnomon mentioned.

@BearChavez

This comment has been minimized.

BearChavez commented Sep 13, 2017

I have the same issue

@yochananmarqos

This comment has been minimized.

yochananmarqos commented Sep 14, 2017

Same here on my Nexus 5X. Logcat attached.
2017-09-14-17-56-39.txt

@rcollins0618

This comment has been minimized.

rcollins0618 commented Sep 15, 2017

Same issue here (exactly as kenyoung described).
Android 8.0.0,
Security patch level September 5, 2017
Kernel 3.18.52

@rcollins0618

This comment has been minimized.

rcollins0618 commented Sep 15, 2017

Forgot to mention: Google Pixel XL

@ifuller1

This comment has been minimized.

ifuller1 commented Sep 19, 2017

I'm also seeing this.

@ifuller1

This comment has been minimized.

ifuller1 commented Sep 19, 2017

Same Android device and software as above.

@tuomas2

This comment has been minimized.

tuomas2 commented Oct 11, 2017

Same here with Xperia XZ1 Compact, also with fresh install.

@mhofert

This comment has been minimized.

mhofert commented Oct 12, 2017

Same here on Nexus 6P

@grettke

This comment has been minimized.

grettke commented Oct 15, 2017

Today I ran into the same issue described by @gnomon- on the same hardware and OS as @gnomon-

@cbeley

This comment has been minimized.

cbeley commented Oct 15, 2017

Same here on Pixel C.

@bluelightning32

This comment has been minimized.

bluelightning32 commented Oct 17, 2017

It's failing due to the seccomp filter introduced in Android Oreo.

https://android-developers.googleblog.com/2017/07/seccomp-filter-in-android-o.html

@etherealmccoy

This comment has been minimized.

etherealmccoy commented Oct 18, 2017

This issue/thread may be relevant:
proot-me/PRoot#106

@corbinlc

This comment has been minimized.

Owner

corbinlc commented Nov 2, 2017

I am back from the dead for a little while. I am looking into this issue as my highest priority with the time that I have. It is related to seccomp filtering in Oreo (good job to those that figured that out on their own). The specific issue is that the version of busybox I am using was compiled against glibc and not bionic and some combination of that and what the busybox ash interpreter code is doing is calling one of the now blocked system calls (swapon/swapoff are the most likely candidates, but they block a few more).

@corbinlc

This comment has been minimized.

Owner

corbinlc commented Nov 2, 2017

If there are other illegal system calls being used by user apps, I can get around most of them by changing proot itself, but got to rebuild busybox first.

@etherealmccoy

This comment has been minimized.

etherealmccoy commented Nov 2, 2017

Very good news. Thanks Corbin. Happy to do some testing.

@gnomon-

This comment has been minimized.

gnomon- commented Nov 2, 2017

@corbinlc brilliant, thank you so much for the informative update. Really glad to gain more understanding of the root cause.

@corbinlc

This comment has been minimized.

Owner

corbinlc commented Nov 8, 2017

Specifically, my old build of Busybox was calling the sigprocmask system call which is not an allowed system call on Oreo. Compiling a static Busybox with the latest bionic makes it call rt_sigprocmask instead and that is allowed. Need to test if this is the only issue or just the first issue.

@Yoone

This comment has been minimized.

Yoone commented Nov 21, 2017

Any news on this? I am getting the same behavior on my Google Pixel XL with Android 8.0.0.

@joelyoungblom

This comment has been minimized.

joelyoungblom commented Dec 16, 2017

I am experiencing the same issue on my Android 8.1.0 Pixel XL

@JonasFranzDEV

This comment has been minimized.

JonasFranzDEV commented Dec 16, 2017

Same issue on my OnePlus 3T with Android 8.0.

@rrodrigueznt

This comment has been minimized.

rrodrigueznt commented Jan 5, 2018

Same issue on my Xperia XZ running on Android 8.0.0.

Thanks for your work!!!

@tedb

This comment has been minimized.

tedb commented Jan 10, 2018

I am also seeing this on a Nexus Player with Android 8.0.0.

@Agent471

This comment has been minimized.

Agent471 commented Jan 25, 2018

Same issue on OP3 running Android 8.0

@xwct

This comment has been minimized.

xwct commented Jan 26, 2018

happens on my pixel xl with 8.1 jan security update

@monsterkali666

This comment has been minimized.

monsterkali666 commented Feb 7, 2018

same problem here
xiaomi mix 2 - 8.0

@Basti922

This comment has been minimized.

Basti922 commented Feb 11, 2018

Same issue

@oganm

This comment has been minimized.

oganm commented Feb 12, 2018

Hi everyone, this issue exists on all android build >8.0. At this point you should post if you can make this work rather than pointing out that it doesn't. I have no relation to the development of this project but some of us are watching this thread to be notified when there are news related to the issue and "me too" comments are distracting to those of us who use github on a daily basis.

If you are effected by this issue and want to let the devs know that you exist, you can react to an existing post that voices your opinions with a thumbs up using the button below, located above each post:
image

If you want to be notified of updates you can subscribe to the topic using the button below, located to the left of this window:
image

@sciipking

This comment has been minimized.

sciipking commented Jun 22, 2018

Is it possible to play runescape on userland?

@ricecube

This comment has been minimized.

ricecube commented Jun 22, 2018

@sciipking I've been trying to get osrs running, it's much more challenging to do then with gnuroot, you have to install Java jre 8 then the hakariknight rs repository, and pull the install from your internal storage pathway which is different for each phone vendor. If you get it working let me know, I haven't had the time recently to finish up.

@corbinlc

This comment has been minimized.

Owner

corbinlc commented Jun 22, 2018

@ricecube

This comment has been minimized.

ricecube commented Jun 22, 2018

@corbinlc the shell has been working great for me so far, got lxde installed and running fine through xserver! I'll keep playing around with it and post any issues I find!

@corbinlc

This comment has been minimized.

Owner

corbinlc commented Jun 22, 2018

@DeicPro

This comment has been minimized.

DeicPro commented Jun 23, 2018

@ricecube I didn't got run in xserver xsdl. I installed unix-runescape-client, openbox and openjdk-jre-8

@DeicPro

This comment has been minimized.

DeicPro commented Jun 24, 2018

Ok I got it reading this: CypherpunkArmory/UserLAnd#45

But when I run Runescape it send me some error by perl module dependencies and crash. I will try to manual install those modules after

@snoopy221

This comment has been minimized.

snoopy221 commented Jun 24, 2018

Anyone happen to have the runescape script to run on userland?

@DeicPro

This comment has been minimized.

DeicPro commented Jun 25, 2018

I don't got that Java works. I tried Oracle's JDK 7u60 armhf (java not found) and OpenJDK JRE 8 arm64 which gives me some Java errors and RuneScape crash before loading the client.

@DeicPro

This comment has been minimized.

DeicPro commented Jun 25, 2018

Im trying with soft float version and seems the problem is that Oracle JDK need /lib/ld-linux.so.3, I tried simlink existing ld-linux* libs, but didn't work:

user@localhost:~$ java --version                                    
-bash: /usr/bin/java: No such file or directory           
              
user@localhost:~$ strings /usr/bin/java                   
/lib/ld-linux.so.3                                        
...

user@localhost:~$ ls /lib/ld*                             
/lib/ld-linux-aarch64.so.1  /lib/ld-linux.so.2
                                   
user@localhost:~$ sudo ln -s /lib/ld-linux.so.2 /lib/ld-linux.so.3                                      
                                         
user@localhost:~$ java --version                          
Segmentation fault                
                        
user@localhost:~$ sudo rm /lib/ld-linux.so.3   
           
user@localhost:~$ sudo ln -s /lib/ld-linux-aarch64.so.1 /lib/ld-linux.so.3   
                                    
user@localhost:~$ java --version                          
Inconsistency detected by ld.so: rtld.c: 1282: dl_main:
 Assertion `GL(dl_rtld_map).l_libname' failed!
@pantumaca

This comment has been minimized.

pantumaca commented Jun 25, 2018

I am not sure if this is the right place... Have anyone running firefox or libreoffice?

with firefox i get a blank screen (tried the xrender option in about:config with true and false)
Libreoffice returns "no proc mounted"

i also tried others browsers as chromium (cannot create new namespace) and epiphany (i get a loop with an error i cannot remember).

@Skrmnghrd

This comment has been minimized.

Skrmnghrd commented Jun 25, 2018

@Root-voidX

This comment has been minimized.

Root-voidX commented Jun 25, 2018

You cant run any program that requires rendering without hardware/software rendering. A fix was to run libgl1-mesa-swx11, but i cant seem to find it in debian stretch. If you get that, the system will software render for you.

@DeicPro

This comment has been minimized.

DeicPro commented Jun 25, 2018

user@localhost:~$ sudo apt-file search ld-linux.so.3   
libc6-armel-cross: /usr/arm-linux-gnueabi/lib/ld-linux.so.3                                                   
libc6-armhf-cross: /usr/arm-linux-gnueabihf/lib/ld-linux.so.3

I tried symlink both to /lib/ld-linux.so.3, but Segmentation fault in both when run java

@Root-voidX

This comment has been minimized.

Root-voidX commented Jun 25, 2018

Wait do you get segfault running Java itself or running something that requires java?

@DeicPro

@DeicPro

This comment has been minimized.

DeicPro commented Jun 25, 2018

@Root-voidX both obviously.

In the last two messages was with soft float version of Oracle JDK. Now i'm trying with Hard Float again and looks left Arm 32 bits libraries in the system (and a proper interpreter), but I don't got the solution.

user@localhost:~$ file /usr/bin/java
/usr/bin/java: symbolic link to /etc/alternatives/java                                                          
                                                                                                                                          
user@localhost:~$ file /etc/alternatives/java    
/etc/alternatives/java: symbolic link to /opt/jdk1.7.0_60/jre/bin/java                                                     

user@localhost:~$ file /opt/jdk1.7.0_60/jre/bin/java
/opt/jdk1.7.0_60/jre/bin/java: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.26, BuildID[sha1]=217d6afa01cd20597fde7298fba1268ca6d08500, not stripped          

Too ldd shows this in all symbolic link & original java path:

not a dynamic executable
@Root-voidX

This comment has been minimized.

Root-voidX commented Jun 25, 2018

@DeicPro. Weird i run Java no issue on s9+. Did install everything related to java? Search java using sudo apt-cache search java and install all packages?

@DeicPro

This comment has been minimized.

DeicPro commented Jun 25, 2018

@Root-voidX I want to install Oracle JDK 7u60 (due the people says gives better performance to RuneScape) and it is installed manually, but it is 32bit armel/armhf.

I tried:

sudo dpkg --add-architecture armhf
sudo apt update
sudo apt install libc6:armhf

But Segmentation fault when call java

So IDK what trying more really :/

ATM I stay with OpenJDK which works properly (except RuneScape crash at the start of loading screen)

@DeicPro

This comment has been minimized.

DeicPro commented Jun 26, 2018

@vb0

This comment has been minimized.

vb0 commented Jun 28, 2018

For firefox I made work with browser.tabs.remote.autostart to false in about:config - #234

I tried openjdk/IcedTea for a remote console for AsrockRack and while it does start and looks ok it doesn't connect to anything/all buttons are disabled (not sure if it just can't access the network or there's something else at play).

@DeicPro

This comment has been minimized.

DeicPro commented Jun 28, 2018

I installed Oracle JDK 8u172 ARM 64 (I'm using Redmi Note 5 Global 4 GB RAM/Android 8.1/sdm636 arm64-v8a) and when run RuneScape I got this:

Exception in thread "main" java.awt.HeadlessException                                             
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)               
        at java.awt.Window.<init>(Window.java:536)                                                
        at java.awt.Frame.<init>(Frame.java:420) 
        at java.awt.Frame.<init>(Frame.java:385) 
        at app.appletviewer.a(appletviewer.java:507)                                              
        at jagexappletviewer.main(jagexappletviewer.java:34)
@pantumaca

This comment has been minimized.

pantumaca commented Jun 28, 2018

Thanks for posting the firefox fix, works fine.

What about libreoffice and its "proc not mounted" error? The "mount" command returns "proc on /proc"... Any fix?

@nakele

This comment has been minimized.

nakele commented Jun 28, 2018

Just leaving my feedback:
Device Oneplus 3t stock Oreo 8.0

What i did was, launch Userland and followed the simple steps. Installed connectBot when prompted. Launched userLand just created environment. Typed password and then i typed those commands:
su
apt-get update
apt-get upgrade
apt-get install lxde-core

At this point userLand crashed or closed every so often. I had to run dpkg --configure -a to continue and then again apt-get install lxde-core. This happened few times until lxde was completely installed.

At this point i "exit" in order to go back to the normal user and then typed
export DISPLAY=127.0.0.1:0 PULSE_SERVER=tcp:127.0.0.1:4712

Than, you need to launch Xserver XSDL Android app before starting lxde. (Look in the PlayStore if you don't have installed)

And finally startlxde &

Go back to Xserver and after few seconds you will see the desktop appear.

I installed Firefox Debian counterpart but the page won't render as stated above. The page is actually loaded, i can use the web inspector to see the html but it's all white.

That's where I'm at right now

Edit: Firefox renders correctly after trick linked above. And canvas 2d seems to be working fine as well as the web inspector.

Edit 2: Installed synaptic but i had to launch it through the root terminal. Click on icon won't produce any result, but i know it's doing something.
Through synaptic I've installed Gimp and can report it's working: new file > paint on canvas > save file.

@DeicPro

This comment has been minimized.

DeicPro commented Jul 1, 2018

@ricecube did you got run RuneScape successfuly? Me & LordButtWiggle got the same errors.

@x1unix

This comment has been minimized.

x1unix commented Jul 7, 2018

Same issue, android oreo, OnePlus 5

@deadport

This comment has been minimized.

deadport commented Jul 14, 2018

Same problem on HTC 10, Oreo

@GuyFromMars365

This comment has been minimized.

GuyFromMars365 commented Jul 30, 2018

Regarding @nakele comment is also discussed here: CypherpunkArmory/UserLAnd#69

@stringyjosh94

This comment has been minimized.

stringyjosh94 commented Sep 8, 2018

@DeicPro i got runelite running perfect, completely usable, setup UserLand with a debian filesystem, and ssh into it with connect bot, and install xserver xsdl android seperatley from marketplace, reopen your ssh into connectbot type apt-update, apt-upgrade once these processes have finished install "apt-get install lxde-core" once installed i continued with installing a browser "apt-get install iceweasel" then install your java by using "apt-get install default-jre" once all setup export your display with "export DISPLAY=:0" then "startlxde &" (make sure xdsl server is running before using the export/start commands) then load up iceweasel you'll get a blank startup page you'll need to fix "browser.tabs.remote.autostart to false in about:config" once finished restart firefox (iceweasel) when reopened head to runelite.net download the java file from there site, once download head to your directory you instaled the java file to and open a terminal window at the directory, when terminal window has opened run "java -jar RuneLite.jar" ( this is a very rough guide of how i got it working, if you want to contact me feel free, i do have a copy of the osrs mobile beta and just prefer the keyboard/mouse method.

@DavidFahrenheit

This comment has been minimized.

DavidFahrenheit commented Sep 11, 2018

Bearing in mind most of this thread goes way over my head, is it possible for me to run Octave on Userland now? Thanks

@Thaytred

This comment has been minimized.

Thaytred commented Sep 14, 2018

@stringyjosh94 works like a charm on my Galaxy note 8. Cheers bud!

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