wp34s, another shutdown situation



#12

Here is how to reproduce:
64 MODE DENMAX DENFAC -- fractions of an inch mode

Start 'TRI' solver from library. (I did it trough CAT, select LBL'TRI', XEQ, in case that matters).

"Trigon" : [R/S]

a= : 6.1.2 [R/S]

b= : 4.7.8 [R/S]

c= : 6 [R/S]

alpha= : 0 [R/S]

beta= : 0 [R/S]

gamma= : 0 [R/S]

Solution: [R/S]

-- and calculator shuts down.

This happens on real device every time, did not try on emulator, both my calculators do that. The one with newer firmware blinks "Bye...", so it must be a "proper" shutdown.

It may or may not be related to
LINESQ step through bug, which also shuts down the calculator.


#13

Thanks for this. We will investigate once Marcus returns from his holiday.


- Pauli

#14

This shutdown doesn't happen on the emulator (3407). AFAICS the program runs flawless there.

d:-)


#15

I suspect this and the earlier one are related to error handling. Further investigation prove this or otherwise, however Marcus is in the best position to determine the root cause at present.


- Pauli

#16

Here everything also works fine on "the real thing" with firmware 3.2 3405 (incl. printer/timer support).

XEQ"TRI"    TriGon
[R/S] a=
6.1.2 [R/S] b=
4.7.8 [R/S] c=
6 [R/S] alpha=
[R/S] beta=
[R/S] gamma=
[R/S] Solution:
[R/S] a= 13/2
[R/S] b= 39/8
[R/S] c= 6/1
[R/S] alpha= 106036/1461 (= 72,57768...)
[R/S] beta= 455593/9971 (= 45,69180...)
[R/S] gamma= 444151/7195 (= 61,73050...)
[R/S] P= 139/8 (= 17,375)
[R/S] A= 64091/4593 (= 13,95406...)
Calling the program via CAT and XEQ (or ENTER) does not make a difference. No errors here.

Dieter


#17

Dieter, are you sure you set both DENMAX=64 and DENFAC?
From the format of the answers it does not look that way.

The effect can be seen when the above settings are set and not in a "regular" fraction mode.

Edited: 16 June 2013, 10:00 p.m.


#18

Looks like DENFAC contains the root cause. The error does neither happen with DENANY nor DENFIX on the "real thing" (3.2 3407).

d:-)

Edited: 17 June 2013, 12:35 a.m.

#19

No, I obviously overlooked that detail. With these settings I can reproduce the error. Seems to be something in the fractions settings.

One more reason for the metric system. ;-)

Dieter


#20

I'm pretty sure the GCD algorithm used to reduce the terms to their lowest form is the problem. It uses a huge number of digits to guarantee correct results for gcd(max-real, min-real). I think this is causing the volatile stack to overflow into important stuff. As a top level operation there is space for this, but not when called from a long chain from the display handler.

I made a change last night to just use the smaller modulus function instead but this isn't ideal since the GCD and LCM user functions will break for some inputs.


- Pauli


#21

Maybe fraction display code could use special (internal) GCD/LCM version. It only needs to work with integers under 9999. Unlike generic function that has to deal with entire range.


#22

More code would be required. Flash is full.


- Pauli


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP Prime: the drama of the Apps button, shutdown, formatting, nothing solves Davi Ribeiro de Oliveira 0 130 11-17-2013, 07:23 AM
Last Post: Davi Ribeiro de Oliveira
  HP Prime: the drama of the Apps button, shutdown, formatting, nothing solves Davi Ribeiro de Oliveira 1 152 11-16-2013, 11:26 PM
Last Post: Michael de Estrada
  [Prime] Shutdown timer bug? Cristian Arezzini 2 169 11-16-2013, 10:34 AM
Last Post: Cristian Arezzini
  Shutdown with the Apps key and more than 10 variables in a program. Davi Ribeiro de Oliveira 10 519 11-05-2013, 01:26 PM
Last Post: Han
  [WP34S] WP34S firmware on the AT91SAM7L-STK dev kit? jerome ibanes 1 150 10-04-2012, 04:59 PM
Last Post: Paul Dale
  [wp34s] Incomplete Gamma on the wp34s Les Wright 18 609 12-06-2011, 11:07 AM
Last Post: Namir
  [wp34s] Romberg Integration on the wp34s Les Wright 2 180 12-04-2011, 10:49 PM
Last Post: Les Wright
  33S situation is getting ugly... CME750 19 544 11-18-2003, 12:45 PM
Last Post: CME750
  HP49G repairs---what's the situation? Mark Ordal 10 332 09-17-2003, 04:45 AM
Last Post: Ellis Easley
  9810 Repair Situation Mike 0 72 12-16-2001, 04:49 PM
Last Post: Mike

Forum Jump: