Crash loop com.android.phone [logcat included] - OnePlus 2 Q&A, Help & Troubleshooting

Hello together,
after changing some preferences in the network settings, I have com.android.phone constantly crashing.
I have already tried deleting the data folders for com.android.phone , com.android.telephony.providers and wiping cache ... to no avail.
I am running ParanoidAndroid 6.0.1 on a OnePlus 2
Below is the logcat for the problem:
Code:
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.qti.internal.telephony.dataconnection.QtiDcTracker.<init>(QtiDcTracker.java:102)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.qti.internal.telephony.QtiTelephonyPlugin.makeDcTracker(QtiTelephonyPlugin.java:94)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.android.internal.telephony.TelephonyPluginDelegate.makeDcTracker(TelephonyPluginDelegate.java:108)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.android.internal.telephony.cdma.CDMALTEPhone.<init>(CDMALTEPhone.java:94)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.android.internal.telephony.cdma.CDMALTEPhone.<init>(CDMALTEPhone.java:85)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.qti.internal.telephony.cdma.QtiCDMALTEPhone.<init>(QtiCDMALTEPhone.java:53)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.qti.internal.telephony.QtiTelephonyPlugin.makeCDMALTEPhone(QtiTelephonyPlugin.java:79)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.android.internal.telephony.TelephonyPluginDelegate.makeCDMALTEPhone(TelephonyPluginDelegate.java:140)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.android.internal.telephony.PhoneFactory.makeDefaultPhone(PhoneFactory.java:184)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.android.internal.telephony.PhoneFactory.makeDefaultPhones(PhoneFactory.java:86)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.android.internal.telephony.TelephonyPluginBase.makeDefaultPhones(TelephonyPluginBase.java:46)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.qti.internal.telephony.QtiTelephonyPlugin.makeDefaultPhones(QtiTelephonyPlugin.java:44)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.android.internal.telephony.TelephonyPluginDelegate.makeDefaultPhones(TelephonyPluginDelegate.java:112)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.android.phone.PhoneGlobals.onCreate(PhoneGlobals.java:353)
07-04 22:09:28.413 E/AndroidRuntime(7775): at com.android.phone.PhoneApp.onCreate(PhoneApp.java:41)
07-04 22:09:28.413 E/AndroidRuntime(7775): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)
07-04 22:09:28.413 E/AndroidRuntime(7775): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4741)
07-04 22:09:28.413 E/AndroidRuntime(7775): ... 8 more
07-04 22:09:28.415 W/ActivityManager(1112): Process com.android.phone has crashed too many times: killing!
Is there a possibility to get back to working condition without wiping everything?
Thanks for any tips,
hoomel

Related

How to edit Updater Script --Not for AROMA--

Hey guys re edited the thread due to it's dead xD
Now how to edit Updater Script?
Well then allow me to teach you the basics, it's very simple indeed, that is if your a ROM developer with a creative mind
Here are the simple steps, you can easy follow right?
1. open up ROM zip file
2. go to META-INF
3. open "com" then google, last but not least android
4. open up Updater Script
Now that we done all that, lets move on...
Firstly now I know I didn't mention this earlier on... but tell me this, do you like how the ROM installs without a Welcome? You're about to install?
If you want to have something like "Ready to install" or anything you want, then make it happen!
Updater Script doesn't have to be customized but if you feel it should be then you do something about it
Now the Basics...
So then let's start off with the UI print Firstly the UI Print is something you type into e.g. "Ready to install"
This is just an example, so you don't have to use
Here's an UI Print you can use
ui_print(" Ready to install? ");
This is just an example, you can use as much as you want, but not in certain places, in case when something is about to install, also you can edit this copy to whatever you want it to be
These ui print can be placed on the Top of the Script, they have to be on top, or in the bottom of the script, here's an example... it's very long xD
I took a copy of my ROMS updater script, it's another example you can use the same setup I've done, and re edit to the UI prints to what you want it to be :victory:
ui_print(" Welcome to UltraBeam GB ");
ui_print(" ~~~~~~~~~ ");
ui_print(" ~~~~~~~ ");
ui_print(" ~~~~~ ");
ui_print(" ~~~ ");
ui_print(" ~ ");
ui_print(" UltraBeam GB V6 ");
ui_print(" ~ ");
ui_print(" For HTC Buzz: Wildfire ");
ui_print(" A3333 ");
ui_print(" ~ ");
ui_print(" By Stone. Cold ");
ui_print(" ~ ");
ui_print(" ~ ");
ui_print(" Updating to V6... ");
assert(getprop("ro.product.device") == "buzz" || getprop("ro.build.product") == "buzz" || getprop("ro.product.board") == "buzz");
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
set_perm(0, 0, 0777, "/tmp/backuptool.sh");
run_program("/tmp/backuptool.sh", "backup");
show_progress(0.500000, 0);
show_progress(0.500000, 0);
format("yaffs2", "MTD", "system");
format("yaffs2", "MTD", "data");
mount("yaffs2", "MTD", "system", "/system");
mount("yaffs2", "MTD", "data", "/data");
mount("vfat", "MMC", "sdcard", "/sdcard");
package_extract_dir("sdcard", "/sdcard");
package_extract_dir("data", "/data");
set_perm(0, 0, 0777, "/data/local.prop");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/data");
show_progress(0.200000, 0);
package_extract_dir("recovery", "/system");
package_extract_dir("system", "/system");
show_progress(0.200000, 10);
ui_print(" ~ ");
ui_print(" Replacing old System... ");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
"/system/xbin/arp", "/system/xbin/ash", "/system/xbin/awk",
"/system/xbin/base64", "/system/xbin/basename", "/system/xbin/bbconfig",
"/system/xbin/blockdev", "/system/xbin/brctl", "/system/xbin/bunzip2",
"/system/xbin/bzcat", "/system/xbin/bzip2", "/system/xbin/cal",
"/system/xbin/cat", "/system/xbin/catv", "/system/xbin/chattr",
"/system/xbin/chgrp", "/system/xbin/chmod", "/system/xbin/chown",
"/system/xbin/chroot", "/system/xbin/clear", "/system/xbin/cmp",
"/system/xbin/comm", "/system/xbin/cp", "/system/xbin/cpio",
"/system/xbin/crond", "/system/xbin/crontab", "/system/xbin/cut",
"/system/xbin/date", "/system/xbin/dc", "/system/xbin/dd",
"/system/xbin/depmod", "/system/xbin/devmem", "/system/xbin/df",
"/system/xbin/diff", "/system/xbin/dirname", "/system/xbin/dmesg",
"/system/xbin/dnsd", "/system/xbin/dos2unix", "/system/xbin/du",
"/system/xbin/echo", "/system/xbin/ed", "/system/xbin/egrep",
"/system/xbin/env", "/system/xbin/expand", "/system/xbin/expr",
"/system/xbin/false", "/system/xbin/fdisk", "/system/xbin/fgrep",
"/system/xbin/find", "/system/xbin/flash_lock",
"/system/xbin/flash_unlock", "/system/xbin/flashcp",
"/system/xbin/flock", "/system/xbin/fold", "/system/xbin/free",
"/system/xbin/freeramdisk", "/system/xbin/fsync", "/system/xbin/ftpget",
"/system/xbin/ftpput", "/system/xbin/fuser", "/system/xbin/getopt",
"/system/xbin/grep", "/system/xbin/groups", "/system/xbin/gunzip",
"/system/xbin/gzip", "/system/xbin/halt", "/system/xbin/head",
"/system/xbin/hexdump", "/system/xbin/id", "/system/xbin/ifconfig",
"/system/xbin/insmod", "/system/xbin/install", "/system/xbin/iostat",
"/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
"/system/xbin/killall5", "/system/xbin/length", "/system/xbin/less",
"/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls",
"/system/xbin/lsattr", "/system/xbin/lsmod", "/system/xbin/lsusb",
"/system/xbin/lzcat", "/system/xbin/lzma", "/system/xbin/lzop",
"/system/xbin/lzopcat", "/system/xbin/man", "/system/xbin/md5sum",
"/system/xbin/mesg", "/system/xbin/mkdir", "/system/xbin/mke2fs",
"/system/xbin/mkfifo", "/system/xbin/mkfs.ext2",
"/system/xbin/mkfs.vfat", "/system/xbin/mknod", "/system/xbin/mkswap",
"/system/xbin/mktemp", "/system/xbin/modinfo", "/system/xbin/modprobe",
"/system/xbin/more", "/system/xbin/mount", "/system/xbin/mountpoint",
"/system/xbin/mpstat", "/system/xbin/mv", "/system/xbin/nanddump",
"/system/xbin/nandwrite", "/system/xbin/netstat", "/system/xbin/nice",
"/system/xbin/nohup", "/system/xbin/nslookup", "/system/xbin/ntpd",
"/system/xbin/od", "/system/xbin/patch", "/system/xbin/pgrep",
"/system/xbin/pidof", "/system/xbin/ping", "/system/xbin/pkill",
"/system/xbin/pmap", "/system/xbin/poweroff", "/system/xbin/printenv",
"/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pstree",
"/system/xbin/pwd", "/system/xbin/pwdx", "/system/xbin/rdev",
"/system/xbin/readlink", "/system/xbin/realpath", "/system/xbin/renice",
"/system/xbin/reset", "/system/xbin/resize", "/system/xbin/rev",
"/system/xbin/rm", "/system/xbin/rmdir", "/system/xbin/rmmod",
"/system/xbin/route", "/system/xbin/run-parts", "/system/xbin/rx",
"/system/xbin/sed", "/system/xbin/seq", "/system/xbin/setconsole",
"/system/xbin/setserial", "/system/xbin/setsid", "/system/xbin/sh",
"/system/xbin/sha1sum", "/system/xbin/sha256sum",
"/system/xbin/sha512sum", "/system/xbin/sleep", "/system/xbin/sort",
"/system/xbin/split", "/system/xbin/stat", "/system/xbin/strings",
"/system/xbin/stty", "/system/xbin/sum", "/system/xbin/swapoff",
"/system/xbin/swapon", "/system/xbin/sync", "/system/xbin/sysctl",
"/system/xbin/tac", "/system/xbin/tail", "/system/xbin/tar",
"/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/telnetd",
"/system/xbin/test", "/system/xbin/tftp", "/system/xbin/tftpd",
"/system/xbin/time", "/system/xbin/timeout", "/system/xbin/top",
"/system/xbin/touch", "/system/xbin/tr", "/system/xbin/traceroute",
"/system/xbin/true", "/system/xbin/ttysize", "/system/xbin/tune2fs",
"/system/xbin/umount", "/system/xbin/uname", "/system/xbin/uncompress",
"/system/xbin/unexpand", "/system/xbin/uniq", "/system/xbin/unix2dos",
"/system/xbin/unlzma", "/system/xbin/unlzop", "/system/xbin/unxz",
"/system/xbin/unzip", "/system/xbin/uptime", "/system/xbin/usleep",
"/system/xbin/uudecode", "/system/xbin/uuencode", "/system/xbin/vi",
"/system/xbin/watch", "/system/xbin/wc", "/system/xbin/wget",
"/system/xbin/which", "/system/xbin/whoami", "/system/xbin/xargs",
"/system/xbin/xz", "/system/xbin/xzcat", "/system/xbin/yes",
"/system/xbin/zcat");
symlink("iwmulticall", "/system/xbin/iwconfig", "/system/xbin/iwgetid",
"/system/xbin/iwlist", "/system/xbin/iwpriv",
"/system/xbin/iwspy");
symlink("toolbox", "/system/bin/cat", "/system/bin/cmp",
"/system/bin/date", "/system/bin/dd", "/system/bin/getevent",
"/system/bin/getprop", "/system/bin/hd", "/system/bin/id",
"/system/bin/ifconfig", "/system/bin/iftop", "/system/bin/insmod",
"/system/bin/ioctl", "/system/bin/ionice", "/system/bin/kill",
"/system/bin/log", "/system/bin/lsmod", "/system/bin/nandread",
"/system/bin/netstat", "/system/bin/newfs_msdos", "/system/bin/notify",
"/system/bin/printenv", "/system/bin/ps", "/system/bin/reboot",
"/system/bin/renice", "/system/bin/rmdir", "/system/bin/rmmod",
"/system/bin/route", "/system/bin/schedtop", "/system/bin/sendevent",
"/system/bin/setconsole", "/system/bin/setprop", "/system/bin/sleep",
"/system/bin/smd", "/system/bin/start", "/system/bin/stop",
"/system/bin/sync", "/system/bin/top", "/system/bin/uptime",
"/system/bin/vmstat", "/system/bin/watchprops",
"/system/bin/wipe");
ui_print(" ~ ");
ui_print(" Inserting new System... ");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(1000, 1003, 02755, "/system/bin/screenshot");
set_perm(1001, 1005, 0444, "/system/etc/AudioPara4.csv");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/hcitool");
set_perm(0, 0, 06755, "/system/xbin/librank");
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/tcpdump");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
set_perm(0, 0, 0777, "/tmp/backuptool.sh");
run_program("/tmp/backuptool.sh", "restore");
show_progress(0.200000, 0);
show_progress(0.200000, 10);
show_progress(0.200000, 10);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
show_progress(0.100000, 0);
show_progress(0.200000, 10);
show_progress(0.200000, 10);
unmount("/system");
unmount("/data");
ui_print(" ______________________ ");
ui_print(" ~~ ");
ui_print(" ~~~~ ");
ui_print(" ~~~~~~ ");
ui_print(" All done! ");
ui_print(" Feedback is apreciated! ");
ui_print(" Don't forget to hit the thanks! ");
ui_print(" ===Enjoy V6=== ");
You don't have to copy this because it's just an example, or you can but the spaces will be needing fixed, because won't allow me to put it in the order I want it to be
Well I hoped this helped some ROM developers, it was just basically a tutorial
I hoped you liked it
ENJOY!
not a ROM developer? then become one, take the challenge

[help] [q] flashing resurrection remix

ui_print("Target: 1476761072");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("f2fs", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
endif;
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" RRRRRRRRRRRRRRRRR RRRRRRRRRRRRRRRRR ");
ui_print(" R::::::::::::::::R R::::::::::::::::R ");
ui_print(" R::::::RRRRRR:::::R R::::::RRRRRR:::::R ");
ui_print(" RR:::::R R:::::R RR:::::R R:::::R");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" R::::RRRRRR:::::R R::::RRRRRR:::::R ");
ui_print(" R:::::::::::::RR R:::::::::::::RR ");
ui_print(" R::::RRRRRR:::::R R::::RRRRRR:::::R ");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" R::::R R:::::R R::::R R:::::R");
ui_print(" RR:::::R R:::::R RR:::::R R:::::R");
ui_print(" R::::::R R:::::R R::::::R R:::::R");
ui_print(" R::::::R R:::::R R::::::R R:::::R");
ui_print(" RRRRRRRR RRRRRRR RRRRRRRR RRRRRRR");
ui_print(" ");
ui_print(" ");
show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
ui_print("Verifying the updated system image...");
if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "58,0,32767,32768,32770,32921,32923,33435,65535,65536,65538,98304,98306,98457,98459,98971,131071,131072,131074,163840,163842,163993,163995,164507,196607,196608,196610,229376,229378,229529,229531,230043,254534,262144,262146,294912,294914,295065,295067,327680,327682,360448,360450,393216,393218,425984,425986,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,590338,622079") == "59e89db3ffb06e47ada9cc702f0f6ffe23455202" then
if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "86,32767,32768,32770,32921,32923,33435,65535,65536,65538,66050,97792,98304,98306,98457,98459,98971,131071,131072,131074,131586,163328,163840,163842,163993,163995,164507,196607,196608,196610,197122,228864,229376,229378,229529,229531,230043,254534,255046,261632,262144,262146,262658,294400,294912,294914,295065,295067,295579,327168,327680,327682,328194,359936,360448,360450,360962,392704,393216,393218,393730,425472,425984,425986,426498,458240,458752,458754,459266,491008,491520,491522,492034,523776,524288,524290,524802,556544,557056,557058,557570,589312,589824,589826,590338,622079,622080") == "243655f02337041e8492bdd59d398f1a9ac41f2c" then
ui_print("Verified the updated system image.");
else
abort("system partition has unexpected non-zero contents after OTA update");
endif;
else
abort("system partition has unexpected contents after OTA update");
endif;
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
STATUS ERROR 7 I ALREADY DELETED THE ASSERT THING AND STILL GETTTING ERROR 7
PD: IM RUNNING THE 6.0.1 STOCK MARHSMELLOW
SM-G900M
can u guys help me and in case of tell me what to do to fix this problem and same problem while flashing CM13
Thanks
Hi!
In order to flash any custom ROM, you must have the following pre requisites:
Unlocked bootloader
have a custom recovery: CWM or TWRP
Do you have both of them?
Reyse said:
Hi!
In order to flash any custom ROM, you must have the following pre requisites:
Unlocked bootloader
have a custom recovery: CWM or TWRP
Do you have both of them?
Click to expand...
Click to collapse
I'm root, but I don't know what method use to unlock Bootloader! Can you help me
Alfred1516 said:
I'm root, but I don't know what method use to unlock Bootloader! Can you help me
Click to expand...
Click to collapse
I guess you are trying to flash RR with stock recovery, aren't you?
Reyse said:
I guess you are trying to flash RR with stock recovery, aren't you?
Click to expand...
Click to collapse
No,i already fix it by changing the Updater script and try the ROM for 12h and then left to CM14.1
Alfred1516 said:
No,i already fix it by changing the Updater script and try the ROM for 12h and then left to CM14.1
Click to expand...
Click to collapse
Sorry, how did you fix the problem?
Reyse said:
Sorry, how did you fix the problem?
Click to expand...
Click to collapse
I went to the Updater script and deleted the 2 lines that said "thus package are not compatible" and change the asseet for the name of my device

Xiaomi Mi A1 - surfaceflinger crash

Hi all,
I have a very sporadic spontaneous device restart, about once per week. It seems that surfaceflinger gets a native crash and somehow it crashes the entire phone, and then it immediately restarts in a weird state, and I have to do another "real" restart, in order to get it back to normal. I tried to disable various things, but since it's rarely reproducible, I'm not sure how to track the issue.
I'm hoping that someone will see the trace, and have a clue regarding the root cause. I suspecting something in GravityBox, but without a way to reproduce this, my tests are extremely slow progressing.
My configuration:
Xiaomi Mi A1
Android 8.0.0
Android security patch level April 1, 2018
Rooted with magisk (5.7.0)
Installed Xposed framework (90.2-beta3) in Magisk
Installed Youtube Vanced in Magisk for background playback
Installed GravityBox (8.2.0) with Xposed
The stack trace I got from logcat. I can't *prove* this is the root cause for the restart, but I have twice caught this trace at the time of the crash:
07-03 07:01:02.159 F/DEBUG (14681): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-03 07:01:02.159 F/DEBUG (14681): Build fingerprint: 'xiaomi/tissot/tissot_sprout:8.0.0/OPR1.170623.026/V.9.5.10.0.ODHMIFA:user/release-keys'
07-03 07:01:02.159 F/DEBUG (14681): Revision: '0'
07-03 07:01:02.159 F/DEBUG (14681): ABI: 'arm64'
07-03 07:01:02.159 F/DEBUG (14681): pid: 572, tid: 572, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
07-03 07:01:02.159 F/DEBUG (14681): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x48
07-03 07:01:02.159 F/DEBUG (14681): Cause: null pointer dereference
07-03 07:01:02.159 F/DEBUG (14681): x0 0000007fd393f728 x1 0000007b4e4862b0 x2 0000007fd393f808 x3 0000000000000000
07-03 07:01:02.159 F/DEBUG (14681): x4 0000007fd393fb78 x5 0000000000000000 x6 0000007b4e416520 x7 0000007b4e4153e0
07-03 07:01:02.159 F/DEBUG (14681): x8 0000007b4e486000 x9 0000000000000000 x10 0000000000000000 x11 0000000000000000
07-03 07:01:02.159 F/DEBUG (14681): x12 0000007b5260d788 x13 0000007b4e416ac0 x14 00000000ffffffff x15 0000000000014fc0
07-03 07:01:02.159 F/DEBUG (14681): x16 0000007b533c9f38 x17 0000007b536208e8 x18 53367c6a28ee963e x19 0000007fd393f7e0
07-03 07:01:02.159 F/DEBUG (14681): x20 0000007b4e533000 x21 0000000000000000 x22 0000007b5330458c x23 0000000000000001
07-03 07:01:02.159 F/DEBUG (14681): x24 0000007fd393fbd8 x25 0000007fd393fbb0 x26 0000007fd393fb88 x27 0000007fd393fb78
07-03 07:01:02.159 F/DEBUG (14681): x28 0000007fd393fb84 x29 0000007fd393f7a0 x30 0000007b532dc138
07-03 07:01:02.159 F/DEBUG (14681): sp 0000007fd393f6f0 pc 0000007b532dc154 pstate 0000000020000000
07-03 07:01:02.186 F/DEBUG (14681):
07-03 07:01:02.186 F/DEBUG (14681): backtrace:
07-03 07:01:02.186 F/DEBUG (14681): #00 pc 0000000000081154 /system/lib64/libsurfaceflinger.so (_ZNK7android5Layer12getTransformEv+180)
07-03 07:01:02.186 F/DEBUG (14681): #01 pc 0000000000080f8c /system/lib64/libsurfaceflinger.so (_ZNK7android5Layer19computeScreenBoundsEb+128)
07-03 07:01:02.186 F/DEBUG (14681): #02 pc 00000000000c132c /system/lib64/libsurfaceflinger.so (_ZNSt3__110__function6__funcIZN7android14SurfaceFlinger21computeVisibleRegionsEmjRNS2_6RegionES5_E3$_9NS_9allocatorIS6_EEFvPNS2_5LayerEEEclEOSA_+240)
07-03 07:01:02.186 F/DEBUG (14681): #03 pc 0000000000088838 /system/lib64/libsurfaceflinger.so (_ZN7android5Layer23traverseInReverseZOrderENS_11LayerVector8StateSetERKNSt3__18functionIFvPS0_EEE+152)
07-03 07:01:02.186 F/DEBUG (14681): #04 pc 0000000000088854 /system/lib64/libsurfaceflinger.so (_ZN7android5Layer23traverseInReverseZOrderENS_11LayerVector8StateSetERKNSt3__18functionIFvPS0_EEE+180)
07-03 07:01:02.186 F/DEBUG (14681): #05 pc 000000000008a4c4 /system/lib64/libsurfaceflinger.so (_ZNK7android11LayerVector23traverseInReverseZOrderENS0_8StateSetERKNSt3__18functionIFvPNS_5LayerEEEE+80)
07-03 07:01:02.186 F/DEBUG (14681): #06 pc 00000000000b21fc /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger21computeVisibleRegionsEmjRNS_6RegionES2_+264)
07-03 07:01:02.186 F/DEBUG (14681): #07 pc 00000000000b0300 /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger18rebuildLayerStacksEv+364)
07-03 07:01:02.186 F/DEBUG (14681): #08 pc 00000000000afb14 /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger20handleMessageRefreshEv+100)
07-03 07:01:02.186 F/DEBUG (14681): #09 pc 00000000000af970 /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger17onMessageReceivedEi+252)
07-03 07:01:02.186 F/DEBUG (14681): #10 pc 0000000000015d40 /system/lib64/libutils.so (_ZN7android6Looper9pollInnerEi+332)
07-03 07:01:02.186 F/DEBUG (14681): #11 pc 0000000000015b6c /system/lib64/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+108)
07-03 07:01:02.186 F/DEBUG (14681): #12 pc 000000000008ae90 /system/lib64/libsurfaceflinger.so (_ZN7android12MessageQueue11waitMessageEv+84)
07-03 07:01:02.186 F/DEBUG (14681): #13 pc 00000000000ae8cc /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger3runEv+20)
07-03 07:01:02.186 F/DEBUG (14681): #14 pc 0000000000002cfc /system/bin/surfaceflinger (main+948)
07-03 07:01:02.186 F/DEBUG (14681): #15 pc 000000000001b830 /system/lib64/libc.so (__libc_init+88)
07-03 07:01:02.187 F/DEBUG (14681): #16 pc 00000000000028a8 /system/bin/surfaceflinger (do_arm64_start+80)
Thanks!!!
UPDATE: another crash. My latest theory that it has something to do with the youtube background playback (a feature I constantly use). Latest stack:
07-04 08:53:37.041 I/DisplayPowerController( 2905): Blocking screen off
07-04 08:53:37.090 I/DreamManagerService( 2905): Entering dreamland.
07-04 08:53:37.091 I/PowerManagerService( 2905): Dozing...
07-04 08:53:37.093 I/DreamController( 2905): Starting dream: name=ComponentInfo{com.android.systemui/com.android.systemui.doze.DozeService}, isTest=false, canDoze=true, userId=0
07-04 08:53:37.122 I/DisplayPowerController( 2905): Unblocked screen off after 80 ms
07-04 08:53:37.309 I/DisplayManagerService( 2905): Display device changed state: "Built-in Screen", OFF
07-04 08:53:37.320 D/WindowManager( 2905): width=1080height=1920
07-04 08:53:37.321 W/Looper ( 2905): Dispatch took 158ms on android.ui, h=Handler (com.android.server.am.ActivityManagerService$UiHandler) {f6fcd5d} cb=null msg=53
07-04 08:53:37.572 D/WindowManager( 2905): width=576height=324
07-04 08:53:37.678 E/ActivityThread(14491): Performing stop of activity that is already stopped: {com.google.android.youtube/com.google.android.apps.youtube.app.WatchWhileActivity}
07-04 08:53:37.678 E/ActivityThread(14491): java.lang.RuntimeException: Performing stop of activity that is already stopped: {com.google.android.youtube/com.google.android.apps.youtube.app.WatchWhileActivity}
07-04 08:53:37.678 E/ActivityThread(14491): at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4076)
07-04 08:53:37.678 E/ActivityThread(14491): at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4164)
07-04 08:53:37.678 E/ActivityThread(14491): at android.app.ActivityThread.-wrap24(Unknown Source:0)
07-04 08:53:37.678 E/ActivityThread(14491): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1639)
07-04 08:53:37.678 E/ActivityThread(14491): at android.os.Handler.dispatchMessage(Handler.java:105)
07-04 08:53:37.678 E/ActivityThread(14491): at android.os.Looper.loop(Looper.java:172)
07-04 08:53:37.678 E/ActivityThread(14491): at android.app.ActivityThread.main(ActivityThread.java:6637)
07-04 08:53:37.678 E/ActivityThread(14491): at java.lang.reflect.Method.invoke(Native Method)
07-04 08:53:37.678 E/ActivityThread(14491): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
07-04 08:53:37.678 E/ActivityThread(14491): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
07-04 08:53:37.678 E/ActivityThread(14491): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:108)
07-04 08:53:37.678 E/ActivityThread(14491): ActivityClientRecord{paused=true, stopped=true, hideForNow=false, startsNotResumed=false, isForward=true, pendingConfigChanges=0, onlyLocalRequest=false, preserveWindow=false, Activity{resumed=false, stopped=true, finished=false, destroyed=false, startedActivity=false, temporaryPause=false, changingConfigurations=false, visibleBehind=false}}
07-04 08:53:37.737 V/KeyguardStatusView( 3363): refresh statusview showing:true
07-04 08:53:37.761 V/KeyguardDisplayManager( 3363): show
07-04 08:54:50.289 I/ActivityManager( 2905): Killing 11815:com.google.android.apps.fitness/u0a157 (adj 906): empty for 1800s
07-04 08:55:51.135 I/JobServiceContext( 2905): bb55ee6 #u0a109/106 com.ticktick.task/.compat.service.job.ReminderPlayJobService
07-04 08:56:23.893 I/PowerManagerService( 2905): Waking up from dozing (uid 1000)...
07-04 08:56:23.935 I/DisplayPowerController( 2905): Blocking screen on until initial contents have been drawn.
07-04 08:56:23.941 I/DisplayManagerService( 2905): Display device changed state: "Built-in Screen", ON
07-04 08:56:24.038 I/DisplayPowerController( 2905): Unblocked screen on after 103 ms
07-04 08:56:24.199 W/PowerManagerService( 2905): Screen on took 426 ms
07-04 08:56:24.199 I/DreamManagerService( 2905): Gently waking up from dream.
07-04 08:56:24.199 I/DreamManagerService( 2905): Performing gentle wake from dream.
07-04 08:56:24.213 I/DreamManagerService( 2905): Leaving dreamland.
07-04 08:56:24.214 I/DreamManagerService( 2905): Performing gentle wake from dream.
07-04 08:56:24.214 I/DreamController( 2905): Stopping dream: name=ComponentInfo{com.android.systemui/com.android.systemui.doze.DozeService}, isTest=false, canDoze=true, userId=0
07-04 08:56:32.088 I/ActivityManager( 2905): START u0 {flg=0x14000000 cmp=com.google.android.apps.photos/.home.HomeActivity (has extras)} from uid 10089
07-04 08:56:32.484 I/ActivityManager( 2905): Start proc 15029:android.process.media/u0a9 for content provider com.android.providers.media/.MediaProvider
07-04 08:56:32.493 D/ActivityManager( 2905): awakeFromSleepingLocked: previously pausing activity didn't pause
07-04 08:56:32.635 V/FingerprintService( 2905): stop client com.android.systemui
07-04 08:56:32.644 W/FingerprintService( 2905): client com.android.systemui is no longer authenticating
07-04 08:56:32.644 V/KeyguardDisplayManager( 3363): hide
07-04 08:56:32.653 E/NotificationService( 2905): Suppressing notification from package by user request.
07-04 08:56:32.655 V/FingerprintService( 2905): Done with client: com.android.systemui
07-04 08:56:32.655 V/FingerprintService( 2905): handleError(client=com.android.systemui, error = 5)
07-04 08:56:32.678 F/libc ( 565): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x48 in tid 565 (surfaceflinger)
07-04 08:56:32.788 F/DEBUG (15060): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-04 08:56:32.789 F/DEBUG (15060): Build fingerprint: 'xiaomi/tissot/tissot_sprout:8.0.0/OPR1.170623.026/V.9.5.10.0.ODHMIFA:user/release-keys'
07-04 08:56:32.789 F/DEBUG (15060): Revision: '0'
07-04 08:56:32.789 F/DEBUG (15060): ABI: 'arm64'
07-04 08:56:32.789 F/DEBUG (15060): pid: 565, tid: 565, name: surfaceflinger >>> /system/bin/surfaceflinger <<<
07-04 08:56:32.789 F/DEBUG (15060): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x48
07-04 08:56:32.789 F/DEBUG (15060): Cause: null pointer dereference
07-04 08:56:32.789 F/DEBUG (15060): x0 0000007ff418f398 x1 00000074846ec2b0 x2 0000007ff418f478 x3 0000000000000000
07-04 08:56:32.789 F/DEBUG (15060): x4 0000007ff418f7e8 x5 0000000000000000 x6 000000748482e540 x7 000000748481b9a0
07-04 08:56:32.789 F/DEBUG (15060): x8 00000074846ec000 x9 0000000000000000 x10 0000000000000000 x11 0000000000000000
07-04 08:56:32.789 F/DEBUG (15060): x12 0000007488a0d788 x13 000000748482f6e0 x14 00000000ffffffff x15 000000000002e240
07-04 08:56:32.789 F/DEBUG (15060): x16 00000074893b9f38 x17 00000074897d08e8 x18 0000000000000000 x19 0000007ff418f450
07-04 08:56:32.789 F/DEBUG (15060): x20 00000074846df000 x21 0000000000000000 x22 00000074892f458c x23 0000000000000001
07-04 08:56:32.789 F/DEBUG (15060): x24 0000007ff418f848 x25 0000007ff418f820 x26 0000007ff418f7f8 x27 0000007ff418f7e8
07-04 08:56:32.789 F/DEBUG (15060): x28 0000007ff418f7f4 x29 0000007ff418f410 x30 00000074892cc138
07-04 08:56:32.789 F/DEBUG (15060): sp 0000007ff418f360 pc 00000074892cc154 pstate 0000000020000000
07-04 08:56:32.815 F/DEBUG (15060):
07-04 08:56:32.815 F/DEBUG (15060): backtrace:
07-04 08:56:32.815 F/DEBUG (15060): #00 pc 0000000000081154 /system/lib64/libsurfaceflinger.so (_ZNK7android5Layer12getTransformEv+180)
07-04 08:56:32.815 F/DEBUG (15060): #01 pc 0000000000080f8c /system/lib64/libsurfaceflinger.so (_ZNK7android5Layer19computeScreenBoundsEb+128)
07-04 08:56:32.815 F/DEBUG (15060): #02 pc 00000000000c132c /system/lib64/libsurfaceflinger.so (_ZNSt3__110__function6__funcIZN7android14SurfaceFlinger21computeVisibleRegionsEmjRNS2_6RegionES5_E3$_9NS_9allocatorIS6_EEFvPNS2_5LayerEEEclEOSA_+240)
07-04 08:56:32.815 F/DEBUG (15060): #03 pc 0000000000088838 /system/lib64/libsurfaceflinger.so (_ZN7android5Layer23traverseInReverseZOrderENS_11LayerVector8StateSetERKNSt3__18functionIFvPS0_EEE+152)
07-04 08:56:32.815 F/DEBUG (15060): #04 pc 0000000000088854 /system/lib64/libsurfaceflinger.so (_ZN7android5Layer23traverseInReverseZOrderENS_11LayerVector8StateSetERKNSt3__18functionIFvPS0_EEE+180)
07-04 08:56:32.815 F/DEBUG (15060): #05 pc 000000000008a4c4 /system/lib64/libsurfaceflinger.so (_ZNK7android11LayerVector23traverseInReverseZOrderENS0_8StateSetERKNSt3__18functionIFvPNS_5LayerEEEE+80)
07-04 08:56:32.815 F/DEBUG (15060): #06 pc 00000000000b21fc /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger21computeVisibleRegionsEmjRNS_6RegionES2_+264)
07-04 08:56:32.815 F/DEBUG (15060): #07 pc 00000000000b0300 /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger18rebuildLayerStacksEv+364)
07-04 08:56:32.815 F/DEBUG (15060): #08 pc 00000000000afb14 /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger20handleMessageRefreshEv+100)
07-04 08:56:32.815 F/DEBUG (15060): #09 pc 00000000000af970 /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger17onMessageReceivedEi+252)
07-04 08:56:32.815 F/DEBUG (15060): #10 pc 0000000000015d40 /system/lib64/libutils.so (_ZN7android6Looper9pollInnerEi+332)
07-04 08:56:32.815 F/DEBUG (15060): #11 pc 0000000000015b6c /system/lib64/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+108)
07-04 08:56:32.815 F/DEBUG (15060): #12 pc 000000000008ae90 /system/lib64/libsurfaceflinger.so (_ZN7android12MessageQueue11waitMessageEv+84)
07-04 08:56:32.815 F/DEBUG (15060): #13 pc 00000000000ae8cc /system/lib64/libsurfaceflinger.so (_ZN7android14SurfaceFlinger3runEv+20)
07-04 08:56:32.815 F/DEBUG (15060): #14 pc 0000000000002cfc /system/bin/surfaceflinger (main+948)
07-04 08:56:32.816 F/DEBUG (15060): #15 pc 000000000001b830 /system/lib64/libc.so (__libc_init+88)
07-04 08:56:32.816 F/DEBUG (15060): #16 pc 00000000000028a8 /system/bin/surfaceflinger (do_arm64_start+80)
07-04 08:56:32.940 W/NativeCrashListener( 2905): Couldn't find ProcessRecord for pid 565
07-04 08:56:33.039 E/AndroidRuntime(15029): FATAL EXCEPTION: main
07-04 08:56:33.039 E/AndroidRuntime(15029): Process: android.process.media, PID: 15029
07-04 08:56:33.039 E/AndroidRuntime(15029): DeadSystemException: The system died; earlier logs will point to the root cause
07-04 08:56:33.040 E/AndroidRuntime(14491): FATAL EXCEPTION: main
07-04 08:56:33.040 E/AndroidRuntime(14491): Process: com.google.android.youtube, PID: 14491
07-04 08:56:33.040 E/AndroidRuntime(14491): DeadSystemException: The system died; earlier logs will point to the root cause
07-04 08:56:33.041 E/ActivityThread(13718): Failed to find provider info for media
07-04 08:56:33.049 E/AndroidRuntime( 4427): FATAL EXCEPTION: main
07-04 08:56:33.049 E/AndroidRuntime( 4427): Process: com.google.android.googlequicksearchbox:interactor, PID: 4427
07-04 08:56:33.049 E/AndroidRuntime( 4427): DeadSystemException: The system died; earlier logs will point to the root cause
07-04 08:56:33.050 E/AndroidRuntime( 3363): FATAL EXCEPTION: main
07-04 08:56:33.050 E/AndroidRuntime( 3363): Process: com.android.systemui, PID: 3363
07-04 08:56:33.050 E/AndroidRuntime( 3363): DeadSystemException: The system died; earlier logs will point to the root cause
07-04 08:56:33.050 E/AndroidRuntime( 4375): FATAL EXCEPTION: main
07-04 08:56:33.050 E/AndroidRuntime( 4375): Process: com.google.android.gms.persistent, PID: 4375
07-04 08:56:33.050 E/AndroidRuntime( 4375): DeadSystemException: The system died; earlier logs will point to the root cause
07-04 08:56:33.069 E/AndroidRuntime(13718): FATAL EXCEPTION: AsyncTask #1
07-04 08:56:33.069 E/AndroidRuntime(13718): Process: com.google.android.apps.photos, PID: 13718
UPDATE2: I found a stable reproduction! As I suspected, it happens in something related to vanced youtube, so I opened a details thread there, with the reproduction steps: https://forum.xda-developers.com/showpost.php?p=76996980&postcount=3773

