Running continuous video recording lua script via chdkptp causes crash - page 3 - Script Writing - CHDK Forum

Running continuous video recording lua script via chdkptp causes crash

  • 25 Replies
  • 6301 Views
*

Offline Caefix

  • *****
  • 948
  • Sorry, busy deleting test shots...
Re: Running continuous video recording lua script via chdkptp causes crash
« Reply #20 on: 04 / December / 2021, 09:29:12 »
Advertisements
For some fun between debugging:  :)
Same CHDK as compiled for my 101b without ExMem trouble, 4h lowres video and ptp 240p life-view.
(needs? dial at <P>, not StdVideo)
Free mem after ptp connection -> rec -> play :
So, if I can translate, you are able to record low res video with PTP connected, when CHDK is built without exmem?
All my home builts are compiled without the EXMEM_MALLOC and CHDK_IN_EXMEM switches, no configs.inc... changed.
Free mem after booting to <play> is ~400k, to <rec> ~570k, firmware update same ~400k. :)
Code: [Select]
sx230hs, 101b  (FHD)

TIME,TYPE,ADDRESS,SIZE
232770,COM           ,47886800,00100000
248570,MOVIE_REC     ,443fc000,0348a800
266910,MOVIE_REC     ,00000000,00000000
Quote
print(string.format("0x%x",0x443fc000+0x0348a800))=0x47886800
« Last Edit: 04 / December / 2021, 13:42:38 by Caefix »
All lifetime is a loan from eternity.

*

Offline reyalp

  • ******
  • 14126
Re: Running continuous video recording lua script via chdkptp causes crash
« Reply #21 on: 04 / December / 2021, 16:07:13 »
Free mem after booting to <play> is ~400k, to <rec> ~570k, firmware update same ~400k. :)
Oops, I misread your screenshot. 160K is CHDK size, free space (actually largest free block) is 275K, which might be OK, but is still quite low.

Quote
Code: [Select]
sx230hs, 101b  (FHD)

TIME,TYPE,ADDRESS,SIZE
232770,COM           ,47886800,00100000
248570,MOVIE_REC     ,443fc000,0348a800
266910,MOVIE_REC     ,00000000,00000000
Quote
print(string.format("0x%x",0x443fc000+0x0348a800))=0x47886800
Yes, that makes sense. Can you check if MOVIE_REC is the same when you do not have USB connected?
Don't forget what the H stands for.

*

Offline Caefix

  • *****
  • 948
  • Sorry, busy deleting test shots...
Re: Running continuous video recording lua script via chdkptp causes crash
« Reply #22 on: 04 / December / 2021, 16:28:10 »
 ;) Now is...
Quote
TIME,TYPE,ADDRESS,SIZE
24850,FILESTORE     ,4338d500,045f9300
36530,FILESTORE     ,00000000,00000000
43370,MOVIE_REC     ,443fc000,0358a800
58370,MOVIE_REC     ,00000000,00000000
All lifetime is a loan from eternity.

*

Offline obi

  • *
  • 27
Re: Running continuous video recording lua script via chdkptp causes crash
« Reply #23 on: 07 / December / 2021, 14:12:01 »
Hi guys,

Posting here as it is related to video download and crash.

I resorted to my SX220HS to test the video script and got a crash when I requested a reboot. I have observed that it happens when I download a .mov file over ptp that was recorded earlier, delete all files over ptp (imrm), and then reboot the camera over ptp, the reboot fails. Attached is the ROMLOG. Note that the unsafe IO was turned off.

con 2> =return get_buildinfo()
3:return:table:{platform="sx220hs",build_date="Dec  6 2021",build_number="1.6.0",build_time="16:11:11",version="CHDK",platsub="101e",build_revision="6022",digic=40,platformid=12844,os="dryos"}

Let me know if I better create a new thread for this one. I did not yet test with CHDK 1.5 though.
« Last Edit: 07 / December / 2021, 14:22:27 by obi »

*

Offline reyalp

  • ******
  • 14126
Re: Running continuous video recording lua script via chdkptp causes crash
« Reply #24 on: 08 / December / 2021, 00:52:32 »
Hi guys,

Posting here as it is related to video download and crash.

I resorted to my SX220HS to test the video script and got a crash when I requested a reboot. I have observed that it happens when I download a .mov file over ptp that was recorded earlier, delete all files over ptp (imrm), and then reboot the camera over ptp, the reboot fails. Attached is the ROMLOG. Note that the unsafe IO was turned off.
Did you switch to play mode before deleting the file?

Some cameras crash with an assert similar to this on switching to play or shutting down after images are deleted in rec. I don't specifically recall anyone reporting it for video, but my impression is video is much less used with PTP, and is likely treated similarly to stills by the subsystem involved.

There should be no need to test 1.5, it's very unlikely to be CHDK version specific.
Don't forget what the H stands for.

*

Offline obi

  • *
  • 27
Re: Running continuous video recording lua script via chdkptp causes crash
« Reply #25 on: 08 / December / 2021, 12:36:34 »
Quote
Did you switch to play mode before deleting the file?

Thanks. That helps indeed.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal