diff options
Diffstat (limited to 'linden/indra/newview/linux_tools/wrapper.sh')
-rwxr-xr-x | linden/indra/newview/linux_tools/wrapper.sh | 45 |
1 files changed, 33 insertions, 12 deletions
diff --git a/linden/indra/newview/linux_tools/wrapper.sh b/linden/indra/newview/linux_tools/wrapper.sh index f6ce272..742c4fc 100755 --- a/linden/indra/newview/linux_tools/wrapper.sh +++ b/linden/indra/newview/linux_tools/wrapper.sh | |||
@@ -4,17 +4,26 @@ | |||
4 | ## These options are for self-assisted troubleshooting during this beta | 4 | ## These options are for self-assisted troubleshooting during this beta |
5 | ## testing phase; you should not usually need to touch them. | 5 | ## testing phase; you should not usually need to touch them. |
6 | 6 | ||
7 | ## - Avoids using any OpenAL audio driver. | 7 | ## If the default configuration of openal-soft isn't working for you. |
8 | ## There are 3 places where it looks for a configuration file: | ||
9 | ## /etc/openal/alsoft.conf $HOME/.alsoftrc and ALSOFT_CONF | ||
10 | ## ALSOFT_CONF is the full path including the filename, like: /home/myuser/myconfigfile.txt | ||
11 | ## If none of them is set a hardcoded default is taken. | ||
12 | ## If you set several: ALSOFT_CONF 'wins' always, and $HOME/.alsoftrc 'wins' over /etc/openal/alsoft.conf | ||
13 | #export ALSOFT_CONF="$(pwd)/alsoft.conf" | ||
14 | |||
15 | ## - Avoids using the OpenAL audio driver; disables any inworld sound effects. | ||
16 | ## NOTE: - OpenAL is not used for any streaming audio in Imprudence. | ||
17 | ## - Other export LL_BAD_<driver> have no effect in Imprudence. | ||
8 | #export LL_BAD_OPENAL_DRIVER=x | 18 | #export LL_BAD_OPENAL_DRIVER=x |
9 | ## - Avoids using any FMOD audio driver. | ||
10 | #export LL_BAD_FMOD_DRIVER=x | ||
11 | 19 | ||
12 | ## - Avoids using the FMOD ESD audio driver. | 20 | ## If you have custom gstreamer plugins, |
13 | #export LL_BAD_FMOD_ESD=x | 21 | ## e.g. you want to use Imprudence-1.4.x with the gstreamer plugins of Imprudence-1.3.1: |
14 | ## - Avoids using the FMOD OSS audio driver. | 22 | ## Imprudence-1.3.1-Linux-x86/lib/gstreamer-plugins |
15 | #export LL_BAD_FMOD_OSS=x | 23 | ## respectively Imprudence-1.3.1-Linux-x86_64/lib64/gstreamer-plugins |
16 | ## - Avoids using the FMOD ALSA audio driver. | 24 | ## NOTE: *WAY* better is to install the gstreamer plugins that come with your distros package manager, |
17 | #export LL_BAD_FMOD_ALSA=x | 25 | ## thats why Imprudence-1.4.x comes without gstreamer plugins. |
26 | #export GST_PLUGIN_PATH="'${HOME}/Imprudence-1.3.1-Linux-x86/lib/gstreamer-plugins':'${GST_PLUGIN_PATH}'" | ||
18 | 27 | ||
19 | ## - Avoids the optional OpenGL extensions which have proven most problematic | 28 | ## - Avoids the optional OpenGL extensions which have proven most problematic |
20 | ## on some hardware. Disabling this option may cause BETTER PERFORMANCE but | 29 | ## on some hardware. Disabling this option may cause BETTER PERFORMANCE but |
@@ -48,7 +57,6 @@ | |||
48 | 57 | ||
49 | ## Everything below this line is just for advanced troubleshooters. | 58 | ## Everything below this line is just for advanced troubleshooters. |
50 | ##------------------------------------------------------------------- | 59 | ##------------------------------------------------------------------- |
51 | |||
52 | ## - For advanced debugging cases, you can run the viewer under the | 60 | ## - For advanced debugging cases, you can run the viewer under the |
53 | ## control of another program, such as strace, gdb, or valgrind. If | 61 | ## control of another program, such as strace, gdb, or valgrind. If |
54 | ## you're building your own viewer, bear in mind that the executable | 62 | ## you're building your own viewer, bear in mind that the executable |
@@ -127,7 +135,20 @@ if [ -n "$LL_RUN_ERR" ]; then | |||
127 | if [ "$LL_RUN_ERR" = "runerr" ]; then | 135 | if [ "$LL_RUN_ERR" = "runerr" ]; then |
128 | # generic error running the binary | 136 | # generic error running the binary |
129 | echo 'unexpected shutdown' | 137 | echo 'unexpected shutdown' |
130 | |||
131 | |||
132 | fi | 138 | fi |
133 | fi | 139 | fi |
140 | |||
141 | LOGS_PATH="${HOME}/.imprudence/logs" | ||
142 | if [ -f "${LOGS_PATH}/stack_trace.log" ]; then | ||
143 | LOG_PACKAGE_NAME="MAIL-THIS-CRASHLOG-PLEASE.$(date +%y%m%d%H%M).tar.bz2" | ||
144 | cp "${LOGS_PATH}/stack_trace.log" stack_trace.log | ||
145 | cp "${LOGS_PATH}/Imprudence.log" Imprudence.log | ||
146 | tar --numeric-owner -cjf ${LOG_PACKAGE_NAME} \ | ||
147 | stack_trace.log \ | ||
148 | Imprudence.log | ||
149 | rm stack_trace.log | ||
150 | rm Imprudence.log | ||
151 | echo "You find a crash log package to mail to Imprudence here:" | ||
152 | echo "${RUN_PATH}/${LOG_PACKAGE_NAME}" | ||
153 | echo "See where to send: http://wiki.kokuaviewer.org/wiki/Imprudence:Debug_Logs#Where_to_Send_Them" | ||
154 | fi \ No newline at end of file | ||