• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by ZingFront · Jan 17, 2017 at 02:44 PM · crashlinuxbatchmodenvidiasigabrt

Ubuntu xvfb-run a Unity application with Nvidia leads to a “core dumped”

I build a Linux standalone version of my game. And I want it to run in batch mode in Ubuntu so that I can write some code to get screenshot automatically for further usage.

My env:

  • Ubuntu 16.04

  • Unity 5.4.3

  • Nvidia K2200 graphic card

  • Nvidia Drider version: 367.57-0ubuntu0.16.04.1

  • xvfb-run

But when I tried to run my game through SSH with this kind of command, I came across a core dumped and everything aborted:

xvfb-run --auto-servernum --server-args='-screen 1 2560x1600x24:32' -e /home/unreal/video/error_xvfb ./test.x86_64 -batchmode -logFile /home/unreal/video/stdout_unity

And in that log file "stduo_unity", some error happened but I have no idea what it is talking about:

 Stacktrace:


 Native stacktrace:

 /home/unreal/Unity/New Unity Project/test_Data/Mono/x86_64/libmono.so(+0x91a46) [0x7f61216dba46]
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f6125c28390]
 /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38) [0x7f61243fc428]
 /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7f61243fe02a]
 ./test.x86_64() [0x886397]
 /home/unreal/Unity/New Unity Project/test_Data/Mono/x86_64/libmono.so(+0xd07eb) [0x7f612171a7eb]
 /home/unreal/Unity/New Unity Project/test_Data/Mono/x86_64/libmono.so(+0x348d3) [0x7f612167e8d3]
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f6125c28390]
 ./test.x86_64() [0xf92d9f]
 ./test.x86_64() [0xf8a1c6]
 ./test.x86_64() [0xf8b97b]
 ./test.x86_64() [0x4a2d5e]
 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f61243e7830]
 ./test.x86_64() [0x4ac679]

 Debug info from 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 allowed.
 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.
 =================================================================

Then I try to uninstall Nvidia driver and everything works fine. But as it cannot use graphic card, the app is with low efficiency.

Then I re-install driver again, and try building Linux standalone app with from Unity 5.2 to Unity 5.5. Nothing better.

Now I really don't know want should I do. Can someone help me with this? Thanks!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

SIGABRT crash while running standalone Linux app 2 Answers

Unity freezes on white/black window when I open Build Settings, Modules and Import Packages 4 Answers

Why is -nographics only available for Windows? 2 Answers

How can a unity game be started on headless linux servers? 6 Answers

Batchmode on linux 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges