bad magicnum? - page 2 - General Help and Assistance on using CHDK stable releases - CHDK Forum

bad magicnum?

  • 18 Replies
  • 5619 Views
*

Offline reyalp

  • ******
  • 14128
Re: bad magicnum?
« Reply #10 on: 09 / December / 2012, 16:06:43 »
Advertisements
I see. Any idea where to go from here? Setting things seems to be OK but nothing from Miscellaneous Stuff or Scripting loads.
"bad magicnum" would normally mean something is corrupted, either the module files or camera memory. Try a different card or re-formatting and reinstalling. If the file were the wrong version or mission, the error would be different.

It's possible that some other bug could cause this, but if it were a generic bug in chdk code one would expect all cameras to be affected.

As always, input from other users with this camera would be helpful.
Don't forget what the H stands for.

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: bad magicnum?
« Reply #11 on: 10 / December / 2012, 03:01:28 »
"Failed to load <something> flt... bad magicnum."

This error means that it thinks it opened the module file and read it into memory; but that something in the first 8 bytes read did not match the expected header values.

This could be the memory allocation in the function that reads the file failed - the code does not check for this properly.

Under the Miscellaneous menu there should be a 'Show Memory Info' option - run that and see what it shows for Free Memory.

I've attached a test version that includes more error checking - try this and post back the error message.

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)

Re: bad magicnum?
« Reply #12 on: 10 / December / 2012, 22:48:07 »
Lots of free memory - forgot to write it down :-[ . Installed the test image with LICKS now the camera won't turn on. I think the battery's dead - the charger's at work. Be back tomorrow. Thanks.

Re: bad magicnum?
« Reply #13 on: 10 / December / 2012, 22:58:52 »
Lots of free memory - forgot to write it down
Unfortunately "Lots" is a very relative term.  For small microcontroller,  4K of free memory is "lots".    For CHDK, less than 200K starts to get tight and less that 100K becomes non-functional pretty quickly.

Ported :   A1200    SD940   G10    Powershot N    G16

Re: bad magicnum?
« Reply #14 on: 10 / December / 2012, 23:59:53 »
I think it was between 200 and 300. But then thinking is relative too.  ??? I hope I'll be able to find out tomorrow. Really appreciate all the help, BTW.

*

Offline reyalp

  • ******
  • 14128
Re: bad magicnum?
« Reply #15 on: 11 / December / 2012, 00:29:54 »
Lots of free memory - forgot to write it down :-[ . Installed the test image with LICKS now the camera won't turn on. I think the battery's dead - the charger's at work. Be back tomorrow. Thanks.
If the camera won't turn on, that could also be caused by trying to load a CHDK version that isn't compatible with your camera, or CHDK crashing on boot for some other reason. This can crash in such a way that you need to briefly remove the battery to actually get the camera to boot normally again, even if CHDK is disabled.

To quickly disable CHDK autoboot, you can just unlock the SD card.
Don't forget what the H stands for.

Re: bad magicnum?
« Reply #16 on: 11 / December / 2012, 20:59:01 »
I think I killed it. The battery's fully charged and it doesn't even try to turn on. Is there maybe some sort of trick button pressing incantation I could try to bring it back to life?

Re: bad magicnum?
« Reply #17 on: 11 / December / 2012, 21:02:48 »
Woah!! I just got it to turn on by holding the shutter release half way down while pushing the on button. But with no card installed. I'm going to experiment. Back soon.  ???

Re: bad magicnum?
« Reply #18 on: 11 / December / 2012, 22:12:14 »
It's working!  :xmas  I redid the card with LICKS and the .....2361 build and it all works. Thanks again for the help and advise.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal