On Mon, May 02, 2022 at 09:03:48AM -0600, Thomas Frohwein wrote:
> On Mon, May 02, 2022 at 04:56:30PM +1000, Jonathan Gray wrote:
> > On Mon, May 02, 2022 at 10:16:16AM -0600, Thomas Frohwein wrote:
> > > 
> > > Here, it triggered after running the game twice with less than 30
> > > seconds of gameplay and then launching it a third time.
> > > 
> > > I will see if I can find some opensource project that uses the FNA
> > > ecosystem to be a better test case...
> > 
> > If not apitrace could be used to replay the opengl calls.
> > https://apitrace.github.io/
> > 
> > Trying to update an old port I had of it to the latest version (11.0)
> > breaks as it is setup to use git submodules now...
> > going back to 10.0 builds.  rough port attached.
> > 
> > apitrace trace glxgears
> > apitrace replay 5138.trace
> > 
> > https://github.com/apitrace/apitrace/blob/master/docs/USAGE.markdown
> > 
> > It is also possible to replay traces captured on linux and other
> > systems.
> 
> sadly this doesn't seem to work with the games in question. When I launch
> them with `apitrace trace fnaify` even with full mono environment and
> runtime with apitrace, the game doesn't launch:
> 
> $ [...]
> ...
> apitrace: redirecting dlopen("libGL.so", 0x102) from 
> /usr/local/lib/libSDL2.so.0.11
> apitrace: tracing to 
> /home/thfr/games/fnaify/roguelegacy/gog/data/noarch/game/90118.trace
> $
> 
> Not sure if maybe the mono runtime is interfering in some way...

I see the same with quakespasm and it dumps core when traced

Program terminated with signal SIGILL, Illegal instruction.
#0  0x000006ada7c51642 in _libc__rthread_debug (level=5, 
    fmt=0x6ada7be10f6 "%p: mutex_%slock %p (%p)\n")
    at /usr/src/lib/libc/thread/rthread_debug.c:19
19      {
(gdb) bt
#0  0x000006ada7c51642 in _libc__rthread_debug (level=5, 
    fmt=0x6ada7be10f6 "%p: mutex_%slock %p (%p)\n")
    at /usr/src/lib/libc/thread/rthread_debug.c:19
#1  0x000006ada7c35e6c in _rthread_mutex_timedlock (
    mutexp=0x6ade1fc9720 <trace::localWriter+136>, trywait=0, abs=0x0, 
    timed=<optimized out>) at /usr/src/lib/libc/thread/rthread_mutex.c:163
#2  0x000006adb3555337 in std::__1::__libcpp_recursive_mutex_lock (__m=0x5)
    at 
/usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/include/__threading_support:390
#3  std::__1::recursive_mutex::lock (this=0x5)
    at /usr/src/gnu/lib/libcxx/../../../gnu/llvm/libcxx/src/mutex.cpp:71
#4  0x000006ade1f0dea2 in trace::LocalWriter::beginEnter(trace::FunctionSig 
const*, bool) () from /usr/local/lib/apitrace/wrappers/glxtrace.so
#5  0x000006ade1e07462 in glXChooseVisual ()
   from /usr/local/lib/apitrace/wrappers/glxtrace.so

Reply via email to