Multiple Bug's (Live View / Zoom / Shoot) - page 3 - General Discussion and Assistance - CHDK Forum

Multiple Bug's (Live View / Zoom / Shoot)

  • 105 Replies
  • 33736 Views
Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #20 on: 24 / August / 2019, 15:20:39 »
Advertisements
when i connect the camera the screen goes black, yes; and it shows as a mounted fs in nautilus;

Edit: I followed the instructions of your referenced article, now it's working like a charm;
Before you changed this, did "rec" make the lens extend when the screen was black? Or was there some other sequence that allowed you to get to shooting mode with the lens extended?

On most cameras, when the black screen problem happens, the lens retracts if it was extended, and "rec" fails to switch to shooting mode. If we can understand how this happened, maybe we can add some additional checks or at least a warning in the documentation.

when I plugged the camera in, the screen went black and the lens went back to the default position;

when i connected and pressed "rec" the lens extended and the screen showed the viewfinder;

but if i pressed "shoot" the camera crashed;

when i pressed "rec", " play", "rec" it was working;

Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #21 on: 24 / August / 2019, 18:04:07 »
Okay, so I've tested it again, without flash and it crashed again..
Thanks.
Next try, with delay increased to 300 and trusting the sigfinder on zoom_status and recreview_hold.
If the CHDK overlay has problems using this build (disappears when it should not), let me know.

Still crashing..

Code: [Select]
ASSERT!! AFScanDriver.c Line 1228
Occured Time  2019:08:24 13:29:05
Task ID: 25362485
Task name: AFTask
SP: 0x0035BDE0
StackDump:
0x00000000
0xFF8DE8F4
0x000004CC
0x00089034
0x00008000
0x00000000
0xFF970D84
0x00000400
0x00000000
0x00000001
0x19980218
0xFF8DED04
0x00089938
0xFF8E53C0
0x00036060
0x00000001
0x00001F5C
0x0000014B
0x19980218
0x19980218
0x19980218
0xFF84A59C
0x00036020
0xFF84A534
0x00036060
0x003336C8
0x19980218
0x19980218
0x19980218
0xFF816AEC
0x19980218
0x19980218
0x00001008
ShootConDump:
0c 0b 00 00 01 02 07 08 09 0a
CameraConDump:
01 0a 02 0d 09 01 10 0a 02 0d
00056300: UI:ScreenLock

00056340: SS:NextAvail(7),ReviewAvail(4)

00056350: UI:PB.DrawI

00056350: UI:_EnableReviewHold:IsPressSwTwo:0

00056350: UI:_EnableReviewHold:IsAvailableShots:1

00056660: UI:LogicalEvent:0x3203:adr:0,Para:0

00056660: UI:PB.IHist

00056670: UI:PB.DcdCBR

00056670: UI:PB.RfrsI

00056690: UI:ScreenUnLock

00056710: UI:DispSwCon_MuteOffPhysicalScreen

00056710: UI:MuteOffPhysicalScreen

00057150: UI:DSIC:48,0

00058350: UI:LogicalEvent:0x311e:adr:0,Para:0

00058350: UI:_EntryPrepareRecreviewOff

00058350: UI:ShootState:0xB

00058350: UI:ShtCon_StopReview

00058350: UI:StopRecReviewController

00058350: UI:PB.StopR

00058350: UI:DispSwCon_MuteOnPhysicalScreen

00058350: UI:MuteOnPhysicalScreen

00058350: UI:ScreenLock

00058360: UI:ScreenUnLock

00058370: UI:LogicalEvent:0x3120:adr:0,Para:0

00058370: UI:ScreenLock

00058370: UI:ScreenUnLock

00058380: UI:_ExitSequence

00058380: UI:Sht_CancelStrobeChargeTimer

00058380: UI:DSIC:4c,0

00058380: UI:_ExitActionReview

00058380: SS:CancelPre

00058440: UI:ScreenLock

00058440: UI:ScreenUnLock

00059190: UI:DispSwCon_MuteOffPhysicalScreen

00059190: UI:MuteOffPhysicalScreen

00059190: UI:ShootState:0x0

00059190: UI:ShtCon_Deactivate

00059190: UI:ChangePopupStrobe:Open

00059200: SS:StrbModChg

00059210: UI:Strobe:Open

00059210: UI:DSIC:14,0

00059210: UI:DSIC:60,0

00059210: UI:DispSwCon_TurnOnDisplayDevice

00059210: UI:ScreenLock

00059220: UI:DSIC:c5,262144

00059330: UI:Display_CaptInfo

00059380: UI:ScreenUnLock

00059400: UI:DispSw: Unlock

00059400: UI:DispSwCon:Unlock

00059400: UI:TerminateDeliverToZoomController

00059410: UI:OPTICAL_ZOOM_POS

00059410: UI:UnpressZoomLever

00059410: UI:_EntryIdleShoot

00059410: UI:ShootState:0x0

00059970: UI:ScreenLock

00059970: UI:ScreenUnLock

00060090: UI:ScreenLock

00060090: UI:ScreenUnLock

00060300: SS:ChargeComplete

00064740: SS:OptAt=0 0

00064770: UI:ScreenLock

00064770: UI:ScreenUnLock

00064860: UI:ScreenLock

00064860: UI:ScreenUnLock

00067050: UI:ScreenLock

00067050: UI:ScreenUnLock

00067210: UI:Button:0x000009A1:PressSwOne

00067210: SS:PreBuf

00067210: UI:ShootState:0x1

00067210: UI:ShtCon_Activate

00067210: UI:DispSw: Lock

00067210: UI:ShtCon_PrepareCapture

00067210: UI:DSIC:61,0

00067210: UI:ScreenLock

00067220: UI:DSIC:e,0

00067220: UI:ScreenUnLock

00067230: UI:ScreenLock

00067230: UI:ScreenUnLock

00067230: UI:LogicalEvent:0x3135:adr:0,Para:0

00067230: UI:DSIC:e,0

00067230: SS:LoadTest:10

00067230: SS:PreCapt

00067230: UI:ShootState:0x2

00067240: UI:ClearEventComp

00067240: UI:ScreenLock

00067240: UI:ScreenUnLock

\00\00\00

Edit:

But it seems to be better, it crashes after I've run the script 3-5 times.
I tested it without the "click 'shoot_half'" and without flash.

Edit²:

Sometimes (more frequently with bad light and max zoom) it seems that the shoot is triggered before the AF process finished.
Maybe this has something to do with this crash?

Edit³:

Because with the flash activated it seems to be taking the AF process "more serious" and it waits till it really focused the given object. And with flash enabled the camera didn't crash yet.

Edit⁴:

Maybe also good to know is, that the crash happens, when the set_zoom(0) finished (from the previous run, the set_zoom(125) was still set) and it is about to take the photo; but it doesn't seems like the AF process aka half shot already happened; it's about to begin I guess.

In the previous build the crash happened when the set_zoom(125) was finished and the camera was about to take the photo (AF seemed mostly done)

BUT maybe this is because of the different lightning now, than at noon (now its 00:21)
« Last Edit: 24 / August / 2019, 18:21:44 by hedwiggggg »

*

Offline srsa_4c

  • ******
  • 4451
Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #22 on: 25 / August / 2019, 07:37:33 »
@hedwiggggg
Here's some insight about how the CHDK set_zoom implementation works:
1) The current subject distance is queried and stored.
2) Zoom is set
3) Wait if a delay is specified (a camera specific CAM_NEED_SET_ZOOM_DELAY value in milliseconds).
4) Subject distance (focus) is re-set to the stored value.
The execution of set_zoom will take at least CAM_NEED_SET_ZOOM_DELAY ms, plus additional time (waiting for zoom to complete).

What I suspect is happening here: there is a conflict between CHDK re-setting the focus and some firmware activity, also adjusting the focus.

Since we don't know when the firmware stops moving the focus, we use CAM_NEED_SET_ZOOM_DELAY and hope that it's enough.

I now set that delay to 500 ms, that's the maximum used in CHDK ports.

*

Offline srsa_4c

  • ******
  • 4451
Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #23 on: 25 / August / 2019, 07:45:49 »
:( Tried a testcrash, can´t find all pieces...

With !Helperl.Bas I only got tilts, blocking lenses and lenserrors shutting down.
Distortions )( & (), but no romlox.
I find it difficult to interpret your posts. If you're having trouble with the sx230, please try to make a simple bugreport. Here, or in the matching porting thread.

Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #24 on: 25 / August / 2019, 07:50:27 »
@hedwiggggg
Here's some insight about how the CHDK set_zoom implementation works:
1) The current subject distance is queried and stored.
2) Zoom is set
3) Wait if a delay is specified (a camera specific CAM_NEED_SET_ZOOM_DELAY value in milliseconds).
4) Subject distance (focus) is re-set to the stored value.
The execution of set_zoom will take at least CAM_NEED_SET_ZOOM_DELAY ms, plus additional time (waiting for zoom to complete).

What I suspect is happening here: there is a conflict between CHDK re-setting the focus and some firmware activity, also adjusting the focus.

Since we don't know when the firmware stops moving the focus, we use CAM_NEED_SET_ZOOM_DELAY and hope that it's enough.

I now set that delay to 500 ms, that's the maximum used in CHDK ports.

Crashed again, but different error:

Code: [Select]
ASSERT!! FocusController.c Line 861
Occured Time  2019:08:25 12:57:44
Task ID: 15466529
Task name: CaptSeqTask
SP: 0x0034D220
StackDump:
0x00000000
0xFF84A71C
0x0000035D
0xFF970D84
0xFF970D84
0x00001F34
0x00000400
0x00000800
0x000075D4
0x00000001
0x0000759C
0xFF84AACC
0x00000002
0x0000EA60
0x0000015A
0xFF83A020
0x0000003C
0x00000000
0xFF970D84
0x00000800
0xFF970D84
0x00000400
0x00003670
0xFF8911F8
0x016A00EC
0x00000000
0x00000001
0xFF8E61A0
0x00000001
0x0003A5AC
0x00000001
0x000032D4
0x00000010
0xFF971388
0x000002A1
0x53414C46
0x00000001
0x000075DC
0x00000000
0x0003A5AC
0x00000000
0x00000000
0x0003A678
0x00000001
0x000032D0
0xFF87F5C8
0x0034D36C
0x00000000
0x000001BB
0x00011010
0x00800203
0x00000000
0x000002CF
0x01950438
0x00000000
0x00000000
0x00000010
0x000278CB
0x00000000
0x00EF0000
0x019502CF
0x00000000
0x0008B474
0xFF92EBD0
0x00000002
0x00000000
0x00EF05A0
0x00000000
0x00000058
0x0000220C
0x00000000
0xFF839A20
0x00000000
0xFF81E7E8
0x00000000
0xFF8FAB28
0x00000000
0x000000F0
0x00000000
0x00000000
0x00000000
0x00000001
0x00000000
0x00000003
0x00000002
0x000000CB
0x00000078
0x000002D0
0x000000F0
0x00000438
0x00000196
0x00000000
0x000002D0
0x00000000
0x60000013
0x0034D3B8
0x0000023C
0xFF81336C
0x00F80008
0x000061A8
0x00001B7F
0xFFAB41EC
0x0000007C
0x0000007D
0x00001B7F
0xFFAB41EC
0x0000007C
0x00001B4E
0x40000013
0x00002204
0x000021FE
0x00000000
0x01F50200
0x00002058
0x000021F8
0x00000450
0x60000013
0x0034D410
0x0000015A
0xFF812CC8
0x016A00EC
0x0000EA60
0x60000013
0x0034D428
0x0000015A
0xFF812CC8
0x016A00EC
0x0000EA60
ShootConDump:
00 00 01 02 07 08 09 0a 0c 0b
CameraConDump:
01 0a 02 0d 09 01 10 0a 02 0d
00111130: UI:ScreenUnLock

