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

Not working on android #1

Open
adrien-ben opened this issue Nov 7, 2019 · 5 comments
Open

Not working on android #1

adrien-ben opened this issue Nov 7, 2019 · 5 comments
Assignees

Comments

@adrien-ben
Copy link
Owner

This is just the winit code

11-07 07:38:35.233   903  1145 I ActivityManager: Start proc 12602:rust.vk_triangle_rs/u0a164 for activity rust.vk_triangle_rs/android.app.NativeActivity
11-07 07:38:35.236 12602 12602 E .vk_triangle_r: Not starting debugger since process cannot load the jdwp agent.
11-07 07:38:35.241   903  8949 D OnePlusSmartBoostManager: writeHotCount rust.vk_triangle_rs, pid=12602
11-07 07:38:35.244 12602 12615 I .vk_triangle_r: The ClassLoaderContext is a special shared library.
11-07 07:38:35.248   758 30442 D AudioPolicyService: setRecordSilenced() uid 10164 on silenced 0
11-07 07:38:35.251 12602 12602 W System  : ClassLoader referenced unknown path:
11-07 07:38:35.257 12602 12602 I Perf    : Connecting to perf service.
11-07 07:38:35.258  1707  1707 D LightBarController: onNavigationVisibilityChanged mNavigationLight = false
11-07 07:38:35.260  3174  3174 D LauncherTransition: [OSP-1899] getActivityLaunchOptions.onCreateAnimation: launcherClosing= true
11-07 07:38:35.260  3174  3174 D StateManager: reset# playbackController isn't null, dispatch cancel
11-07 07:38:35.260 12602 12602 V Font    : Change font:2
11-07 07:38:35.261  3174  3174 D LauncherTransition: [OSP-1899] getLauncherContentAnimator: isAppOpening= true, trans= 0.0, -131.0
11-07 07:38:35.251 12602 12602 W /system/bin/tc-wrapper-1.0: type=1400 audit(0.0:259605): avc: denied { read } for comm=45474C20496E6974 name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=22282 scontext=u:r:untrusted_app:s0:c164,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
11-07 07:38:35.264 12602 12617 E libc    : Access denied finding property "vendor.debug.egl.profiler"
11-07 07:38:35.265 12602 12617 E libc    : Access denied finding property "vendor.debug.prerotation.disable"
11-07 07:38:35.251 12602 12602 W /system/bin/tc-wrapper-1.0: type=1400 audit(0.0:259606): avc: denied { read } for comm=45474C20496E6974 name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=22282 scontext=u:r:untrusted_app:s0:c164,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
11-07 07:38:35.276 12602 12602 D OpenGLRenderer: Skia GL Pipeline
11-07 07:38:35.282 12602 12602 V threaded_app: Creating: 0x7a10bdec00
11-07 07:38:35.282 12602 12619 V threaded_app: Config: mcc=208 mnc=1 lang=fr cnt=FR orien=1 touch=3 dens=420 keys=1 nav=1 keysHid=3 navHid=0 sdk=28 size=2 long=2 modetype=1 modenight=1
11-07 07:38:35.282 12602 12619 D RustAndroidGlueStdouterr: Entering android_main
11-07 07:38:35.282 12602 12619 D RustAndroidGlueStdouterr: Creating application thread
11-07 07:38:35.282 12602 12620 D RustAndroidGlueStdouterr: 2019-11-07 07:38:35,282 INFO  [vk_triangle_rs] Create application
11-07 07:38:35.284 12602 12602 V threaded_app: Start: 0x7a10bdec00
11-07 07:38:35.284 12602 12619 V threaded_app: activityState=10
11-07 07:38:35.284 12602 12620 D RustAndroidGlueStdouterr: thread '<unnamed>' panicked at 'assertion failed: (*self.data.get()).is_none()', src/libstd/sync/mpsc/oneshot.rs:90:13
11-07 07:38:35.284 12602 12620 D RustAndroidGlueStdouterr: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
11-07 07:38:35.284 12602 12619 F libc    : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 12619 (.vk_triangle_rs), pid 12602 (.vk_triangle_rs)
11-07 07:38:35.285 12602 12602 V threaded_app: Resume: 0x7a10bdec00
11-07 07:38:35.316 12625 12625 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
11-07 07:38:35.317   990   990 I /system/bin/tombstoned: received crash request for pid 12619
11-07 07:38:35.318 12625 12625 I crash_dump64: performing dump of process 12602 (target tid = 12619)
11-07 07:38:35.322  3174  3174 I RecentsModel: onTaskStackChanged# mTaskChangeId=284
11-07 07:38:35.322 12625 12625 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-07 07:38:35.322 12625 12625 F DEBUG   : Build fingerprint: 'OnePlus/OnePlus6T/OnePlus6T:9/PKQ1.180716.001/1909112330:user/release-keys'
11-07 07:38:35.322 12625 12625 F DEBUG   : Revision: '0'
11-07 07:38:35.322 12625 12625 F DEBUG   : ABI: 'arm64'
11-07 07:38:35.322 12625 12625 F DEBUG   : pid: 12602, tid: 12619, name: .vk_triangle_rs  >>> rust.vk_triangle_rs <<<
11-07 07:38:35.322 12625 12625 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
11-07 07:38:35.322 12625 12625 F DEBUG   :     x0  0000000000000000  x1  000000000000314b  x2  0000000000000006  x3  0000000000000008
11-07 07:38:35.322 12625 12625 F DEBUG   :     x4  0000007a02247158  x5  0000007a02247158  x6  0000007a02247158  x7  0000007a02247000
11-07 07:38:35.322 12625 12625 F DEBUG   :     x8  0000000000000083  x9  7ee7c9ef9b6fdab9  x10 0000000000000000  x11 fffffffc7ffffbdf
11-07 07:38:35.322 12625 12625 F DEBUG   :     x12 0000000000000001  x13 0000000000000000  x14 ffffffffffffffff  x15 aaaaaaaaaaaaaaab
11-07 07:38:35.322 12625 12625 F DEBUG   :     x16 0000007aa21722c8  x17 0000007aa20b0360  x18 0000000000000001  x19 000000000000313a
11-07 07:38:35.322 12625 12625 F DEBUG   :     x20 000000000000314b  x21 0000007a01ffd1b0  x22 0000007a022cd1a4  x23 0000007a01ffdfb0
11-07 07:38:35.322 12625 12625 F DEBUG   :     x24 0000000000000000  x25 000000000000000d  x26 0000000000000001  x27 0000000000000058
11-07 07:38:35.322 12625 12625 F DEBUG   :     x28 0000007fd9decd50  x29 0000007a01ffca00
11-07 07:38:35.322 12625 12625 F DEBUG   :     sp  0000007a01ffc9c0  lr  0000007aa20a4e8c  pc  0000007aa20a4eb4
11-07 07:38:35.323 12625 12625 F DEBUG   :
11-07 07:38:35.323 12625 12625 F DEBUG   : backtrace:
11-07 07:38:35.323 12625 12625 F DEBUG   :     #00 pc 0000000000021eb4  /system/lib64/libc.so (abort+116)
11-07 07:38:35.323 12625 12625 F DEBUG   :     #01 pc 000000000009d444  /data/app/rust.vk_triangle_rs-X0K735sTggWS5k4ilew0Xg==/lib/arm64/libvk-triangle-rs.so (uw_init_context_1+84)
11-07 07:38:35.448   990   990 E /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_03
11-07 07:38:35.450   903 12628 W ActivityManager:   Force finishing activity rust.vk_triangle_rs/android.app.NativeActivity
@adrien-ben
Copy link
Owner Author

@adrien-ben
Copy link
Owner Author

@adrien-ben
Copy link
Owner Author

Fixed by forking winit and making it use the master branch of android_glue. I keep it opened until I can get back an official version of winit

@adrien-ben adrien-ben self-assigned this Nov 7, 2019
@adrien-ben
Copy link
Owner Author

Things changed a lot since my last attempt at makin it work on Android.

Here is a list of issues to follow:

@adrien-ben
Copy link
Owner Author

And here is a branch with the app working on android : https://github.com/adrien-ben/vulkan-triangle-rs/tree/android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant