reboot() problem - page 5 - General Discussion and Assistance - CHDK Forum

reboot() problem

  • 43 Replies
  • 17985 Views
*

Offline timgor

  • ***
  • 150
Re: reboot() problem
« Reply #40 on: 05 / December / 2014, 09:43:52 »
Advertisements
I can try to reproduce the crash with a simple script using UPS power supply.

Code: [Select]

sleep(3000)
set_record(1)
sleep(5000)
set_record(0)
sleep (5000)
reboot()

Just to make sure

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: reboot() problem
« Reply #41 on: 05 / December / 2014, 16:07:12 »
Ha-ha-ha,
It's time to pay attention to reboot() function again.
My camera stuck after about 1000 reboots. Today morning I found my camera in a shutdown position, lens was in.
Romlog file didn't give any information about it (it still dumps romlog from my old November crashes).
Do you have idea how to track the crash?
Would you propose some tests for me to do?
From my side I can only insert flags in the C file and run it.

The camera may have detected an error on restart and shutdown.

Rebooting is going to cause the lens mechanism to retract and extend every time - that's going to put a lot of stress on the lens motor.

In 'normal' use it would take years to clock up 1000 power cycles on one of these cameras.

If the camera supports the 'vers.req' trick for getting the firmware version, then you may see any logged hardware errors on the 2nd page of the version info.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline timgor

  • ***
  • 150
Re: reboot() problem
« Reply #42 on: 07 / December / 2014, 11:31:23 »
By the way, right now in my camera
Code: [Select]
fout = io.open("A/out.txt", "a")
fout:write("test") 
fout:close()

Creates the out.txt file with properties

Created: ‎Saturday, ‎January ‎01, ‎2000, ‏‎12:00:00 AM
Modified: ‎Saturday, ‎January ‎01, ‎2000, ‏‎12:00:00 AM

Can you please test if you have the same issue with your camera?

Re: reboot() problem
« Reply #43 on: 07 / December / 2014, 11:40:52 »
By the way, right now in my camera
Code: [Select]
fout = io.open("A/out.txt", "a")
fout:write("test") 
fout:close()

Creates the out.txt file with properties

Created: ‎Saturday, ‎January ‎01, ‎2000, ‏‎12:00:00 AM
Modified: ‎Saturday, ‎January ‎01, ‎2000, ‏‎12:00:00 AM

Can you please test if you have the same issue with your camera?
This is an old & well known issue : http://chdk.setepontos.com/index.php?topic=11078.msg108856#msg108856
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal © 2008-2014, SimplePortal