os.rename causes crash when dest. path > 31 characters - page 3 - General Help and Assistance on using CHDK stable releases - CHDK Forum

os.rename causes crash when dest. path > 31 characters

  • 23 Replies
  • 678 Views
*

Offline Caefix

  • *****
  • 517
  • Sorry, busy deleting test shots...
Re: os.rename causes crash when dest. path > 31 characters
« Reply #20 on: 15 / July / 2021, 13:26:44 »
Advertisements
??? Vector Romlogs look like from this endless loop ...
Code: [Select]
  case TOKENIZER_EXCEPTION: // Romlog on demand? 20-60! secs later
ended=0; while (ended<1); {ended++;}
Is the first romlog in your text file from the crash described in your post above (https://chdk.setepontos.com/index.php?topic=14399.msg146674#msg146674)

Have you modified the code for the build it was running?
Both ways lead to seconds of
Quote
00027840: UI:VTMLock
00027850: UI:VTMUnLock
00030620: UI:VTMLock
00030630: UI:VTMUnLock
!Romlog line 950++ is form the exception call, just to compare...

Edit: ::) Deleted file A/TESTFN/T098AAA*.* & below, now I can enter the folder without crash...
Code: [Select]
T098AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Edit2: When I try to rename A/TESTFN/T015*.txt box tells 'text limit reached'  :-[
« Last Edit: 15 / July / 2021, 14:58:36 by Caefix »
All lifetime is a loan from eternity.

*

Offline Caefix

  • *****
  • 517
  • Sorry, busy deleting test shots...
Re: os.rename causes crash when dest. path > 31 characters
« Reply #21 on: 16 / July / 2021, 15:41:36 »
Edit: ::) Deleted file A/TESTFN/T098AAA*.* & below, now I can enter the folder without crash...
Code: [Select]
T098AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Same behavior, different log on Sx270,
//   DRYOS R52 (DRYOS version 2.3, release #0052) //   Firmware Ver GM1.02B
but crash without Romlog after exception call.
All lifetime is a loan from eternity.

Re: os.rename causes crash when dest. path > 31 characters
« Reply #22 on: 17 / July / 2021, 09:10:26 »
Does the problem still happen if intermediate directories exist?

Are you referring to the step-by-step movement I described earlier? If yes: I haven't tested it, yet. I thought of it as a plan B.

Did you use a script, or the CHDK menu? (Miscellaneous stuff->Debug Parameter->Save ROM Crash log)
Did the camera shut down after you tried to save the romlog?

I opened the script scripts/test/romlog.lua because I thought that was what you had in mind. The camera did not shutdown automatically afterwards.

Re: os.rename causes crash when dest. path > 31 characters
« Reply #23 on: 17 / July / 2021, 09:23:28 »
I used the menu this time.


 

Related Topics