Android x86 - FIrst Build: ninja: build stopped: subcommand failed.

I'm trying to compile android for the first time. I'm using Ubuntu 18.10 x64. I'm attempting to build Android x86_64 Oreo (I also attempted a couple other of their branches with the same problem).
ninja: build stopped: subcommand failed.
06:50:54 soong failed with: exit status 1
I've searched the forums and googled for a few hours. I installed some new software and added environment variables suggested by different threads, but nothing seems to get me past this error.
Full Output:
Code:
[email protected]:/media/individual/66d2ccb6-7fc1-4c9d-aa2e-abb553bf4ca3/android$ m -j2 iso_img
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=android_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-with-Ubuntu-18.10-cosmic
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM8.181005.003
OUT_DIR=out
============================================
ninja: no work to do.
[1/1] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
FAILED: out/soong/build.ninja
out/soong/.bootstrap/bin/soong_build -t -b out/soong -d out/soong/build.ninja.d -o out/soong/build.ninja Android.bp
fatal error: runtime: out of memory
runtime stack:
runtime.throw(0x8107e2, 0x16)
prebuilts/go/linux-x86/src/runtime/panic.go:596 +0x95
runtime.sysMap(0xc4dd210000, 0x45ae0000, 0x116b6000, 0xa2dd78)
prebuilts/go/linux-x86/src/runtime/mem_linux.go:216 +0x1d0
runtime.(*mheap).sysAlloc(0xa15be0, 0x45ae0000, 0x7ff520cf1800)
prebuilts/go/linux-x86/src/runtime/malloc.go:428 +0x374
runtime.(*mheap).grow(0xa15be0, 0x22d6b, 0x0)
prebuilts/go/linux-x86/src/runtime/mheap.go:774 +0x62
runtime.(*mheap).allocSpanLocked(0xa15be0, 0x22d6b, 0x1)
prebuilts/go/linux-x86/src/runtime/mheap.go:678 +0x44f
runtime.(*mheap).alloc_m(0xa15be0, 0x22d6b, 0x100000000, 0x0)
prebuilts/go/linux-x86/src/runtime/mheap.go:562 +0xe2
runtime.(*mheap).alloc.func1()
prebuilts/go/linux-x86/src/runtime/mheap.go:627 +0x4b
runtime.systemstack(0xc4208e7f10)
prebuilts/go/linux-x86/src/runtime/asm_amd64.s:343 +0xab
runtime.(*mheap).alloc(0xa15be0, 0x22d6b, 0x10100000000, 0xc4200001a0)
prebuilts/go/linux-x86/src/runtime/mheap.go:628 +0xa0
runtime.largeAlloc(0x45ad5152, 0x450401, 0x10000c4203dac30)
prebuilts/go/linux-x86/src/runtime/malloc.go:795 +0x93
runtime.mallocgc.func1()
prebuilts/go/linux-x86/src/runtime/malloc.go:690 +0x3e
runtime.systemstack(0xc42002f300)
prebuilts/go/linux-x86/src/runtime/asm_amd64.s:327 +0x79
runtime.mstart()
prebuilts/go/linux-x86/src/runtime/proc.go:1132
goroutine 1 [running]:
runtime.systemstack_switch()
prebuilts/go/linux-x86/src/runtime/asm_amd64.s:281 fp=0xc443151410 sp=0xc443151408
runtime.mallocgc(0x45ad5152, 0x77c5a0, 0x821801, 0xc4dd01f0d0)
prebuilts/go/linux-x86/src/runtime/malloc.go:691 +0x930 fp=0xc4431514b0 sp=0xc443151410
runtime.makeslice(0x77c5a0, 0x45ad5152, 0x45ad5152, 0x441657, 0x34398539fc8, 0x0)
prebuilts/go/linux-x86/src/runtime/slice.go:54 +0x7b fp=0xc443151500 sp=0xc4431514b0
bytes.makeSlice(0x45ad5152, 0x0, 0x0, 0x0)
prebuilts/go/linux-x86/src/bytes/buffer.go:201 +0x77 fp=0xc443151540 sp=0xc443151500
bytes.(*Buffer).grow(0xc452d54c40, 0x96, 0x450401)
prebuilts/go/linux-x86/src/bytes/buffer.go:109 +0x177 fp=0xc443151590 sp=0xc443151540
bytes.(*Buffer).WriteString(0xc452d54c40, 0xc475b96c80, 0x96, 0x7ff52119ebb8, 0xc452d54c40, 0x1)
prebuilts/go/linux-x86/src/bytes/buffer.go:146 +0x41 fp=0xc4431515c0 sp=0xc443151590
io.WriteString(0x9f17a0, 0xc452d54c40, 0xc475b96c80, 0x96, 0x96, 0x0, 0x0)
prebuilts/go/linux-x86/src/io/io.go:289 +0x76 fp=0xc443151608 sp=0xc4431515c0
github.com/google/blueprint.(*ninjaWriterWithWrap).writeString(0xc4431516c0, 0xc475b96c80, 0x96, 0xc4dd01f001)
/media/individual/66d2ccb6-7fc1-4c9d-aa2e-abb553bf4ca3/android/build/blueprint/ninja_writer.go:238 +0x8b fp=0xc443151658 sp=0xc443151608
github.com/google/blueprint.(*ninjaWriterWithWrap).WriteStringWithSpace(0xc4431516c0, 0xc475b96c80, 0x96)
/media/individual/66d2ccb6-7fc1-4c9d-aa2e-abb553bf4ca3/android/build/blueprint/ninja_writer.go:247 +0x44 fp=0xc443151688 sp=0xc443151658
github.com/google/blueprint.(*ninjaWriter).Build(0xc427f505a0, 0x0, 0x0, 0xc4dd01f016, 0x7, 0xc4dd01f0a0, 0x1, 0x1, 0xa2cf98, 0x0, ...)
/media/individual/66d2ccb6-7fc1-4c9d-aa2e-abb553bf4ca3/android/build/blueprint/ninja_writer.go:157 +0x21c fp=0xc4431516f8 sp=0xc443151688
github.com/google/blueprint.(*buildDef).WriteTo(0xc475a23440, 0xc427f505a0, 0xc46d740f30, 0xc44db9ac00, 0x59)
/media/individual/66d2ccb6-7fc1-4c9d-aa2e-abb553bf4ca3/android/build/blueprint/ninja_defs.go:375 +0x3aa fp=0xc443151ac8 sp=0xc4431516f8
github.com/google/blueprint.(*Context).writeLocalBuildActions(0xc420108280, 0xc427f505a0, 0xc4344ce720, 0x0, 0x0)
/media/individual/66d2ccb6-7fc1-4c9d-aa2e-abb553bf4ca3/android/build/blueprint/context.go:3152 +0x2bc fp=0xc443151b60 sp=0xc443151ac8
github.com/google/blueprint.(*Context).writeAllModuleActions(0xc420108280, 0xc427f505a0, 0x0, 0x0)
/media/individual/66d2ccb6-7fc1-4c9d-aa2e-abb553bf4ca3/android/build/blueprint/context.go:3036 +0x923 fp=0xc443151d10 sp=0xc443151b60
github.com/google/blueprint.(*Context).WriteBuildFile(0xc420108280, 0x9f17a0, 0xc452d54c40, 0x87f, 0xc46dad2000)
/media/individual/66d2ccb6-7fc1-4c9d-aa2e-abb553bf4ca3/android/build/blueprint/context.go:2712 +0x19a fp=0xc443151d48 sp=0xc443151d10
github.com/google/blueprint/bootstrap.Main(0xc420108280, 0x7fc040, 0xc42007c580, 0xc420409f58, 0x2, 0x2)
/media/individual/66d2ccb6-7fc1-4c9d-aa2e-abb553bf4ca3/android/build/blueprint/bootstrap/command.go:150 +0x73e fp=0xc443151ed0 sp=0xc443151d48
main.main()
/media/individual/66d2ccb6-7fc1-4c9d-aa2e-abb553bf4ca3/android/build/soong/cmd/soong_build/main.go:48 +0x235 fp=0xc443151f88 sp=0xc443151ed0
runtime.main()
prebuilts/go/linux-x86/src/runtime/proc.go:185 +0x20a fp=0xc443151fe0 sp=0xc443151f88
runtime.goexit()
prebuilts/go/linux-x86/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc443151fe8 sp=0xc443151fe0
ninja: build stopped: subcommand failed.
06:50:54 soong failed with: exit status 1
#### failed to build some targets (07:40:37 (hh:mm:ss)) ####
Any help would be greatly appreciated.

Xperia XA2 H3133/H3113 Android 10 AOSP Not Building / Compiling

Hi
I have an issue when building AOSP, it fails to build some targets, as well as ninja fails with exit status 1. I have followed the guide provided by sony and i dont know why it happens. Log below.
Thanks
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
TARGET_PRODUCT=aosp_h3113
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-62-generic-x86_64-Linux-Mint-19.2
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=QP1A.190711.019
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/sony/nile
============================================
hardware/qcom/gps/sdm845/etc/Android.mk was modified, regenerating...
[ 25% 113/441] including device/sony/common/Android.mk ...
IDisplayConfig version: DISPLAY_CONFIG_1_8
[ 99% 440/441] finishing build rules ...
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherOutOfProcTests'
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherDebug'
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module 'NexusLauncherTests'
platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'LauncherRotationStressTest'
platform_testing/build/tasks/tests/platform_test_list.mk: warning: platform_tests: Unknown installed file for module 'PlatformScenarioTests'
FAILED: ninja: 'kernel/sony/msm-4.14/common-kernel/kernel-dtb-pioneer', needed by 'out/target/product/pioneer/kernel', missing and no known rule to make it
02:03:49 ninja failed with: exit status 1
#### failed to build some targets (02:22 (mm:ss)) ####
FAILED: ninja: 'kernel/sony/msm-4.14/common-kernel/kernel-dtb-pioneer
no prebuilt kernel in repo!
u need to compile kernel from source 1st or change "/device/sony/nile/platform.mk" to use source code for kernel, not prebuilt.
Now u can do it =) They updated sources & make prebuild kernels
https://github.com/sonyxperiadev/kernel-sony-msm-4.14-common

Categories

Resources