Zero pain in Zap during undo
Pages: 1 2
André Timmermans (100) 655 posts |
Time: Fri Sep 7 07:43:12 2018 R0 = ffffffff R1 = 00000017 R2 = 00000001 R3 = 00000000 20481e58 : e59c72ac : LDR R7,[R12,#684] R15 = 20481ea0 = Zap +34b2c = fill_words +ea4 USR stack: It seems that calls to conv_index_offs often forget to check if the returned R8 and R9 against 0 |
Rick Murray (539) 13840 posts |
What sequence of actions causes this to happen? |
Steve Pampling (1551) 8170 posts |
What version of Zap is André using? It might be something you fixed in the version you’ve amended if it isn’t your amended version he’s using. |
Rick Murray (539) 13840 posts |
https://www.chiark.greenend.org.uk/~sgtatham/bugs.html ;-) I’m not aware of a bug during undo, or having fixed such a thing…And I used undo a lot over the weekend… |
Steve Pampling (1551) 8170 posts |
https://www.chiark.greenend.org.uk/~sgtatham/bugs.html “It doesn’t work.” summarises a job logged yesterday. The job notes that a system can’t communicate with a manufacturers support system. Could the firewall be blocking it? From that have you any ideas what it could be yet? |
Doug Webb (190) 1180 posts |
Steve,
How many years have you been in IT support and you don’t know the answer? Of course it is you at fault for not sorting it or knowing how to fix it as they have given you enough information , so what the problkem or do they have to get someone who knows what they are doing to sort it :-) |
Doug Webb (190) 1180 posts |
Aah, Forum issues stike again |
Steve Pampling (1551) 8170 posts |
Long enough to know the habits of certain users1 and to hazard a guess that they were using http/https and not setting ALL the proxy details. :) That despite my regular claim2 Back on thread, I’m assuming André will answer the question “What version of Zap is André using?” shortly. 1 Fail to supply relevant details in the first place and dismiss the request for specifics with a statement that they already logged a job. Oh and include higher management in the email chain to stir things up. |
Colin Ferris (399) 1814 posts |
There is a:- bl &39ac (proc ’conv_index_offs) proc ‘conv_index_offs’ &39ac |
André Timmermans (100) 655 posts |
Well, if I knew the sequence I would have mentionned, playing with Undo/Redo while coding makes it a little hard to reproduce.
I thought I upgraded to Rick’s version, but no I am still using the tim01 version. The code concerned by the ZeroPain was not rouched though. See cw_Goto_update_update in s.boxes (corresponds to fill_words +ea4), there is a call to conv_index_offs which returns pointers in R8 & R9 but these pointers may have a value of 0 and cw_Goto_update_update doesn’t check this. Note that cw_Goto_update_update is not the only place where R8/R9 are not checked before use after a call to conv_index_offs. Off topic, while updating the old BASIC code in Boufy which redefines part of the system font, I thought of using the system font in !Zap to visualise the level maps in the source code but I had redraw issues as if the lines had the wrong height. Has anyone redraw issues with the system font? |
Rick Murray (539) 13840 posts |
No. 108 is &6C, which is in the area reserved for FIQ code (reference). I don’t think 108 is special, I think it’s a test that failed (that would be your movmi) that probably should have caused the function to exit, not carry on with a bogus pointer… |
Colin Ferris (399) 1814 posts |
I think Jef – did a file which showed which zeropage offsets could be replaced by a call – can’t remember what it was called :-( anyone remember? With ref to Andre – With the VRPC-DL and !Zap – am back to using a older version of ZapRedraw 0.48 (20 Aug 2005). Can some of the updates to modules – use numbering like:- (if a major number change is deemed in-appropate) vsn 1.7500 – 1.7599 |
David Pitt (3386) 1248 posts |
FWIW I use the last 26bit build of Zap on my 26bit platforms, VRPC’s and RPCEmu’s, from here This includes :- *help zapredraw ==> Help on keyword ZapRedraw Module is: ZapRedraw 0.39 (06 Nov 2002) � Zap Developers As I understand it that 26bit build was a high watermark, the later official 32bit builds were betas, or work in progress, or worked (mostly) on the Iyonix. So far I have seen no good reason to attempt to use any current 32bit build on my 26bit platforms, but to be fair Rick’s latest, rick-04, looks good on the Titanium and RPi3B+, he said as a StrongED user that is. Back to the topic, with Zap 1.48 rick-04, undo is entirely painless here, so far. HTH. P.S. I did make the assumption that VRPC-DL is OS4.02. |
Rick Murray (539) 13840 posts |
That’s why I wanted to know what André was doing to trigger the problem. There seems to be something as noted above, so there may be some edge case that triggers this that the most of us don’t see… André – just a quick question: what mode were you using? Text? |
Fred Graute (114) 645 posts |
Yes, it’s something I’d seen before. Draw a window over a text in system font and the lines jump up and down. After a bit of digging around I found the problem in ZapRedraw. There is a patch by Tank in s.VDURedraw where the first instruction reads: ADD R10,R10,#4
this needs to be: ADD R10,R10,#2
Otherwise it reads from the wrong word in the redraw structure. |
André Timmermans (100) 655 posts |
I was using C. I also notice from time to time when you play to much with undo and redo that it becomes inacurate, but once again since it involves changes scatered through the file and more than a single use of undo/redo during the edition, I fell like I could try all day and not be able to reproduce the problem. |
David Pitt (3386) 1248 posts |
The good news is that the not entirely correct More good news is that this is an easy ROOL Tools build using rick’s source. Thanks all round. |
Colin Ferris (399) 1814 posts |
Thanks Fred – Trying ZapRedrew 0.49 again – or is that 0.491 :-) With VRPC-DL using one ‘HostFS’ for both ro5.25/ro4.02 – so try to have one version of Zap & others progs on call :-) |
André Timmermans (100) 655 posts |
I had a little bit time to get the rick-04 sources and make a few little updates , mainly to ZapRedraw (ensuring correct use of r_linesp (contains line spacing in the bottom 2 bytes and char spacing in the top 2) and correct display of system font under various eigen factors. Edit: link fixed |
Rick Murray (539) 13840 posts |
Thanks André. I’ll roll these updates into a rick-05 Real Soon Now™. |
Fred Graute (114) 645 posts |
André, the link points to the old ZapSource148tim01/zip release, not the new ZapSource148tim02/zip. |
Chris Hall (132) 3554 posts |
Thanks André. I’ll roll these updates into a rick-05 Real Soon Now™. When you have done so, please please upload the latest version to !Store as the latest version there is still 1.48.7. |
Rick Murray (539) 13840 posts |
Okay. I’ll send an email to RComp if I can take over Zap to get it updated. |
André Timmermans (100) 655 posts |
Opening a Cmhg containing a large help text shows some issues. The file is opened in Assmbleur mode with autowidth on and displays incorrectly because some lines exceeds the width of 255 chars. Autowidth should be limited to 255 chars for assembler. It wouldn’t surprise me if other modes have similar issues. |
Rick Murray (539) 13840 posts |
An update patch is now available to bring Zap up to “rick-05”. This should be applied to a previous (rick-04) installation. http://heyrick.ddns.net/files/zap-rick05.zip (~154K) Updates Zap and ZapRedraw with André’s modifications. ZapRedraw module has been bumped to v0.50 and Zap itself has been bumped to v1.49. Just given a quick test, and the font options all look as expected (except anti-aliased DSA doesn’t seem to handle high-bit-set ASCII – weird…). |
Pages: 1 2