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

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

  • 105 Replies
  • 32943 Views
Multiple Bug's (Live View / Zoom / Shoot)
« on: 16 / August / 2019, 10:45:54 »
Advertisements
Hello,

I recently bought a PowerShot SX210 IS and i'm really glad that there is the CHDK project.
Kudos to all of you!

But I stumbled over some bugs..
And maybe someone of you experienced a similar one and knows what to do.

Shoot:

When I want to shoot a picture remotely the camera just crashes.
I'm able to work around this if i change the modes form rec -> play -> rec;
Then I can flawlessly make remote shots over chdkptp.

Live View:

The Live View is rather disorted; And the colors aren't matching too;
The really strange thing is, that the live view of the overlay is working?!

I'll attach a picture for you, to see.

Zoom:

It won't do anything pressing at the zoom button at chdkptp_gui; making it dynamically with a Lua script (set_zoom(x)) is working BUT the live view on the camera is nice, the shooted photo ist totally disorted.. It seem's like no distortion (by the lens) correction has been applied afterwards; Like the zoom is set but internal the camera things it hasn't zoomed.

Plus, if i zoom with lua to 0 -> x (in this case 80) -> back to 0 the zoom will happen, but stops all of a sudden and the camera crashes.

I'll attach a picture too.

Attachments:



Maybe you know something..

Kind regards,
Silas

*

Offline Caefix

  • *****
  • 947
  • Sorry, busy deleting test shots...
Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #1 on: 16 / August / 2019, 12:06:23 »
Oh, dear! :-X

The [set_zoom problem] !!  :o A SEARCH gives a lot of hints. CHDK_DE too.

Might be the most ugly ork in the dungeon.
The distorted jpg is the last warning before TILT =near crash.
Next steps may be underlayed with noises You don´t want to hear.
The only sure way around is: set zoom manually first or exit_alt to do.
Don´t use set_zoom on SX2xx. &  {missing list} :'(,
&& Don´t panic!

P.S. "making it dynamically with a Lua script (set_zoom(x)) " will not work with SX210.
++ My Voodoodetector.bas  ::) ...  Learnin´ by watchin´ ´n´ usin´ keys...
« Last Edit: 24 / August / 2019, 11:15:10 by Caefix »
All lifetime is a loan from eternity.

Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #2 on: 16 / August / 2019, 12:29:42 »
Hi Caefix,

thanks for the answer! But i don't quite get it..
What do you mean with "last warning before TILT"

The camera didn't zoomed to it's maximum, only a little bit;
And it already got disorted..

And how will exit_alt help me?
« Last Edit: 16 / August / 2019, 12:35:07 by hedwiggggg »

*

Offline srsa_4c

  • ******
  • 4451
Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #3 on: 17 / August / 2019, 12:40:00 »
One by one.
Shoot:

When I want to shoot a picture remotely the camera just crashes.
Can you describe all details (what you do in what sequence)?
After you crash the cam while doing this, please get a romlog (Miscellaneous stuff -> Debug parameters -> Save ROM crash log)
Live View:

The Live View is rather disorted; And the colors aren't matching too;
The really strange thing is, that the live view of the overlay is working?!

I'll attach a picture for you, to see.
Another picture with the connection alive and overlay visible? Also, do you get the same broken image in movie modes (HD, SD), in playback and in rec modes?


Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #4 on: 17 / August / 2019, 15:03:15 »
One by one.
Shoot:

When I want to shoot a picture remotely the camera just crashes.
Can you describe all details (what you do in what sequence)?
After you crash the cam while doing this, please get a romlog (Miscellaneous stuff -> Debug parameters -> Save ROM crash log)
Live View:

The Live View is rather disorted; And the colors aren't matching too;
The really strange thing is, that the live view of the overlay is working?!

I'll attach a picture for you, to see.
Another picture with the connection alive and overlay visible? Also, do you get the same broken image in movie modes (HD, SD), in playback and in rec modes?

Okay, what I do is:

- click connect
- click rec
- click shoot
-> crash

what works:

- click connect
- click rec
- click play
- click rec
- click shoot



ROMLOG see attachments



Another live view picture with overlays, see attachments
(colors a bit off, but at least the position of the ui is right an clear;
the viewfinder is splitted in three with bad horiziontal lines)

Edit: Changing to VIDEO_x mode the program will crash;


Playback is the same..
« Last Edit: 17 / August / 2019, 15:14:59 by hedwiggggg »

*

Offline srsa_4c

  • ******
  • 4451
Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #5 on: 17 / August / 2019, 17:17:27 »
Okay, what I do is:

- click connect
- click rec
- click shoot
-> crash

what works:

- click connect
- click rec
- click play
- click rec
- click shoot



ROMLOG see attachments

An internal sanity check (?) is failing inside the low level exmem_alloc firmware function. This isn't directly CHDK related. Could be related to the way we switch to rec mode with USB active, or a bug in the port.

Quote
Another live view picture with overlays, see attachments
(colors a bit off, but at least the position of the ui is right an clear;
the viewfinder is splitted in three with bad horiziontal lines)

Edit: Changing to VIDEO_x mode the program will crash;
Some framebuffer related values (buffer width, maybe more) are incorrectly left as default. Palette type is also wrong. I'll try to come up with something.

*

Offline srsa_4c

  • ******
  • 4451
Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #6 on: 19 / August / 2019, 12:27:49 »
Attached is a test build.
I found an old patch on my PC, it was probably never tested. It adds a palette type and viewport buffer width.
I also converted (using whim's patch) the loader to the new style one that most other ports use, including compatibility check.

If possible, I'd like to know whether this build is working and whether remote live view looks better. Other problems are not addressed yet.

*

Offline reyalp

  • ******
  • 14118
Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #7 on: 21 / August / 2019, 13:27:55 »
An sx130 user on IRC got a very similar romlog using shoot over PTP  :blink:

edit:
Code: [Select]
< _raven__> reyalp: it is chdk_de 1.4.1 rev 5247 on a canon sx130is with fw 101f

edit 2:
The sx130 port tries to use 2MB of exmem, which seems like it could trigger exmem related errors. I've provided the user with a build with a more reasonable amount. However, SX210 isn't configured with exmem at all

edit:
Same crash with 512K exmem, so not that.
« Last Edit: 21 / August / 2019, 16:22:52 by reyalp »
Don't forget what the H stands for.


Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #8 on: 22 / August / 2019, 08:38:57 »
Attached is a test build.
I found an old patch on my PC, it was probably never tested. It adds a palette type and viewport buffer width.
I also converted (using whim's patch) the loader to the new style one that most other ports use, including compatibility check.

If possible, I'd like to know whether this build is working and whether remote live view looks better. Other problems are not addressed yet.

Wow, it's working great now! Also no crashes in the video mode!
So the only thing bugging is set_zoom and shoot;


*

Offline srsa_4c

  • ******
  • 4451
Re: Multiple Bug's (Live View / Zoom / Shoot)
« Reply #9 on: 22 / August / 2019, 19:49:57 »
Wow, it's working great now! Also no crashes in the video mode!
Thanks, I added these changes to svn. Will see what can be done to the rest of those problems.

An sx130 user on IRC got a very similar romlog using shoot over PTP  :blink:
I still have no idea. The cameras are less than a year apart, but not the same DryOS rev. Both ports had the old style loader, but I don't think upgrading that would affect this issue. The exmem variable that fails the check is initially set to the number of exmem types, but it is not a constant.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal