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

Crash when enabling aapt2 #3424

Closed
pellet opened this issue Aug 1, 2019 · 2 comments

Comments

@pellet
Copy link

@pellet pellet commented Aug 1, 2019

Steps to Reproduce

  1. Enable AOT
  2. Enable aapt2.
  3. Run app on KitKat.

Expected Behavior

Faster builds due to aapt2.

Actual Behavior

App crashes.

Version Information

=== Visual Studio Community 2019 for Mac ===

Version 8.2 (build 1105)
Installation UUID: 5049d043-10da-4ab1-931f-e1424147a79f
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.14.0.85 (d16-2-fix-mac-updates / 86973979)

Package version: 600000311

=== Mono Framework MDK ===

Runtime:
Mono 6.0.0.311 (2019-02/494641b300c) (64-bit)
Package version: 600000311

=== NuGet ===

Version: 5.1.0.6013

=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Version: 2.2.5
SDK: /usr/local/share/dotnet/sdk/2.2.300/Sdks
SDK Version: 2.2.300
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.0.0/lib/mono/msbuild/Current/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.6.11
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Version: 11

=== Apple Developer Tools ===

Xcode 10.3 (14492.2)
Build 10G8

=== Xamarin.Mac ===

Version: 5.14.0.110 (Visual Studio Community)
Hash: a8bcecce
Branch: d16-2
Build date: 2019-06-28 07:31:43-0400

=== Xamarin.Android ===

Version: 9.4.0.51 (Visual Studio Community)
Commit: xamarin-android/d16-2/9fa7775
Android SDK: /Users/ben/Library/Android/sdk
Supported Android versions:
5.1 (API level 22)
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)
8.0 (API level 26)
8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 29.0.1
SDK Build Tools Version: 29.0.1

Build Information:
Mono: mono/mono@e6f5369
Java.Interop: xamarin/java.interop@d64ada5
LibZipSharp: grendello/LibZipSharp/d16-2@caa0c74
LibZip: nih-at/libzip@b95cf3f
ProGuard: xamarin/proguard@905836d
SQLite: xamarin/sqlite@8212a2d
Xamarin.Android Tools: xamarin/xamarin-android-tools@6f6c969

=== Microsoft Mobile OpenJDK ===

Java SDK: /Users/ben/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android Device Manager ===

Version: 1.2.0.58
Hash: d03e3ea
Branch: remotes/origin/d16-2~1
Build date: 2019-07-16 17:37:14 UTC

=== Xamarin.iOS ===

Version: 12.14.0.110 (Visual Studio Community)
Hash: a8bcecce
Branch: d16-2
Build date: 2019-06-28 07:31:42-0400

=== Xamarin Designer ===

Version: 16.2.0.354
Hash: 5f80a14f8
Branch: remotes/origin/d16-2
Build date: 2019-07-11 17:28:26 UTC

=== Xamarin Inspector ===

Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 802001105
Git revision: a187f6852ae62ba52b944b47e53702957edfcf7b
Build date: 2019-07-22 18:20:10+00
Build branch: release-8.2
Xamarin extensions: 34bd2378d8d707df25989727c23ce68d9a232a67

=== Operating System ===

Mac OS X 10.14.4
Darwin 18.5.0 Darwin Kernel Version 18.5.0
Mon Mar 11 20:40:32 PDT 2019
root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64

Log File

08-01 12:05:17.379 17356-17497/com.smartcaptech.dev.app I/SmartCap.Services.Connected.Android.NetworkConnectivity.AndroidNetworkDetectionManager: 2019-08-01T12:05:17 #10 Network availability check completed [00:00:00.0411329 (41ms)]
08-01 12:05:17.381 17356-17497/com.smartcaptech.dev.app D/SmartCap.Services.Connected.Android.NetworkConnectivity.AndroidNetworkDetectionManager: 2019-08-01T12:05:17 #10 Current network connection type is Desktop
08-01 12:05:17.392 17356-17497/com.smartcaptech.dev.app V/SmartCap.Services.Connected.Android.NetworkConnectivity.AndroidNetworkDetectionManager: 2019-08-01T12:05:17 #10 The network connection type is now: Desktop
08-01 12:05:17.399 193-688/? D/AudioMTKStreamOut: write (-) 4096 latency_in_s,0.011927,0.000245,0.021408
08-01 12:05:17.411 193-688/? D/AudioFlinger_Threads: threadLoop_sleepTime write muted data to hw
08-01 12:05:17.411 193-688/? D/AudioFlinger_Threads: threadLoop_write
08-01 12:05:17.412 193-688/? D/AudioMTKStreamOut: write (-) 4096 latency_in_s,0.012070,0.000249,0.000108
08-01 12:05:17.423 193-688/? D/AudioFlinger_Threads: threadLoop_sleepTime write muted data to hw
08-01 12:05:17.424 193-688/? D/AudioFlinger_Threads: threadLoop_write
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: /proc/self/maps:
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 12c00000-12e01000 rw-p 00000000 00:04 4701 /dev/ashmem/dalvik-main space (deleted)
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 12e01000-13309000 rw-p 00201000 00:04 4701 /dev/ashmem/dalvik-main space (deleted)
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 13309000-1ac00000 ---p 00709000 00:04 4701 /dev/ashmem/dalvik-main space (deleted)
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 1ac00000-1ac01000 rw-p 00000000 00:04 4702 /dev/ashmem/dalvik-main space (deleted)
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 1ac01000-22c00000 ---p 00001000 00:04 4702 /dev/ashmem/dalvik-main space (deleted)
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 6f974000-703f0000 rw-p 00000000 b3:10 30406 /data/dalvik-cache/arm/system@framework@boot.art
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 703f0000-7228a000 r--p 00000000 b3:10 30407 /data/dalvik-cache/arm/system@framework@boot.oat
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 7228a000-73b17000 r-xp 01e9a000 b3:10 30407 /data/dalvik-cache/arm/system@framework@boot.oat
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 73b17000-73b18000 rw-p 03727000 b3:10 30407 /data/dalvik-cache/arm/system@framework@boot.oat
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 73b18000-740da000 rw-p 00000000 00:04 4700 /dev/ashmem/dalvik-zygote space (deleted)
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 740da000-740db000 rw-p 00000000 00:04 5099 /dev/ashmem/dalvik-non moving space (deleted)
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 740db000-741f3000 rw-p 00001000 00:04 5099 /dev/ashmem/dalvik-non moving space (deleted)
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 741f3000-77719000 ---p 00119000 00:04 5099 /dev/ashmem/dalvik-non moving space (deleted)
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 77719000-77b18000 rw-p 0363f000 00:04 5099 /dev/ashmem/dalvik-non moving space (deleted)
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 97800000-97900000 rw-p 00000000 00:00 0
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 97902000-97903000 ---p 00000000 00:00 0
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 97903000-97904000 ---p 00000000 00:00 0
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 97904000-97a00000 rw-p 00000000 00:00 0 [stack:18291]
08-01 12:05:17.440 17356-17463/com.smartcaptech.dev.app E/mono-rt: 97b04000-97b84000 rw-p 00000000 00:00 0
08-01 12:05:17.441 17356-17463/com.smartcaptech.dev.app E/mono-rt: 98324000-983a4000 rw-p 00000000 00:00 0
08-01 12:05:17.441 17356-17463/com.smartcaptech.dev.app E/mono-rt: 9857c000-985fc000 rw-p 00000000 00:00 0
08-01 12:05:17.441 17356-17463/com.smartcaptech.dev.app E/mono-rt: 98600000-98800000 rw-s 11200000 00:0c 3940 /dev/mali
08-01 12:05:17.441 17356-17463/com.smartcaptech.dev.app E/mono-rt: 98800000-98900000 rw-p 00000000 00:00 0
08-01 12:05:17.441 17356-17463/com.smartcaptech.dev.app E/mono-rt: 98bf7000-98f7c000 rw-p 00000000 00:04 67667 /dev/ashmem/dalvik-large object space allocation (deleted)
08-01 12:05:17.441 17356-17463/com.smartcaptech.dev.app E/mono-rt: 98f7c000-99301000 rw-p 00000000 00:04 67665 /dev/ashmem/dalvik-large object space allocation (deleted)
08-01 12:05:17.446 193-688/? D/AudioMTKStreamOut: write (-) 4096 latency_in_s,0.012074,0.000251,0.021690
08-01 12:05:17.447 225-225/? D/[BT]: mtk_bt_read: buffer b7196c34, len 1
08-01 12:05:17.447 225-225/? D/[BT]: mtk_bt_read: buffer b7196c3c, len 2
08-01 12:05:17.447 225-225/? D/[BT]: mtk_bt_read: buffer b716e316, len 43
08-01 12:05:17.447 225-225/? D/BTSNIFF: ts=617940317447321 frame=39438
08-01 12:05:17.447 225-225/? D/BTSNIFF: ucTemp[16~23]=0, 226, 108, 183, 187, 132, 132, 153
08-01 12:05:17.447 225-225/? D/[BT]: mtk_bt_read: buffer b7196c34, len 1
08-01 12:05:17.448 17356-17463/com.smartcaptech.dev.app A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x5f8 in tid 17463 (RenderThread)
08-01 12:05:17.449 190-190/? D/AEE/AED: $===AEE===AEE===AEE===$
08-01 12:05:17.449 190-190/? D/AEE/AED: p 0 poll events 1 revents 0
08-01 12:05:17.449 190-190/? D/AEE/AED: not know revents:0
08-01 12:05:17.449 190-190/? D/AEE/AED: p 1 poll events 1 revents 0
08-01 12:05:17.449 190-190/? D/AEE/AED: not know revents:0
08-01 12:05:17.449 190-190/? D/AEE/AED: p 2 poll events 1 revents 1
08-01 12:05:17.449 190-190/? D/AEE/AED: aed_main_fork_worker: generator 0xb7efe7f0, worker 0xbeb3a968, recv_fd 0
08-01 12:05:17.450 190-190/? D/AEE/AED: p 3 poll events 1 revents 0
08-01 12:05:17.450 190-190/? D/AEE/AED: not know revents:0
08-01 12:05:17.450 190-190/? D/AEE/AED: p 4 poll events 1 revents 0
08-01 12:05:17.450 190-190/? D/AEE/AED: not know revents:0
08-01 12:05:17.450 190-190/? D/AEE/AED: p 5 poll events 0 revents 0
08-01 12:05:17.450 190-190/? D/AEE/AED: not know revents:0
08-01 12:05:17.457 193-688/? D/AudioFlinger_Threads: threadLoop_sleepTime write muted data to hw
08-01 12:05:17.458 193-688/? D/AudioFlinger_Threads: threadLoop_write
08-01 12:05:17.458 193-688/? D/AudioMTKStreamOut: write (-) 4096 latency_in_s,0.012176,0.000277,0.000163
08-01 12:05:17.460 18305-18305/? I/AEE/AED: handle_request(0)
08-01 12:05:17.460 18305-18305/? I/AEE/AED: check process 17356 name:captech.dev.app
08-01 12:05:17.461 18305-18305/? I/AEE/AED: tid 17463 abort msg address is:0x00000000, si_code is:1 (request from 17356:10098)
08-01 12:05:17.461 18305-18305/? I/AEE/AED: BOOM: pid=17356 uid=10098 gid=10098 tid=17463
08-01 12:05:17.462 18305-18305/? I/AEE/AED: [OnPurpose Redunant in void preset_info(aed_report_record*, int, int)] pid: 17356, tid: 17463, name: RenderThread >>> com.smartcaptech.dev.app <<<
08-01 12:05:17.464 1372-1409/? I/BTIF_CORE: [btif_task]:Polling returned!
08-01 12:05:17.464 1372-1409/? I/BTIF_CORE: [btif_task]:Start retrieve data pollMemberCount=11!
08-01 12:05:17.464 1372-1409/? I/BTIF_CORE: [btif_task]:fd 8 data ready!
08-01 12:05:17.464 1372-1409/? I/BTIF_CORE: [btif_task]:pollData[i].fd data ready : revents = 0x1!

@pellet

This comment has been minimized.

Copy link
Author

@pellet pellet commented Aug 1, 2019

Actually not sure if this is what was causing the sigkill, ill reopen if it was.

@pellet pellet closed this Aug 1, 2019
@pellet pellet changed the title Crash when enabling concurrent garbage collector Crash when enabling aapt2 Aug 5, 2019
@pellet

This comment has been minimized.

Copy link
Author

@pellet pellet commented Aug 5, 2019

I've updated the ticket to reflect the actual issue.
It is related to the version of Android build tools im using, apparently it is fixed in 28(im on 27 still).
Here is a link to a stackoverflow post which explains: https://stackoverflow.com/questions/45205388/drawable-abc-vector-test-resource-not-found-exception-for-kitkat-and-below

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.