PDA

View Full Version : Running issues with BadShmSeq after following FAQ



likelydo
08-10-2024, 01:59 PM
Hi all,

I am very new to this and followed this post (https://www.showeq.net/forums/showthread.php?7776-ShowEQ-mini-guide) to install seq. I started with installing Ubuntu 18.04.6 LTS (WSL) to windows 11 (as opposed to installing Linux Mint 19). Then went through all the steps in the post without any error until the launch of showeq. I got the BadShmSeg error. Did the trick from the FAQ as following but still the same error.


cd /usr/local/bin
export QT_X11_NO_MITSHM=1
sudo ./showeq


I am running EQ using the build-in wifi from motherboard. There are 2 network interface "eth0" and "lo". Both gave me the same error.
Hope anyone can shed some light on this. I think i am missing something here. Thanks!



ShowEQ 6.2.5, released under the GPL.
SINS 0.5, released under the GPL.
All ShowEQ source code is Copyright (C) 2000-2019 by the respective ShowEQ Developers
ShowEQ comes with NO WARRANTY.


You may redistribute copies of ShowEQ under the terms of
The GNU General Public License.
See: http://www.gnu.org/copyleft/gpl.html for more details...


For updates and information, please visit http://seq.sourceforge.net/
ShowEQ 6.2.5, Built from 'main.cpp' on Aug 10 2024 at 12:34:22
CVS: @(#) $Id: main.cpp 1213 2021-11-30 14:43:44Z cn187 $ $Name$
Using GCC version: 7.5.0
Using glibc version: 2.27
Using Qt version: 4.8.7
Running on Linux release 5.15.153.1-microsoft-standard-WSL2 for processor x86_64


Using config file '/home/sseq/.showeq/showeq.xml'
Loaded preferences file: /usr/local/share/showeq/seqdef.xml!
Unable to open file: /home/sseq/.showeq/showeq.xml!
Info: Listening for first client seen.
Info: Initializing Packet Capture Thread:
Info: Filtering packets on device eth0, searching for EQ client...
Warning: Spells: Failed to open: '/usr/local/share/showeq/spells_us.txt'
Warning: GuildMgr: Could not load guildsfile, /home/sseq/.showeq/tmp/guilds3.dat
Info: Loading Filters from ''
QFSFileEngine::open: No file name specified
Info: Loading Zone Filter File:
QFSFileEngine::open: No file name specified
Info: Loading Zone Filter File:
QFSFileEngine::open: No file name specified
Info: Categories Reloaded
Info: No Map found for zone 'unknown'!
Info: Checked for all variants of 'unknown.map', 'unknown.txt', and 'unknown_1.txt'
Info: in directories '/home/sseq/.showeq/maps' and '/usr/local/share/showeq/maps'!
Warning: Could not restore dock/window geometry. Rearrange windows as desired and then re-save preferences
Warning: Could not restore dock/window state. Rearrange windows as desired and then re-save prefrences
Warning: EQStr: Failed to open '/usr/local/share/showeq/eqstr_us.txt'
X Error: BadAccess (attempt to access private resource denied) 10
Extension: 130 (MIT-SHM)
Minor opcode: 1 (X_ShmAttach)
Resource id: 0xf5
X Error: BadShmSeg (invalid shared segment parameter) 128
Extension: 130 (MIT-SHM)
Minor opcode: 3 (X_ShmPutImage)
Resource id: 0x60002a
X Error: BadShmSeg (invalid shared segment parameter) 128
Extension: 130 (MIT-SHM)
Minor opcode: 3 (X_ShmPutImage)
Resource id: 0x60002a
X Error: BadShmSeg (invalid shared segment parameter) 128
Extension: 130 (MIT-SHM)
Minor opcode: 3 (X_ShmPutImage)
Resource id: 0x60002a

cn187
08-10-2024, 07:06 PM
I've never tried to run ShowEQ under WSL, so I have no idea how well it works in general. That said...

You're doing your export as your user, and then doing sudo ./showeq to run as root. I don't know how 18.04 has its sudo configured off the top of my head, but it's very likely that your user's environment is not getting passed to root when you sudo to run showeq, meaning that env var isn't actually getting set in a way that SEQ can use it.

If this is the case, then you'll either need to adjust your sudo config (see man 5 sudoers, particularly the parts on env_reset, env_check, env_keep) so that QT_X11_NO_MITSHM gets passed in, or you'll need to sudo/su to a shell, then as root do the export and run showeq.

The latter should be as easy as



$ sudo -s
# cd /usr/local/bin
# export QT_X11_NO_MITSHM=1
# ./showeq

likelydo
08-10-2024, 11:18 PM
thanks for insight! I think I got it working doing a sudo first

sudo QT_X11_NO_MITSHM=1 ./showeq

BlueAdept
08-12-2024, 05:07 PM
He beat me to it. I was going to say it looks like a permission problem. ShowEQ needs root access. Congrats on getting running.