-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query: MMB does not release correctly when starting emulation by double-clicking on entry in Configurations panel? #1590
Comments
I cannot recreate this, tried with both native modes and RTG modes. |
Likely a bug then ;) .... visual demonstration using above 3000.uae config... https://www.youtube.com/watch?v=reyTD-hNWOw edit: I can recreate this on the LFS box as well, so it's not nvidia drivers, WM ... it's not something inane like moving the mouse pointer up (towards top) that triggers it? |
Looking at this again, I found a slightly different approach that obviates what I'm referring to...
To me, it looks as though the emulation is not tracking Host mouse position properly ...ie; it doesn't consider mouse pointer has moved outside emulation window? |
Digging this further, running a Save State created from the same 3000.uae config, works as expected ~ unlike test above, MMB releases mouse pointer from emulation window, and RMB is disconnected from emulation ...LMB works as expected, and does not get stolen back by emulation. |
Final sanity check -- Problem is only apparent when starting emulation from the GUI. TIA |
Ah-ha! I found another machination here ~ I can't help but think this is the same bug? To recreate;
This makes me consider that the mouse isn't being completely released from the GUI, when either the F12 key is used, or MMB is employed --- I can only imagine this is the same issue ie;.. first mouse click after using F12 or MMB, is not recognized as expected. HTH |
I still cannot recreate this in the environments I've tested it in: RPI-OS, WSL2, macOS. I suspect it's related to the window manager or something else in the distro your testing with. I'll try it in more environments when I get a chance to see if that's the case. |
Thanks ~ knowing what you've tested against helps clear a path forward for me... ...you should know by now, that my daily drive is debian current on amd64, where I first saw this issue ;) ...you'll see above I'd tested against the LFS build, and could recreate it there (so...IceWM not XFCE4, no debian...but still on x86-64, and in both cases x11 is used).... ....on the same hardware, I booted my USB stick build (based on CachyOS), and compiled/installed amiberry v7.0-RC3 there and retested the scenario -- this issue was not apparent there (using JWM and still on x11...this is Arch based)...working as expected...!! ...so... I followed that bread crumb ... there are so many differences between the 3 OS instances (but just as many likenesses), I think my time here has taught me to check the bleedingly obvious first.... (GUI -> About =) debian Bookworm 12.6 -- SDL2 v2.26.5 ...."that is worth checking".... the LFS build lends itself to this ~ grabbed the SDL2-2.30.6.tar.gz (+ SDL_ttf-release-2.24.0 + SDL_image-release-2.8.4 just to keep in step), compiled and installed --- cleaned, recompile and install amiberry v7.0-RC3 against the newer SDL2 libraries ---> retest this issue ---> no longer apparent, now working as expected...well... ...not quite, the GUI is slow to the order of 1 to 2 seconds of lag to respond (emulation runs fine tho'), BUT, this MMB and mouse focus release issue no longer apparent after moving to the latest SDL2 offerings....(not sure why the GUI is being a dog....little doubt upgrading SDL2 libs with no regard of dependencies could be at play ; I'd need to back-track that locally to find the cause..) BUT...right.... point is, that's all I did ('coz I can) -- move from SDL2-2.28.5 to SDL2-2.30.6, and recompile amiberry = issue no longer present... begs the question, SDL2 version is participle here? HTH |
WSL2 is Debian bookworm, so it uses the same SDL2 version you mentioned above: 2.26.5 None of the above showed the problem to me :) |
Thanks.... (although I don't particularly consider WSL2 in debian mode, to be a 'true' test of debian Bookworm ;) I'll have to keep looking ~ at the end of the day, if nobody else runs into the on debian Bookworm amd64, then it's likely not going to effect anything.... ...I took this instance from Bookworm -> Trixie and that didn't help any ....I guess I'm going to need use the m93p tiny, with a fresh debian Bookworm install, and see if I can nail this down =) |
//...the good thing about living in the country, is you can go outside and scream ~ only the cows & goats look at you ;) ...this is mia culpa on my part ~ I had presumed that revised:
Observation: emulation window 'steals' the mouse back... This does not happen using the ...sorry for the confusion (I'm still serving penance taking the edges off Trixie and I've gotta revert changes in LFS..grrr.... ;) |
Thanks for the extra information. If this is fixed with a newer SDL2 version, it might indicate a bug there. But we'll see if there's a workaround, in that case. |
This wouldn't be a throw back to #1316 by any chance? |
I just confirmed my above speculation. Looking at
Recompile and test ~ MMB release now works as expected (after starting emulation from double-clicking on config entry) That would infer 7840919 is the actual cause here ~ perhaps that commit needs revisiting? HTH |
@giantclambake |
Amiberry is no longer starting, be it double-click on config entry, or select->load->start.... ...I'll attach logfile, but this is in trixie so I gotta check bookworm... ...not sure of the problem, but it seems to still work with floppy images, not a HDD setup... |
You have an exception thrown when running 68k code. This looks irrelevant to the above commit, which only affects the GUI. |
Yeah.... that'll take some finding.... but anyhow... Testing against debian bookworm. same issue is still apparent ~ no change Same for trixie (I can avoid the crash using floppy based config.uae and double-clicking on that) -- same issue is still apparent ~ no change |
To reiterate, the above commit does not fix the MMB release issue...
Oh, I agree, shouldn't have anything to do with it ~ on debian trixie, I rolled back to the v7.0.1 source release, where it's not crashing -- using the same config.uae, I get the following trace in logfile...
Using current
'For some reason' in current HTH |
Additional: I'll recheck, but wrt the trixie crash, git bisect says...
edit: rechecked, same result ~ the above commit somehow unravels .hdf loading on debian |
Ugh...this is broken in debian Bookworm 12.9 wrt .hdf loading as well, so not just trixie ... |
Seems like you're loading a hardfile with RDB info? Is that the normal ClassicWB HDF? I think I have it around somewhere. |
Not making sense here ~ I get the same git bisect result and error in m68k_go on debian 12.9.... and no, I'm not loading RDB info.... also, I cannot save a config.uae file, with .hdf files setup -- clicking on Save in configurations panel causes amiberry to bail abruptly... |
@giantclambake there was a bug in the zfile changes I made recently, fix incoming... |
Should be fixed with 30752bb |
And for the record, I still cannot recreate the original issue on RPIOS here. |
Confirmed, no longer crashing when using .hdf files ~ I circled back and rechecked #1611 ... still good there, so we can finally put that one to rest me thinks... thanks ;)
Perhaps I would concur if I was testing on RPi hw with RPIOS ....but I'm not of course ~ I'm testing with debian bookworm 12.9 on x86-64, and debian trixie (testing) on amd64 ...maybe you should test against the same hw/OS type...(the platforms are markedly different ;).... ...that bug gave me pause to refine the test case here, and remove a lot of variables....
Wait for kick-1.3 insert disk screen -> MMB --> move mouse pointer outside emulation window, and click on desktop.. Result: works as expected, clicking on desktop grabs mouse focus and emulation window no longer 'active' Quit amiberry....
Wait for kick-1.3 insert disk screen -> MMB --> move mouse pointer outside emulation window, and click on desktop.. Result: emulation window 'steals' mouse the moment you click on desktop Note: as above, removing changes associated with 7840919 and the issue is no longer present HTH |
I did a fresh round of tests:
I cannot recreate the problem, following your steps, in any of those. |
Thanks for checking ~ I'll redo some tests here (I use XFCE exclusively), hopefully I can find the actual trigger... |
Ahh.... could be xorg versus wayland ~ which were you using? edit: Confirmed on debian 12.9 using Gnome .... not installed, so
Can you confirm? |
There must be some other detail? |
Hmmm..... try debian12/XFCE/X11 on x86-64? |
Actually, the system back-end seems to be Wayland on Debian12, but SDL2 defaults to X11 - probably due to the known issue that we have in the wiki. I can try changing the priority to let it prefer Wayland, instead. |
Changing SDL2 to Wayland did not change the behavior - it still works as expected for me. |
I managed to recreate it under one scenario only:
It seems that selecting XFCE uses X11 as the system compositor as well, in contrast with the other configurations, which prefer Wayland. Additionally, if you do a left click inside the emulation after it has started, then releasing with the middle button does not cause the unexpected behavior either. Not really sure where the problem is here, but it smells like an external bug (most likely something in x11?). |
Thanks, just goes to show how elusive some bugs can be...(trust me to find the one scenario where this is an issue ;)
That would be the case ~ I've been loosely following XFCE development wrt wayland & friends, and that's the current situation afaik....
Confirmed --- MMB & RMB are mapped in XFCE to Workspace selector/paste & Menu list respectively -- hitting LMB (select/hold) before MMB in emulation, does release as expected....hard to say if it's X11 or within XFCE itself. In any event, we now know what & where this issue is, and seemingly nobody else but me has run into it.... you get that ;) Like you say (and as I know wrt XFCE), linux desktop is headed for Wayland anyhow, so it's probably a non-issue ...given the fullness of time. All things considered, I'll close this for now ~ if it rears it's ugly head in the future, we can open it again... Kudos for spending time checking this, and having faith that I wasn't being stupid...lol B^) |
Addendum: I went back to the LFS box, to fix problems that I'd caused and to see why the amiberry GUI was being so slow ~ turns out it was the SDL2_ttf v2.8.4 build behaving badly --- SDL2-2.30.6 I left in place, and recompiled amiberry, and that fixed the slow GUI issue. Alas, the MMB issue was still apparent... That would infer it is indeed an X11 issue of some kind (not debian nor XFCE... the LFS system uses IceWM), and that SDL2-2.30.6 still works fine. The problem is still evident however, which infers something in X11 is responsible ~ so I agree the blame lay there somewhere, but as X11 is on the way out, it's not worth the effort/trouble to fix =) |
This has been annoying me for a little while ~ just looking at it closely now, I believe the ticket title is correct (I had to double check that WM settings weren't at play)...and digging into this, I note the issue is not apparent when using floppy images or whdload.lha titles ~ it only manifests itself when a HDD based emulation is running... so I'm thinking bug?
To recreate:
Observation: emulation window 'steals' the mouse back... follow on...
Observation: Now it works as expected, with Desktop receiving focus as the emulation window loses focus.
Expected: MMB to release mouse pointer and emulation window, upon the first use of MMB (no repeated step)
I've attached the config.uae file used, so you can check the emulation setup.
Can this be fixed? It's annoying and really catches one out ;)
TIA
3000.uae.gz
The text was updated successfully, but these errors were encountered: