- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在努力让 Unity3D Build 在 Ubuntu Linux 环境中工作。我刚刚创建了一个没有任何对象的空场景构建了一个 linux 发行版,但它在 linux 中崩溃并给出了以下错误。
'/home/jayanth/Desktop/EmptyLinuxTest/Empty_Linux.x86'
Found path: /home/jayanth/Desktop/EmptyLinuxTest/Empty_Linux.x86
Mono path[0] ='/home/jayanth/Desktop/EmptyLinuxTest/Empty_Linux_Data/Managed'
Mono path[1] = '/home/jayanth/Desktop/EmptyLinuxTest/Empty_Linux_Data/Mono'
Mono config path = '/home/jayanth/Desktop/EmptyLinuxTest/Empty_Linux_Data/Mono/etc'
displaymanager : xrandr version warning. 1.5
client has 2 screens
displaymanager screen (0)(VGA-0): 1368 x 768
Using libudev for joystick management
Importing game controller configs
Aborted (core dumped)
这是 Player.log 文件输出。
Selecting FBConfig
GLX_FBCONFIG_ID=227
GLX_BUFFER_SIZE=32
GLX_DOUBLEBUFFER=1
GLX_RED_SIZE=8
GLX_GREEN_SIZE=8
GLX_BLUE_SIZE=8
GLX_ALPHA_SIZE=8
GLX_DEPTH_SIZE=24
GLX_STENCIL_SIZE=8
GLX_SAMPLES_ARB=0
GLX_SAMPLE_BUFFERS_ARB=0
GLX_STEREO=0
GLX_CONFIG_CAVEAT=NONE
Desktop is 1368 x 768 @ 60 Hz
XError: BadMatch (invalid parameter attributes) (error 8, opcode 154/34, serial 37, XID 00000004, display 0xa96bdf0
XError: BadMatch (invalid parameter attributes) (error 8, opcode 154/34, serial 40, XID 00000004, display 0xa96bdf0
XError: BadMatch (invalid parameter attributes) (error 8, opcode 154/34, serial 43, XID 00000004, displaterminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct null not valid
堆栈跟踪:
Native stacktrace:
/home/jayanth/Desktop/EmptyLinuxTest/Empty_Linux_Data/Mono/x86/libmono.so(+0x8960f) [0xb4da760f]
[0xb775cc20]
[0xb775cc31]
/lib/i386-linux-gnu/libc.so.6(gsignal+0x39) [0xb7160e89]
/lib/i386-linux-gnu/libc.so.6(abort+0x157) [0xb71623e7]
/usr/lib/i386-linux-gnu/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x155) [0xb73cfd45]
/usr/lib/i386-linux-gnu/libstdc++.so.6(+0x70843) [0xb73cd843]
/usr/lib/i386-linux-gnu/libstdc++.so.6(+0x708bd) [0xb73cd8bd]
/usr/lib/i386-linux-gnu/libstdc++.so.6(__cxa_rethrow+0) [0xb73cdb80]
/usr/lib/i386-linux-gnu/libstdc++.so.6(_ZSt19__throw_logic_errorPKc+0x44) [0xb73f78b4]
./Empty_Linux.x86() [0x8b66b48]
./Empty_Linux.x86() [0x8b5802e]
./Empty_Linux.x86() [0x8b4a2ba]
./Empty_Linux.x86() [0x8b568c9]
./Empty_Linux.x86() [0x8adb803]
./Empty_Linux.x86() [0x8ad81f7]
./Empty_Linux.x86() [0x82ce6bf]
./Empty_Linux.x86() [0x83efceb]
./Empty_Linux.x86() [0x83c6c12]
./Empty_Linux.x86() [0x808e473]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf7) [0xb714d637]
./Empty_Linux.x86() [0x80988e9]
来自 gdb 的调试信息:
Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
如果有人能帮助我解决这个问题,我会很高兴。
谢谢
最佳答案
“在抛出‘std::logic_error’实例后调用终止”这一行what(): basic_string::_S_construct null not valid"在你的日志中表明 Unity3d 正在尝试从一个空指针构造一个 std::string 对象,根据 C++ 标准和当前的 libstdc++ 版本,这是未定义的行为抛出一个 std::如果您的代码试图这样做,则出现 logic_error 异常。
这很可能是 Unity 本身的错误 - 如果您在网上搜索,就会发现一些关于类似错误的投诉。
关于linux - Unity3D Linux Build 在启动时崩溃。 (Ubuntu 16.04 长期支持版),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37072779/
关闭。这个问题是opinion-based .它目前不接受答案。 想改进这个问题?更新问题,以便 editing this post 可以用事实和引用来回答它. 5年前关闭。 Improve this
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我试图弄清楚如何基于 JSESSIONID cookie 为具有长期交互式用户 session 的 web 应用程序提供零停机滚动更新,这些 session 应该是粘性的。 出于这个(和其他)原因,我
这更像是一个“你能给我指出正确的方向吗”类型的问题。 基本上,我想为客户提供一种“保存”购物车的方法,也许以后可以与亲戚一起查看(这是摄影师客户的“照片篮”)。 当使用我的“照片篮”时,它会创建一个篮
我正在编写一个使用商店的网络应用程序。如果客户端在30秒内没有收到响应,则认为该请求已失效,并给出超时错误。 我正在尝试让 MongoDB 做同样的事情。例如,如果连接断开 1 分钟,驱动程序将尝试重
我多年来一直在开发和管理 Oracle 数据库应用程序,并且想学习 SQL Server。有没有人有任何书籍推荐(最好是电子版)。当然,我已经对 SQL 了如指掌,所以我想避免任何介绍性的内容,直接进
我是一名优秀的程序员,十分优秀!