headmelted / codebuilds

Community builds of Visual Studio Code for Chromebooks and Raspberry Pi
https://code.headmelted.com
MIT License
1.03k stars 56 forks source link

installer segfaults on Chromebook Plus #12

Open easierbycode opened 7 years ago

easierbycode commented 7 years ago

after installing extension and putting Chromebook into developer mode I try running the installer script and end up with an error signal.

I assume it's related to this crouton issue: https://github.com/dnschneid/crouton/issues/3083

here is my crouton log:

[ 2623.408] _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root [ 2623.412] X.Org X Server 1.15.1 Release Date: 2014-04-13 [ 2623.412] X Protocol Version 11, Revision 0 [ 2623.412] Build Operating System: Linux 3.2.0-67-highbank armv7l Ubuntu [ 2623.412] Current Operating System: Linux localhost 4.4.21-06459-ge91c124 #1 SMP PREEMPT Thu Feb 16 21:44:33 PST 2017 aarch64 [ 2623.413] Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 3334144 verity payload=PARTUUID=12a8c470-5762-934e-adb4-39c1a1843329/PARTNROFF=1 hashtree=PARTUUID=12a8c470-5762-934e-adb4-39c1a1843329/PARTNROFF=1 hashstart=3334144 alg=sha1 root_hexdigest=e3e53317ec954498262bc23247e1d0a9952b1acf salt=202cffe272c3df43a1e5493b640bd893970a059823ea7fd76a30d42f355942aa" noinitrd vt.global_cursor_default=0 kern_guid=12a8c470-5762-934e-adb4-39c1a1843329
[ 2623.413] Build Date: 12 February 2015 02:55:07PM [ 2623.413] xorg-server 2:1.15.1-0ubuntu2.7 (For technical support please see http://www.ubuntu.com/support) [ 2623.413] Current version of pixman: 0.30.2 [ 2623.413] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 2623.414] Markers: (--) probed, () from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 2623.419] (++) Log file: "/tmp/Xorg.crouton.1.log", Time: Mon Feb 20 12:44:01 2017 [ 2623.420] (++) Using config file: "/etc/X11/xorg-dummy.conf" [ 2623.420] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 2623.423] (==) ServerLayout "Layout0" [ 2623.423] () |-->Screen "Screen0" (0) [ 2623.423] () | |-->Monitor "Monitor0" [ 2623.424] () | |-->Device "Card0" [ 2623.424] () Option "DontVTSwitch" "true" [ 2623.424] () Option "AllowMouseOpenFail" "true" [ 2623.424] () Option "AutoAddDevices" "false" [ 2623.424] () Option "AutoEnableDevices" "false" [ 2623.424] () Option "AutoAddGPU" "false" [ 2623.424] () Not automatically adding devices [ 2623.424] () Not automatically enabling devices [ 2623.424] () Not automatically adding GPU devices [ 2623.425] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist. [ 2623.425] Entry deleted from font path. [ 2623.425] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist. [ 2623.425] Entry deleted from font path. [ 2623.425] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist. [ 2623.425] Entry deleted from font path. [ 2623.425] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist. [ 2623.425] Entry deleted from font path. [ 2623.425] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist. [ 2623.425] Entry deleted from font path. [ 2623.425] (==) FontPath set to: /usr/share/fonts/X11/misc, /usr/share/fonts/X11/Type1, built-ins [ 2623.425] (==) ModulePath set to "/usr/lib/arm-linux-gnueabihf/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules" [ 2623.425] (==) |-->Input Device "" [ 2623.425] (==) |-->Input Device "" [ 2623.425] (==) The core pointer device wasn't specified explicitly in the layout. Using the default mouse configuration. [ 2623.425] (==) The core keyboard device wasn't specified explicitly in the layout. Using the default keyboard configuration. [ 2623.425] (II) Loader magic: 0xab259f10 [ 2623.425] (II) Module ABI versions: [ 2623.425] X.Org ANSI C Emulation: 0.4 [ 2623.425] X.Org Video Driver: 15.0 [ 2623.425] X.Org XInput driver : 20.0 [ 2623.425] X.Org Server Extension : 8.0 [ 2623.426] (II) xfree86: Adding drm device (/dev/dri/card1) [ 2623.431] (EE) [ 2623.433] (EE) Backtrace: [ 2623.433] (EE) [ 2623.433] (EE) Segmentation fault at address 0x0 [ 2623.433] (EE) Fatal server error: [ 2623.434] (EE) Caught signal 11 (Segmentation fault). Server aborting [ 2623.434] (EE) [ 2623.434] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 2623.434] (EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information. [ 2623.434] (EE)

DennisLfromGA commented 7 years ago

Mostly likely duplicate of: https://github.com/dnschneid/crouton/issues/3111, https://github.com/dnschneid/crouton/issues/3098 & https://github.com/dnschneid/crouton/issues/3083

headmelted commented 7 years ago

Sorry for the late reply, been working on updates to make the whole build system open, it's not quite ready yet but getting very, very close.

Side note: It really bugs me that hardware manufacturers are trying to be so obtuse about the processors they are using. The irony of a website called whatisop.com that tells you everything about the processors except what they are is not lost on me.

Anyhow, according to this page, the processor in your laptop is ARMv8.

I'm adding dedicated support for ARMv8 in the new build system that is compiling as much as possible (Electron still doesn't acknowledge that there are multiple ARM architectures) for it as a 64-bit target, which may help with these edge cases.

Let me get that update out the door (imminently), and if it's still a problem I'll get a deeper look into this.

As an aside, I'm working through an option that would mean Crouton, and by extension Developer Mode, would no longer be required (by way of the Android jail as a host). I just haven't had time to get this finished and stable yet due to the above, but I will get to it as soon as I can.

DennisLfromGA commented 7 years ago

I'm working through an option that would mean Crouton, and by extension Developer Mode, would no longer be required (by way of the Android jail as a host).

Now that's some exciting stuff, hope it works out. 👍

headmelted commented 7 years ago

The new builds have since been deployed - can I ask you to try this again and let me know if you're still getting segfaults?

easierbycode commented 7 years ago

almost works!

when I run code I get xiwi: code-insiders: not found

so I tried: sudo sh ~/Downloads/crouton -t xiwi -n code-oss-chroot -u

after which I get: /usr/bin/code-oss: line 35: /usr/share/code-oss/bin/../code-oss: No such file or directory

RossFlood commented 7 years ago

I was going through the install just now and got crouton and everything installed went to the VS install and it said that the aarch64 was disabled as this was currently being worked on.

DanielFallon commented 7 years ago

@RossFlood @headmelted

I got the installer working on the Samsung Chromebook Plus (AArch64), this weekend, I'll make the necessary modifications to the install scripts to make it behave itself.

It appears that the armhf architecture chroots still report the original uname.

Also @headmelted, to inform my pull request, you made reference in the chromebook.sh to arm64, was this a typo? arm64 is the name used by Apple for their flavor of 64 bit arm.

DanielFallon commented 6 years ago

Yea, I've got it running. I'll try to reply tomorrow with fixes for it.

It hinges on creating an arm 32 bit chroot

DJF

On Fri, Jan 5, 2018, 7:02 PM Gary Manfredi notifications@github.com wrote:

Has anyone else gotten this working on Samsung Chromebook Plus? Installation will fail near the very end and suddenly exit the shell and clear the terminal. I've tried this a number of times.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/headmelted/codebuilds/issues/12#issuecomment-355709685, or mute the thread https://github.com/notifications/unsubscribe-auth/AEgHoutx2bPCFAB_fAhqSSBe6WraggFrks5tHsY8gaJpZM4MGkjU .

Inuart commented 6 years ago

Did you manage to fix it? :open_mouth: