WP43/C43 cannot clone repo

This area is for discussion about these families of custom high-end Scientific Calculator applications for SwissMicros devices.
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: WP43/C43 cannot clone repo

Post by cdmackay »

thanks very much Jaco; I've tried it both with my own compile, and also the binary supplied in c47-macos.zip in the master branch repo. The behaviour is the same for both.

This is on MacOS Ventura 13.2.1 x86_64

I followed the setup instructions on the c43 wiki "Build Setup", using the MacOS Homebrew method. I didn't follow the steps for building DMCP, or modifying code.

Then:

Code: Select all

make clean
make
./wp43
I tested both the git master branch HEAD, and also tag 108_09-Release.

I remove backup.bin before running wp43, in case anything there was causing an issue.

I then enter: 30, and single-click on SIN. Gives me 0.5 as expected.

Then click on f/g, and the f appears in the display.

Then click on SIN, and ARCSIN appears in the display for a second, followed by NOP. The NOP remains visible. The ARCSIN does not execute. It does not seem to be long-press cycling, since neither SIN, nor LINPOL appear (they do when I long-press SIN).

The f press does not produce any cmdline output; the following SIN press produces:

Code: Select all

>>> refreshScreenCounter=29 calcMode=0 last_CM=0 doRefreshSoftMenu=1 screenUpdatingMode=0
>>> screen.c: clearScreen: clearScreenCounter=24
>>> refreshScreenCounter=30 calcMode=0 last_CM=0 doRefreshSoftMenu=0 screenUpdatingMode=0
>>> screen.c: clearScreen: clearScreenCounter=25
>>>> processKeyAction: item=83  programRunStop=0
Switch - default: processKeyAction: calcMode=0 itemToBeAssigned=-32768 item=83
I notice that f/g work fine in conjunction with the top-row function keys, however. But not with any other keys. e.g. f-7 produced "EQN NOP", but not the EQN menu.

Long-press cycling works fine on the Function & Math keys, and after f/g on the lower keys.


I'd like to get this working, so if you need more info, please let me know.
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
User avatar
Jaymos
Posts: 1635
Joined: Sun Nov 04, 2018 7:03 pm
Location: Cape Town

Re: WP43/C43 cannot clone repo

Post by Jaymos »

It sounds like the simulator is working. It seems as soon as you use an f-shifted function like SIN, that the function runs through to NOP, not allowing the mouse unclick to select the function.

Try look again if the display "ARCSIN" changes to i (or LINPOL) directly before NOP. That will prove the theory. (Try use your phone to make a slomo video - I've use this before on the hardware!)

We know the simulator works. So it has to do with either the Mac systtem which is a lot newer than mine, or maybe XQuartz. I had different problems with it two years ago with the newer version. Therefore I still use 2.8.1. It might be worth trying to downgrade XQuartz if one can and see if it makes a difference. See here: https://www.xquartz.org/releases/index.html

A further difference is I used the installation steps for the MacPorts system, not Homebrew - so I only say the MacPorts side are up to date.

Please feed back to me, I would have to make time to make test versions for you to try out - but I am stabbing in the dark - I know precious little of the background workings of these things.
Jaco Mostert
Elec Eng, South Africa
https://47calc.com C47 (s/n 03818 & 06199), WP43 (0015). In box: HP42S, HP32Sii, WP34S&C, HP28C, HP35s, EL-506P, EL-W506, PB700; ex: FX702P, 11C, HP67 & HP85; iOS: 42s Byron, Free42+, WP31S/34S, HCalc.
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: WP43/C43 cannot clone repo

Post by cdmackay »

thanks Jaco.

It definitely changes directly from ARCSIN to NOP. See slow-motion video, at 32s:

https://www.amazon.co.uk/photos/share/D ... s09Eyb4VKQ


However, If I hold down SIN, I see it cycle: SIN -> ARCSIN -> op_i -> NOP. And ARCSIN works if I release then [earlier I saw LINPOL in place of op_i].

If I press f, then hold down SIN, I see: ARCSIN -> op_i -> NOP. And ARCSIN works if I release early.

But if I press f, then single-click SIN (the issue I'm reporting), I see: ARCSIN -> NOP. And nothing is executed.


I tried various XQuartz versions (2.8.0_beta1, 2.8.2, 2.8.5); no change. I am not sure that XQuartz is even in use here; it looks like libgdk calls directly into MacOS Appkit (graphics). The XQuartz processes are not even running on my system (which they do when I start an X program), when C47 is in use.


I am happy to do any tests that may prove useful…


thanks again.

PS I am using a trackpad, not a mouse; might that be relevant? I don't have a mouse to test, however. In many years, I have never found a difference between mouse and trackpad use.
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
User avatar
Jaymos
Posts: 1635
Joined: Sun Nov 04, 2018 7:03 pm
Location: Cape Town

Re: WP43/C43 cannot clone repo

Post by Jaymos »

cdmackay wrote:
Wed Mar 15, 2023 10:59 pm
However, If I hold down SIN, I see it cycle: SIN -> ARCSIN -> op_i -> NOP. And ARCSIN works if I release then [earlier I saw LINPOL in place of op_i].

If I press f, then hold down SIN, I see: ARCSIN -> op_i -> NOP. And ARCSIN works if I release early.

But if I press f, then single-click SIN (the issue I'm reporting), I see: ARCSIN -> NOP. And nothing is executed.

PS I am using a trackpad, not a mouse; might that be relevant? I don't have a mouse to test, however. In many years, I have never found a difference between mouse and trackpad use.
Got the slomo thanks. ARCSIN to NOP. LINPOL was in release 108_09 and i is in release 108_09a.

I permanently use a laptop with trackpad and I seldomly use the real mouse. It should work.
If you have changed any customisation on the trackpad such as mouse keys on the pad, please restore to normal.

Before you test the test version discussed below: Pleas use the keyboard, not the mouse. Use left space for f/g, and "s" for SIN. See if the situation remains the same. I do not expect display - only execution of the ARCSIN.


Please compile Test-for-MacSim1- Test , SHA 1a1b76b3ceef79d5597f412d439be855f98b2c97

Run the tests in your quote here, and please report back.

Please check that the following debug lines appear every time. The lines are connected to the mouse clicks:

Code: Select all

>>>>Z 0093 btnPressed Pressed data=|27| data[0]=50
>>>>Z 0094 btnPressed Released data=|27| data[0]=50
>>>>Z 0093 btnPressed Pressed data=|09| data[0]=48
...
>>>>Z 0094 btnPressed Released data=|09| data[0]=48
The 1st line is the pressing of the "f"
The 2nd line is the releasing of the "f"
The 3rd line is the pressing of the "SIN"
The 4th line is the releasing of the "SIN".

I suspect line 4 might be missing in the case where you complain.
Jaco Mostert
Elec Eng, South Africa
https://47calc.com C47 (s/n 03818 & 06199), WP43 (0015). In box: HP42S, HP32Sii, WP34S&C, HP28C, HP35s, EL-506P, EL-W506, PB700; ex: FX702P, 11C, HP67 & HP85; iOS: 42s Byron, Free42+, WP31S/34S, HCalc.
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: WP43/C43 cannot clone repo

Post by cdmackay »

thanks Jaco.

I built myself from your test branch.

Using the keyboard entry, it works correctly. left-shift (f) s (sin) executes ARCSIN.

Using the trackpad, it fails as previously reported: ARCSIN -> NOP, and not executed. The debug output is:

Code: Select all

# click f
>>>>Z 0093 btnPressed Pressed data=|27| data[0]=50
>>>>Z 0094 btnPressed Released data=|27| data[0]=50

# click sin
>>>>Z 0093 btnPressed Pressed data=|09| data[0]=48
>>> refreshScreenCounter=35 calcMode=0 last_CM=0 doRefreshSoftMenu=1 screenUpdatingMode=0
>>> screen.c: clearScreen: clearScreenCounter=29
>>>>Z 0094 btnPressed Released data=|09| data[0]=48
>>> refreshScreenCounter=36 calcMode=0 last_CM=0 doRefreshSoftMenu=0 screenUpdatingMode=0
>>> screen.c: clearScreen: clearScreenCounter=30
>>>> processKeyAction: item=83  programRunStop=0
Switch - default: processKeyAction: calcMode=0 itemToBeAssigned=-32768 item=83
so the SIN release is seen after all?
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
User avatar
Jaymos
Posts: 1635
Joined: Sun Nov 04, 2018 7:03 pm
Location: Cape Town

Re: WP43/C43 cannot clone repo

Post by Jaymos »

cdmackay wrote:
Thu Mar 16, 2023 1:23 am
thanks Jaco.

I built myself from your test branch.

Using the keyboard entry, it works correctly. left-shift (f) s (sin) executes ARCSIN.

Using the trackpad, it fails as previously reported: ARCSIN -> NOP, and not executed. The debug output is:

Code: Select all

# click f
>>>>Z 0093 btnPressed Pressed data=|27| data[0]=50
>>>>Z 0094 btnPressed Released data=|27| data[0]=50

# click sin
>>>>Z 0093 btnPressed Pressed data=|09| data[0]=48
>>> refreshScreenCounter=35 calcMode=0 last_CM=0 doRefreshSoftMenu=1 screenUpdatingMode=0
>>> screen.c: clearScreen: clearScreenCounter=29
>>>>Z 0094 btnPressed Released data=|09| data[0]=48
>>> refreshScreenCounter=36 calcMode=0 last_CM=0 doRefreshSoftMenu=0 screenUpdatingMode=0
>>> screen.c: clearScreen: clearScreenCounter=30
>>>> processKeyAction: item=83  programRunStop=0
Switch - default: processKeyAction: calcMode=0 itemToBeAssigned=-32768 item=83
so the SIN release is seen after all?
Yes. The SIN release is seen.
That is good info.
I will think on how to test further.
Thanx.
Jaco Mostert
Elec Eng, South Africa
https://47calc.com C47 (s/n 03818 & 06199), WP43 (0015). In box: HP42S, HP32Sii, WP34S&C, HP28C, HP35s, EL-506P, EL-W506, PB700; ex: FX702P, 11C, HP67 & HP85; iOS: 42s Byron, Free42+, WP31S/34S, HCalc.
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: WP43/C43 cannot clone repo

Post by cdmackay »

thanks again Jaco, I'll await further instructions.

One point to clarify my last post the "click sin" debug output appeared as all lines 8 together, with no delay.
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
User avatar
Jaymos
Posts: 1635
Joined: Sun Nov 04, 2018 7:03 pm
Location: Cape Town

Re: WP43/C43 cannot clone repo

Post by Jaymos »

cdmackay wrote:
Thu Mar 16, 2023 1:40 am
thanks again Jaco, I'll await further instructions.

One point to clarify my last post the "click sin" debug output appeared as all lines 8 together, with no delay.
The next suspect is the timer timing out that could have failed, based on some OS interaction. But it does work in the other cases where the timer is needed. I will make a test version maybe tonight. Thank you for the testing support.
Jaco Mostert
Elec Eng, South Africa
https://47calc.com C47 (s/n 03818 & 06199), WP43 (0015). In box: HP42S, HP32Sii, WP34S&C, HP28C, HP35s, EL-506P, EL-W506, PB700; ex: FX702P, 11C, HP67 & HP85; iOS: 42s Byron, Free42+, WP31S/34S, HCalc.
User avatar
Jaymos
Posts: 1635
Joined: Sun Nov 04, 2018 7:03 pm
Location: Cape Town

Re: WP43/C43 cannot clone repo

Post by Jaymos »

cdmackay wrote:
Thu Mar 16, 2023 1:40 am
thanks again Jaco, I'll await further instructions.

One point to clarify my last post the "click sin" debug output appeared as all lines 8 together, with no delay.
This needs clarification:

If all 8 lines came at the same time, it seems to me it is not waiting for release? Out is it just language?

The line below (4th Z 00... line) must only come AFTER you actually release the mouse button on SIN and must not come with the other lines.

Code: Select all

>>>>Z 0094 btnPressed Released data=|09| data[0]=48
Please try keep it in until all is stable then release - try different timings. It must always only come AFTER actual release.

Please advise the exact behaviour. Also compare with the same line for the f release.
Jaco Mostert
Elec Eng, South Africa
https://47calc.com C47 (s/n 03818 & 06199), WP43 (0015). In box: HP42S, HP32Sii, WP34S&C, HP28C, HP35s, EL-506P, EL-W506, PB700; ex: FX702P, 11C, HP67 & HP85; iOS: 42s Byron, Free42+, WP31S/34S, HCalc.
cdmackay
Posts: 281
Joined: Fri Oct 05, 2018 8:33 pm
Location: Cambridge, UK
Contact:

Re: WP43/C43 cannot clone repo

Post by cdmackay »

Jaymos wrote:
Thu Mar 16, 2023 6:34 pm
cdmackay wrote:
Thu Mar 16, 2023 1:40 am
thanks again Jaco, I'll await further instructions.

One point to clarify my last post the "click sin" debug output appeared as all lines 8 together, with no delay.
This needs clarification:

If all 8 lines came at the same time, it seems to me it is not waiting for release? Out is it just language?

The line below (4th Z 00... line) must only come AFTER you actually release the mouse button on SIN and must not come with the other lines.

Code: Select all

>>>>Z 0094 btnPressed Released data=|09| data[0]=48
Please try keep it in until all is stable then release - try different timings. It must always only come AFTER actual release.

Please advise the exact behaviour. Also compare with the same line for the f release.
sorry for misleading; it's simply that for a normal mouse click, the press and release occur almost instantaneously, so the debug lines do, too.

I meant to note that the debug lines are all emitted before the cycling ARCSIN->NOP, which obviously takes a second or two, during which time no further lines are emitted.

I will double-check the press/release separately, tonight; thanks.
Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
Post Reply