00111150: UI:DispSwCon_MuteOffPhysicalScreen

00111150: UI:MuteOffPhysicalScreen

00111980: UI:DSIC:48,0

00112790: UI:LogicalEvent:0x311e:adr:0,Para:0

00112790: UI:_EntryPrepareRecreviewOff

00112790: UI:ShootState:0xB

00112790: UI:ShtCon_StopReview

00112790: UI:StopRecReviewController

00112790: UI:PB.StopR

00112790: UI:DispSwCon_MuteOnPhysicalScreen

00112790: UI:MuteOnPhysicalScreen

00112790: UI:ScreenLock

00112800: UI:ScreenUnLock

00112810: UI:LogicalEvent:0x3120:adr:0,Para:0

00112810: UI:ScreenLock

00112810: UI:ScreenUnLock

00112820: UI:_ExitSequence

00112820: UI:Sht_CancelStrobeChargeTimer

00112820: UI:DSIC:4c,0

00112820: UI:_ExitActionReview

00112820: SS:CancelPre

00112920: UI:ScreenLock

00112920: UI:ScreenUnLock

00113430: SS:ChargeComplete

00113430: UI:DispSwCon_MuteOffPhysicalScreen

00113430: UI:MuteOffPhysicalScreen

00113430: UI:ShootState:0x0

00113430: UI:ShtCon_Deactivate

00113430: UI:ChangePopupStrobe:Close

00113430: SS:StrbModChg

00113440: UI:Strobe:Close

00113450: UI:DSIC:14,0

00113450: UI:DSIC:60,0

00113450: UI:DispSwCon_TurnOnDisplayDevice

00113450: UI:ScreenLock

00113450: UI:DSIC:c5,262144

00113580: UI:Display_CaptInfo

00113620: UI:ScreenUnLock

00113660: UI:DispSw: Unlock

00113660: UI:DispSwCon:Unlock

00113660: UI:TerminateDeliverToZoomController

00113660: UI:OPTICAL_ZOOM_POS

00113670: UI:UnpressZoomLever

00113670: UI:_EntryIdleShoot

00113670: UI:ShootState:0x0

00115210: UI:ShootSeqToUI:0x202f:adr:0,Para:0

00115290: UI:ScreenLock

00115290: UI:ScreenUnLock

00115300: UI:DSIC:c5,0

00115310: UI:ScreenLock

00115320: UI:ScreenUnLock

00115500: UI:ScreenLock

00115500: UI:ScreenUnLock

00115590: UI:ScreenLock

00115590: UI:ScreenUnLock

00115630: UI:ScreenLock

00115630: UI:ScreenUnLock

00115650: UI:ScreenLock

00115650: UI:ScreenUnLock

00115700: UI:ScreenLock

00115700: UI:ScreenUnLock

00115780: UI:ScreenLock

00115780: UI:ScreenUnLock

00115800: SS:OptAt=0 0

00115830: UI:ScreenLock

00115830: UI:ScreenUnLock

00115960: UI:ScreenLock

00115960: UI:ScreenUnLock

00118540: UI:ScreenLock

00118540: UI:ScreenUnLock

00118560: UI:Button:0x000009A1:PressSwOne

00118560: SS:PreBuf

00118560: UI:ShootState:0x1

00118560: UI:ShtCon_Activate

00118560: UI:DispSw: Lock

00118560: UI:ShtCon_PrepareCapture

00118560: UI:DSIC:61,0

00118560: UI:ScreenLock

00118570: UI:DSIC:e,0

00118570: UI:ScreenUnLock

00118580: UI:ScreenLock

00118580: UI:ScreenUnLock

00118580: UI:LogicalEvent:0x3135:adr:0,Para:0

00118580: UI:DSIC:e,0

00118580: SS:LoadTest:10

00118580: SS:PreCapt

00118590: UI:ShootState:0x2

00118590: UI:ClearEventComp

\00\00\00

*

Offline srsa_4c

  • ******
  • 4451
Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #25 on: 25 / August / 2019, 08:11:05 »
Crashed again, but different error
You don't happen to have continuous AF or servo AF enabled, do you?

In ztest4, I removed the fixed delay and trying to wait until the focus is no longer busy. There is a chance this simple hack will make the camera unresponsive.

Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #26 on: 25 / August / 2019, 08:13:19 »
Crashed again, but different error
You don't happen to have continuous AF or servo AF enabled, do you?

In ztest4, I removed the fixed delay and trying to wait until the focus is no longer busy. There is a chance this simple hack will make the camera unresponsive.

Where can I activate / deactivate this?

Didn't tested the build yet, because there happened another crash with a different romlog

Code: [Select]
ASSERT!! Imager.c Line 991
Occured Time  2019:08:25 13:19:22
Task ID: 26935351
Task name: WBIntegTask
SP: 0x0035DD68
StackDump:
0x00000000
0xFF84C774
0x000003DF
0x00000010
0x00000002
0x00001F98
0x00002710
0xFF8B5434
0x00000003
0xFF8B575C
0x00000000
0xFF84C9D4
0x00000000
0x003337C0
0x00152E44
0x0033858C
0x00000000
0x00333770
0x0035DE28
0x00000000
0x60000013
0x00000000
0x00000010
0xFF8B4EEC
0x0035DE18
0x00000010
0x00004850
0x0035DDF8
0x00000010
0x0000001F
0x00000001
0x00000000
0x00000003
0xFF8B5B5C
0xFF8B53A0
0x00000003
0xFF8B5634
0x00000003
0xFF8B5710
0x00000003
0xFF8B5434
0x00000003
0xFF8B575C
0x00000000
0x00000003
0x00000010
0x00004850
0xFF8B4DC0
0x0003EB94
0x00000000
0x00004850
0xFF8B7D14
0xFF8B7AD4
0x00196000
0x0003EBD8
0x00333770
0x19980218
0x19980218
0x19980218
0x19980218
0x19980218
0x19980218
0x19980218
0xFF816AEC
0x19980218
0x19980218
0x00000808
ShootConDump:
00 01 02 07 08 09 0a 0c 0b 00
CameraConDump:
07 0a 02 0d 09 01 0f 0f 0f 0f
01275010: UI:ScreenUnLock

01275030: UI:DispSwCon_MuteOffPhysicalScreen

01275030: UI:MuteOffPhysicalScreen

01276080: UI:DSIC:48,0

01276670: UI:LogicalEvent:0x311e:adr:0,Para:0

01276670: UI:_EntryPrepareRecreviewOff

01276670: UI:ShootState:0xB

01276670: UI:ShtCon_StopReview

01276670: UI:StopRecReviewController

01276670: UI:PB.StopR

01276670: UI:DispSwCon_MuteOnPhysicalScreen

01276670: UI:MuteOnPhysicalScreen

01276670: UI:ScreenLock

01276680: UI:ScreenUnLock

01276690: UI:LogicalEvent:0x3120:adr:0,Para:0

01276690: UI:ScreenLock

01276690: UI:ScreenUnLock

01276700: UI:_ExitSequence

01276700: UI:Sht_CancelStrobeChargeTimer

01276700: UI:DSIC:4c,0

01276700: UI:_ExitActionReview

01276700: SS:CancelPre

01276760: UI:ScreenLock

01276760: UI:ScreenUnLock

01277210: UI:DispSwCon_MuteOffPhysicalScreen

01277210: UI:MuteOffPhysicalScreen

01277210: UI:ShootState:0x0

01277210: UI:ShtCon_Deactivate

01277210: UI:ChangePopupStrobe:Open

01277220: SS:StrbModChg

01277230: UI:Strobe:Open

01277230: UI:DSIC:14,0

01277230: UI:DSIC:60,0

01277230: UI:DispSwCon_TurnOnDisplayDevice

01277230: UI:ScreenLock

01277230: UI:DSIC:c5,0

01277400: UI:Display_CaptInfo

01277410: SS:ChargeComplete

01277470: UI:ScreenUnLock

01277490: UI:DispSw: Unlock

01277490: UI:DispSwCon:Unlock

01277490: UI:TerminateDeliverToZoomController

01277500: UI:OPTICAL_ZOOM_POS

01277500: UI:UnpressZoomLever

01277500: UI:_EntryIdleShoot

01277500: UI:ShootState:0x0

01278020: UI:ShootSeqToUI:0x202f:adr:0,Para:0

01278020: UI:ScreenLock

01278020: UI:ScreenUnLock

01278030: UI:DSIC:c5,0

01278650: UI:ShootSeqToUI:0x202f:adr:0,Para:0

01278660: UI:DSIC:c5,3

01279930: UI:ShootSeqToUI:0x202f:adr:0,Para:0

01279940: UI:ScreenLock

01279940: UI:ScreenUnLock

01279950: UI:DSIC:c5,0

01280350: UI:ScreenLock

01280350: UI:ScreenUnLock

01280620: SS:OptAt=0 0

01280690: UI:ScreenLock

01280690: UI:ScreenUnLock

01280860: UI:ScreenLock

01280860: UI:ScreenUnLock

01283480: UI:ScreenLock

01283480: UI:ScreenUnLock

01283650: UI:ScreenLock

01283650: UI:ScreenUnLock

01283660: UI:Button:0x000009A1:PressSwOne

01283670: SS:PreBuf

01283670: UI:ShootState:0x1

01283670: UI:ShtCon_Activate

01283670: UI:DispSw: Lock

01283670: UI:ShtCon_PrepareCapture

01283670: UI:DSIC:61,0

01283680: UI:ScreenLock

01283690: UI:DSIC:e,0

01283690: UI:ScreenUnLock

01283690: UI:ScreenLock

01283700: UI:ScreenUnLock

01283700: UI:LogicalEvent:0x3135:adr:0,Para:0

01283700: UI:DSIC:e,0

01283700: SS:LoadTest:10

01283700: SS:PreCapt

01283700: UI:ShootState:0x2

01283700: UI:ClearEventComp

01283820: UI:ShootSeqToUI:0x200b:adr:0,Para:0

01283820: UI:ShootSeqToUI:0x200c:adr:0,Para:0

\00\00

*

Offline srsa_4c

  • ******
  • 4451
Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #27 on: 25 / August / 2019, 08:18:46 »
Where can I activate / deactivate this?
The continuous AF and servo AF settings can be found in the rec mode Canon menu.

Quote
Didn't tested the build yet, because there happened another crash with a different romlog

Code: [Select]
ASSERT!! Imager.c Line 991
Occured Time  2019:08:25 13:19:22
Task ID: 26935351
Task name: WBIntegTask
Great. Seems unrelated to zoom and not directly caused by CHDK.

Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #28 on: 25 / August / 2019, 08:32:22 »
Where can I activate / deactivate this?
The continuous AF and servo AF settings can be found in the rec mode Canon menu.

Quote
Didn't tested the build yet, because there happened another crash with a different romlog

Code: [Select]
ASSERT!! Imager.c Line 991
Occured Time  2019:08:25 13:19:22
Task ID: 26935351
Task name: WBIntegTask
Great. Seems unrelated to zoom and not directly caused by CHDK.

I'm capturing in AUTO mode, there isn't such a setting; Idk what the default parameters are in AUTO mode..
Should I try some different mode?

Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #29 on: 25 / August / 2019, 08:48:45 »
Crashed again, but different error
You don't happen to have continuous AF or servo AF enabled, do you?

In ztest4, I removed the fixed delay and trying to wait until the focus is no longer busy. There is a chance this simple hack will make the camera unresponsive.

Okay, 10 iterations, no crash yet.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal