redroid-doc icon indicating copy to clipboard operation
redroid-doc copied to clipboard

CentOS+双amdgpu出错

Open wx5391805 opened this issue 1 year ago • 10 comments

我在arm64服务器上使用两张amdgpu加速运行redroid11,用ubuntu的时候一切正常,容器可以分别运行在两张卡上。使用centos时,其中一张卡上的容器launcher3会崩溃然后不断重启(但此时可以通过adb运行游戏,屏幕不断闪烁)。 Ubuntu使用过22.04、20.04 CentOS使用过8 Kernel 使用过5.4、6.6、6.7 (包含amdgpu驱动) 现象都一致。 HOST上的amd驱动都正常使能了。 CentOS+redroid11+双amdgpu有什么需要注意的地方吗

--------- beginning of crash
04-09 06:33:17.730 48401 48401 F DEBUG   : pid: 48245, tid: 48392, name: GrallocUploadTh  >>> com.android.systemui <<<
04-09 06:33:17.730 48401 48401 F DEBUG   : uid: 10109
04-09 06:33:17.730 48401 48401 F DEBUG   : signal 7 (SIGBUS), code 2 (BUS_ADRERR), fault addr 0xfb427ce41000
04-09 06:33:17.730 48401 48401 F DEBUG   :     x0  0000fb427ce41000  x1  b400fb419cd1d230  x2  00000000000000e8  x3  0000fb427ce41000
04-09 06:33:17.730 48401 48401 F DEBUG   :     x4  b400fb419cd1d318  x5  0000fb427ce410e8  x6  0000000000000000  x7  0000000000000000
04-09 06:33:17.730 48401 48401 F DEBUG   :     x8  0000000000000001  x9  0000000000000000  x10 000000000000003e  x11 0000000000000000
04-09 06:33:17.730 48401 48401 F DEBUG   :     x12 0000000000000000  x13 0000000000000000  x14 0000000000000000  x15 0000fb427ce41000
04-09 06:33:17.730 48401 48401 F DEBUG   :     x16 0000fb3f66959a80  x17 0000fb42805532c0  x18 0000fb3f48630000  x19 0000000000000100
04-09 06:33:17.730 48401 48401 F DEBUG   :     x20 b400fb419cd1d230  x21 0000fb427ce41000  x22 00000000000000e8  x23 0000000000000000
04-09 06:33:17.730 48401 48401 F DEBUG   :     x24 00000000000000e8  x25 000000000000003e  x26 0000000000000035  x27 00000000000000e8
04-09 06:33:17.730 48401 48401 F DEBUG   :     x28 0000000000000000  x29 0000fb3f496934b0
04-09 06:33:17.730 48401 48401 F DEBUG   :     lr  0000fb3f658e15a8  sp  0000fb3f496934a0  pc  0000fb4280553248  pst 0000000020001000
04-09 06:33:17.753 48401 48401 F DEBUG   : backtrace:
04-09 06:33:17.753 48401 48401 F DEBUG   :       #00 pc 000000000004a248  /apex/com.android.runtime/lib64/bionic/libc.so (__memcpy+248) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #01 pc 00000000008595a4  /vendor/lib64/dri/libgallium_dri.so (BuildId: 9a90ab7d303350a9ddcff79e343190e196aed000)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #02 pc 0000000000dbbd00  /vendor/lib64/dri/libgallium_dri.so (BuildId: 9a90ab7d303350a9ddcff79e343190e196aed000)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #03 pc 0000000000eaf610  /vendor/lib64/dri/libgallium_dri.so (BuildId: 9a90ab7d303350a9ddcff79e343190e196aed000)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #04 pc 0000000000ab8294  /vendor/lib64/dri/libgallium_dri.so (BuildId: 9a90ab7d303350a9ddcff79e343190e196aed000)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #05 pc 0000000000a4a7ec  /vendor/lib64/dri/libgallium_dri.so (BuildId: 9a90ab7d303350a9ddcff79e343190e196aed000)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #06 pc 0000000000a49c1c  /vendor/lib64/dri/libgallium_dri.so (BuildId: 9a90ab7d303350a9ddcff79e343190e196aed000)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #07 pc 0000000000a49df0  /vendor/lib64/dri/libgallium_dri.so (BuildId: 9a90ab7d303350a9ddcff79e343190e196aed000)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #08 pc 0000000000237c00  /system/lib64/libhwui.so (std::__1::__packaged_task_func<android::uirenderer::EGLUploader::onUploadHardwareBitmap(SkBitmap const&, android::uirenderer::FormatInfo const&, android::sp<android::GraphicBuffer>)::'lambda'(), std::__1::allocator<android::uirenderer::EGLUploader::onUploadHardwareBitmap(SkBitmap const&, android::uirenderer::FormatInfo const&, android::sp<android::GraphicBuffer>)::'lambda'()>, void* ()>::operator()()+120) (BuildId: e76e37173b03ec10660392e53e87935e)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #09 pc 0000000000237dac  /system/lib64/libhwui.so (std::__1::__function::__func<decltype(fp()) android::uirenderer::WorkQueue::runSync<android::uirenderer::EGLUploader::onUploadHardwareBitmap(SkBitmap const&, android::uirenderer::FormatInfo const&, android::sp<android::GraphicBuffer>)::'lambda'()>(android::uirenderer::EGLUploader::onUploadHardwareBitmap(SkBitmap const&, android::uirenderer::FormatInfo const&, android::sp<android::GraphicBuffer>)::'lambda'()&&)::'lambda'(), std::__1::allocator<decltype(fp()) android::uirenderer::WorkQueue::runSync<android::uirenderer::EGLUploader::onUploadHardwareBitmap(SkBitmap const&, android::uirenderer::FormatInfo const&, android::sp<android::GraphicBuffer>)::'lambda'()>(android::uirenderer::EGLUploader::onUploadHardwareBitmap(SkBitmap const&, android::uirenderer::FormatInfo const&, android::sp<android::GraphicBuffer>)::'lambda'()&&)::'lambda'()>, void ()>::operator()()+88) (BuildId: e76e37173b03ec10660392e53e87935e)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #10 pc 000000000020ed98  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+220) (BuildId: e76e37173b03ec10660392e53e87935e)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #11 pc 000000000020d0fc  /system/lib64/libhwui.so (android::uirenderer::ThreadBase::threadLoop()+72) (BuildId: e76e37173b03ec10660392e53e87935e)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #12 pc 00000000000154d0  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+260) (BuildId: 5d6af74124211886d954d61c96514a46)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #13 pc 0000000000014d94  /system/lib64/libutils.so (thread_data_t::trampoline(thread_data_t const*)+412) (BuildId: 5d6af74124211886d954d61c96514a46)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #14 pc 00000000000afd4c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
04-09 06:33:17.753 48401 48401 F DEBUG   :       #15 pc 0000000000050288  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
04-09 06:33:18.105   331  1856 I chatty  : uid=1000(system) Binder:331_11 expire 7 lines
04-09 06:33:18.110   331   435 I chatty  : uid=1000(system) android.ui expire 5 lines
04-09 06:33:18.111 48412 48436 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 48436 (RenderThread), pid 48412 (droid.launcher3)
04-09 06:33:18.112   331  3433 I chatty  : uid=1000(system) Binder:331_20 expire 19 lines

wx5391805 avatar Apr 09 '24 07:04 wx5391805

How about previous redroid release (such as 11.0.0-230331)?

zhouziyang avatar Apr 09 '24 13:04 zhouziyang

切换到11.0.0-230331,报错有一点区别,但是launcher依然在闪退。 我有一点发现,在centos上redroid似乎不能正确选择gpu,通过dumpsys看到即使我用androidboot.redroid_gpu_node=/dev/dri/renderD128,他仍然使用renderD129的那张卡

没有权限问题,logcat里也没有选择gpu打开错误的信息

4f44ad325b45:/ # ls -l /dev/dri/
total 0
crw-rw---- 1 root 39  226,   0 2024-04-10 06:36 card0
crw-rw---- 1 root 39  226,   1 2024-04-10 06:36 card1
crw-rw---- 1 root 39  226,   2 2024-04-10 06:36 card2
crw-rw-rw- 1 root 998 226, 128 2024-04-10 06:36 renderD128
crw-rw-rw- 1 root 998 226, 129 2024-04-10 06:36 renderD129

以下是11.0.0-230331 的报错

--------- beginning of crash
04-10 06:36:05.463   731  1040 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 1040 (RenderThread), pid 731 (droid.launcher3)
04-10 06:36:05.465  1268  1268 I timeinitialize: The ClassLoaderContext is a special shared library.
04-10 06:36:05.465  1268  1268 D nativeloader: classloader namespace configured for unbundled product apk. library_path=/system/product/priv-app/OneTimeInitializer/lib/arm64:/product/lib64:/system/product/lib64
04-10 06:36:05.467  1268  1268 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-10 06:36:05.468  1268  1268 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-10 06:36:05.468  1268  1268 V OneTimeInitializerReceiver: OneTimeInitializerReceiver.onReceive
04-10 06:36:05.469   238   952 D CompatibilityChangeReporter: Compat change id reported: 135634846; UID 10072; state: DISABLED
04-10 06:36:05.469   238   952 D CompatibilityChangeReporter: Compat change id reported: 135754954; UID 10072; state: ENABLED
04-10 06:36:05.469   238   265 D CompatibilityChangeReporter: Compat change id reported: 143937733; UID 10072; state: ENABLED
04-10 06:36:05.472   123   123 D Zygote  : Forked child process 1295
04-10 06:36:05.473   238   265 I ActivityManager: Start proc 1295:com.android.packageinstaller/u0a72 for broadcast {com.android.packageinstaller/com.android.packageinstaller.TemporaryFileManager}
04-10 06:36:05.473  1295  1295 I Zygote  : seccomp disabled by setenforce 0
04-10 06:36:05.475   111   132 I adbd    : jdwp connection from 1295
04-10 06:36:05.480  1296  1296 I chatty  : uid=10107(com.android.launcher3) crash_dump64 expire 2 lines
04-10 06:36:05.480    49    49 I tombstoned: received crash request for pid 1040
04-10 06:36:05.481  1295  1295 I ackageinstalle: The ClassLoaderContext is a special shared library.
04-10 06:36:05.482  1296  1296 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-10 06:36:05.482  1296  1296 F DEBUG   : Build fingerprint: 'Oneplus/Oneplus/wx:11/wx/1:userdebug/test-keys'
04-10 06:36:05.482  1296  1296 F DEBUG   : Revision: '0'
04-10 06:36:05.482  1296  1296 F DEBUG   : ABI: 'arm64'
04-10 06:36:05.482  1296  1296 F DEBUG   : Timestamp: 2024-04-10 06:36:05+0000
04-10 06:36:05.482  1296  1296 F DEBUG   : pid: 731, tid: 1040, name: RenderThread  >>> com.android.launcher3 <<<
04-10 06:36:05.482  1296  1296 F DEBUG   : uid: 10107
04-10 06:36:05.482  1296  1296 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
04-10 06:36:05.482  1296  1296 F DEBUG   : Abort message: 'GL errors! frameworks/base/libs/hwui/pipeline/skia/SkiaOpenGLPipeline.cpp:127'
04-10 06:36:05.482  1296  1296 F DEBUG   :     x0  0000000000000000  x1  0000000000000410  x2  0000000000000006  x3  0000f641a07e11f0
04-10 06:36:05.482  1296  1296 F DEBUG   :     x4  0000f644a377f010  x5  0000f644a377f010  x6  0000f644a377f010  x7  0000000028000cf2
04-10 06:36:05.482  1296  1296 F DEBUG   :     x8  00000000000000f0  x9  89962b5acb659abd  x10 0000000000000000  x11 ffffffc0fffffbdf
04-10 06:36:05.482  1296  1296 F DEBUG   :     x12 0000000000000001  x13 0000000000000001  x14 0000f6449d07fd22  x15 00000000000001de
04-10 06:36:05.482  1296  1296 F DEBUG   :     x16 0000f6449d07cc80  x17 0000f6449d05e870  x18 0000f641a057a000  x19 00000000000002db
04-10 06:36:05.482  1296  1296 F DEBUG   :     x20 0000000000000410  x21 00000000ffffffff  x22 0000f6420c94125f  x23 0000000000000016
04-10 06:36:05.482  1296  1296 F DEBUG   :     x24 0000f6420c9210b7  x25 0000000000000001  x26 0000f6420c93800c  x27 0000f6420cf3d000
04-10 06:36:05.482  1296  1296 F DEBUG   :     x28 b400f6422cf94bd0  x29 0000f641a07e1270
04-10 06:36:05.482  1296  1296 F DEBUG   :     lr  0000f6449d0122a0  sp  0000f641a07e11d0  pc  0000f6449d0122cc  pst 0000000000001000
04-10 06:36:05.483  1295  1295 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-10 06:36:05.483  1295  1295 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-10 06:36:05.484   238   952 D CompatibilityChangeReporter: Compat change id reported: 135634846; UID 10113; state: DISABLED
04-10 06:36:05.484   238   952 D CompatibilityChangeReporter: Compat change id reported: 135754954; UID 10113; state: DISABLED
04-10 06:36:05.484   238   265 D CompatibilityChangeReporter: Compat change id reported: 143937733; UID 10113; state: DISABLED
04-10 06:36:05.487   123   123 D Zygote  : Forked child process 1319
04-10 06:36:05.488   238   265 I ActivityManager: Start proc 1319:com.android.permissioncontroller/u0a113 for broadcast {com.android.permissioncontroller/com.android.permissioncontroller.permission.service.LocationAccessCheck$SetupPeriodicBackgroundLocationAccessCheck}
04-10 06:36:05.488  1319  1319 I Zygote  : seccomp disabled by setenforce 0
04-10 06:36:05.488  1319  1319 I libc    : SetHeapTaggingLevel: tag level set to 0
04-10 06:36:05.490   111   132 I adbd    : jdwp connection from 1319
04-10 06:36:05.494  1319  1319 D ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.test.base.jar
04-10 06:36:05.498  1319  1319 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-10 06:36:05.498  1319  1319 D NetworkSecurityConfig: No Network Security Config specified, using platform default
04-10 06:36:05.499  1319  1319 I CarUiInstaller: CarUiInstaller started for com.android.permissioncontroller
04-10 06:36:05.502  1296  1296 F DEBUG   : backtrace:
04-10 06:36:05.502  1296  1296 F DEBUG   :       #00 pc 000000000004e2cc  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
04-10 06:36:05.502  1296  1296 F DEBUG   :       #01 pc 000000000055d080  /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+2308) (BuildId: 0183cc6150704cdc371a87b659800e56)
04-10 06:36:05.502  1296  1296 F DEBUG   :       #02 pc 0000000000013978  /system/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+76) (BuildId: 01a12dd5224373edcc3a74506f64a9c9)
04-10 06:36:05.502  1296  1296 F DEBUG   :       #03 pc 0000000000006e18  /system/lib64/liblog.so (__android_log_assert+336) (BuildId: 661d43665d5ec814ec191e5d951fe16a)
04-10 06:36:05.502  1296  1296 F DEBUG   :       #04 pc 00000000002164e0  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::swapBuffers(android::uirenderer::renderthread::Frame const&, bool, SkRect const&, android::uirenderer::FrameInfo*, bool*)+172) (BuildId: b3755aba4f05a0da134edf1f840c32b3)
04-10 06:36:05.502  1296  1296 F DEBUG   :       #05 pc 000000000021f0dc  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::draw()+648) (BuildId: b3755aba4f05a0da134edf1f840c32b3)
04-10 06:36:05.502  1296  1296 F DEBUG   :       #06 pc 0000000000221598  /system/lib64/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+480) (BuildId: b3755aba4f05a0da134edf1f840c32b3)
04-10 06:36:05.502  1296  1296 F DEBUG   :       #07 pc 000000000020fd98  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+220) (BuildId: b3755aba4f05a0da134edf1f840c32b3)
04-10 06:36:05.502  1296  1296 F DEBUG   :       #08 pc 0000000000231020  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+88) (BuildId: b3755aba4f05a0da134edf1f840c32b3)
04-10 06:36:05.502  1296  1296 F DEBUG   :       #09 pc 00000000000154d0  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+260) (BuildId: 5d6af74124211886d954d61c96514a46)
04-10 06:36:05.502  1296  1296 F DEBUG   :       #10 pc 0000000000014d94  /system/lib64/libutils.so (thread_data_t::trampoline(thread_data_t const*)+412) (BuildId: 5d6af74124211886d954d61c96514a46)
04-10 06:36:05.502  1296  1296 F DEBUG   :       #11 pc 00000000000afd4c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)
04-10 06:36:05.502  1296  1296 F DEBUG   :       #12 pc 0000000000050288  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 49090ae59e6ae37f8beae53c551820ad)

wx5391805 avatar Apr 10 '24 08:04 wx5391805

Can you provide the full debug tarball? Possible kernel related, since worked as expected on Ubuntu?

zhouziyang avatar Apr 11 '24 12:04 zhouziyang

好的,可能要把.zip后缀删掉 tmp.cFJUVy2jZo.tgz.zip 我能保证ubuntu和centos上的kernel源码、config完全一样,容器版本也一样,但就只有ubuntu可以。另外,selinux也禁用了

wx5391805 avatar Apr 11 '24 13:04 wx5391805

好的,可能要把.zip后缀删掉 tmp.cFJUVy2jZo.tgz.zip 我能保证ubuntu和centos上的kernel源码、config完全一样,容器版本也一样,但就只有ubuntu可以。另外,selinux也禁用了

你好,请问下你提的这个问题 https://github.com/remote-android/redroid-doc/issues/555 是已经解决了吗,能否告知下是怎么解决的,我这也遇到了一个类似的问题

bkb2018 avatar Apr 12 '24 08:04 bkb2018

@bkb2018 改gl源码

wx5391805 avatar Apr 12 '24 09:04 wx5391805

@bkb2018 改gl源码

好的,再请教下你遇到的这个错误日志也是和下面这种类似吗? pid: 36070, tid: 36070, name: miHoYo.Yuanshen >>> com.miHoYo.Yuanshen <<< signal 11 (SIGSEGV), code -6 (SI_TKILL), fault addr -------- x0 fffffffffffffffc x1 0000fffffe3557c8 x2 0000000000000010 x3 0000000005257ec8 x4 0000000000000000 x5 0000000000000008 x6 0000000000000000 x7 000000005f726f76 x8 0000000000000016 x9 8d4e7f6331ab7636 x10 00000000000001f3 x11 0000000000000004 x12 0000f3165560d888 x13 0000fffffe355958 x14 0000000000000070 x15 0000000000000000 x16 0000f316d8af7fe0 x17 0000f316d60aeee0 x18 0000000000000008 x19 0000f316556e1f80 x20 0000f316556e2028 x21 0000000005257ec8 x22 0000f316dafc35e0 x23 0000f316556e1f80 x24 0000000000000028 x25 000000007fffffff x26 0000000013280000 x27 0000f31655642b80 x28 00000000718b4e68 x29 0000fffffe355920 sp 0000fffffe355780 lr 0000f316d8adbf3c pc 0000f316d60ee068

backtrace: #00 pc 000000000006e068 /system/lib64/libc.so (__epoll_pwait+8) #01 pc 0000000000013f38 /system/lib64/libutils.so (android::Looper::pollInner(int)+144) #02 pc 0000000000013e0c /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+60) #03 pc 0000000000122610 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44) #04 pc 00000000003e1fec /system/framework/arm64/boot-framework.oat (offset 0x3cd000) (android.media.MediaExtractor.seekTo [DEDUPED]+140) #05 pc 0000000000ab0e80 /system/framework/arm64/boot-framework.oat (offset 0x3cd000) (android.os.MessageQueue.next+240) #06 pc 0000000000aae80c /system/framework/arm64/boot-framework.oat (offset 0x3cd000) (android.os.Looper.loop+636) #07 pc 000000000087b200 /system/framework/arm64/boot-framework.oat (offset 0x3cd000) (android.app.ActivityThread.main+688) #08 pc 0000000000554c4c /system/lib64/libart.so (art_quick_invoke_static_stub+604)

还有一种报错信息是这样的: Package: com.miHoYo.Yuanshen v765 (4.5.0_21307647_21321795) Foreground: Yes Build: vivo/PD1613/PD1613:6.0.1/MMB29M/compiler05071701:user/release-keys


Build fingerprint: 'vivo/PD1613/PD1613:6.0.1/MMB29M/compiler05071701:user/release-keys' Revision: '0' ABI: 'arm64' pid: 2026, tid: 2092, name: UnityGfxDeviceW >>> com.miHoYo.Yuanshen <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3f80000000000000 x0 0000007d3c8cac50 x1 0000007d16895900 x2 0000007cfa200000 x3 0000000000000004 x4 00000000000000b0 x5 00000000ffffffff x6 00000000ffffffff x7 00000000ff000000 x8 0000000000000001 x9 0000000000018780 x10 0000000000000001 x11 0000000000000000 x12 0000007d6123f698 x13 0000000000000000 x14 0000000000000000 x15 0000000000000000 x16 0000007d7177cff8 x17 0000007dfcc83080 x18 00ffffffffffffff x19 0000007d16895900 x20 0000007d3c8cac50 x21 3f80000000000000 x22 0000007d16895900 x23 0000000000000000 x24 00000000000000c0 x25 0000000000000018 x26 0000007cfb2dca30 x27 0000007d3c8dee80 x28 00000000ffff0000 x29 0000007d6123f8d0 sp 0000007d6123f8b0 lr 0000007d5898f6ac pc 0000007d58982d18

backtrace: #00 pc 00000000005f2d18 /system/vendor/lib64/dri/gallium_dri.so (mesa_reference_texobj+36) #01 pc 00000000005ff6a8 /system/vendor/lib64/dri/gallium_dri.so (update_single_program_texture_state+536) #02 pc 00000000005fd7e8 /system/vendor/lib64/dri/gallium_dri.so (_mesa_update_texture_state+648) #03 pc 00000000005c1d58 /system/vendor/lib64/dri/gallium_dri.so (_mesa_update_state_locked+264) #04 pc 00000000005c258c /system/vendor/lib64/dri/gallium_dri.so (_mesa_update_state+24) #05 pc 000000000050b9e0 /system/vendor/lib64/dri/gallium_dri.so (_mesa_DrawElementsInstancedARB+404) #06 pc 00000000024b5424 /data/app/com.miHoYo.Yuanshen-23zs5BWUncRNSS9EEaMOKA==/lib/arm64/libunity.so (offset 0x791000)

bkb2018 avatar Apr 12 '24 12:04 bkb2018

@wx5391805 您好,麻烦请问下如何修改gl源码的呢

carrot8888 avatar May 07 '24 15:05 carrot8888

@wx5391805 您好,麻烦请问下如何修改gl源码的呢

把MESA的NDEBUG调试开关取消,我这边是会报一个断言错误,你可以看看你的运行环境是不是也会报一些断言错误啥的

bkb2018 avatar Jun 17 '24 06:06 bkb2018

有一个办法可以检测在多显卡的时候是否正确匹配了 用 dumpsys SurfaceFlinger | grep GLES 确认显卡名字 然后 getprop ro.hardware.vulkan 比对一下 例如 使用 Arc A770 的时候(然而A770并不能打游戏),vulkan 应当是 intel

image

chisaato avatar Sep 08 '24 20:09 chisaato