antangelo / xdvdfs

Original Xbox DVD Filesystem library and management tool
https://xiso.antangelo.com/
MIT License
73 stars 8 forks source link

Error: IOError: Entry does not exist #64

Closed rizaumami closed 11 months ago

rizaumami commented 11 months ago

xdvdfs throw Error: IOError: Entry does not exist error when repack an already packed '007: Agent Under Fire' xiso.

How to repro:

What's happens normally? xdvdfs will happily repack an already packed xiso.

EDIT:
Affected game:

antangelo commented 11 months ago

Please build from trunk, run the pack command with RUST_LOG=debug ..., and post the tail of the logs from the last Added file ... or DEBUG xdvdfs::read] [walk_path] Called line until the error message.

rizaumami commented 11 months ago

debug.log

antangelo commented 11 months ago

What is the output of xdvdfs info on the path /Assets/sound/dialog/alp1_2?

rizaumami commented 11 months ago

What is the output of xdvdfs info on the path /Assets/sound/dialog/alp1_2?

Error: Entry does not exist

I've mounted the xiso using xbfuse, and indeed /Assets/sound/dialog/alp1_2 is an empty directory.

antangelo commented 11 months ago

Is that the full output of the command? Based on the other logs you've given me I expect more data to be returned.

If it is, then please post the full debug log from before (and possibly also a new debug log from that info command).

rizaumami commented 11 months ago

I've sent the pack debug.log in previous post:

Added dir: "/" at sector 33
Added file: "/driving.dat" at sector 34
Added file: "/bond.xbe" at sector 35
Added file: "/Assets" at sector 1207
Added file: "/default.xbe" at sector 1208
Added file: "/Driving.xbe" at sector 1548
Added dir: "/Assets" at sector 1207
Added file: "/Assets/maps" at sector 2504
Added file: "/Assets/global" at sector 2505
Added file: "/Assets/sound" at sector 2506
Added dir: "/Assets/global" at sector 2505
Added file: "/Assets/global/twine.flo" at sector 2507
Added dir: "/Assets/maps" at sector 2504
Added file: "/Assets/maps/dm4_4p.xbc" at sector 2510
Added file: "/Assets/maps/dm10.xbc" at sector 9010
Added file: "/Assets/maps/alp2_3.xbc" at sector 15579
Added file: "/Assets/maps/alp2_1.xbc" at sector 23333
Added file: "/Assets/maps/alp1_2.xbc" at sector 31305
Added file: "/Assets/maps/alp1_1.xbc" at sector 40318
Added file: "/Assets/maps/alp2_2.xbc" at sector 49809
Added file: "/Assets/maps/carrier2.xbc" at sector 59780
Added file: "/Assets/maps/carrier1.xbc" at sector 70137
Added file: "/Assets/maps/dm1.xbc" at sector 80309
Added file: "/Assets/maps/dm2.xbc" at sector 87496
Added file: "/Assets/maps/dm11.xbc" at sector 94517
Added file: "/Assets/maps/dm11_4p.xbc" at sector 101181
Added file: "/Assets/maps/dm3.xbc" at sector 107557
Added file: "/Assets/maps/dm2_4p.xbc" at sector 114180
Added file: "/Assets/maps/dm4.xbc" at sector 120910
Added file: "/Assets/maps/m6_3.xbc" at sector 127532
Added file: "/Assets/maps/dm9_4p.xbc" at sector 136612
Added file: "/Assets/maps/dm7.xbc" at sector 143061
Added file: "/Assets/maps/dm5.xbc" at sector 150111
Added file: "/Assets/maps/dm6.xbc" at sector 156932
Added file: "/Assets/maps/dm8.xbc" at sector 164151
Added file: "/Assets/maps/dm9.xbc" at sector 170978
Added file: "/Assets/maps/frontend.xbc" at sector 177616
Added file: "/Assets/maps/emstel_1.xbc" at sector 183812
Added file: "/Assets/maps/dmescort.xbc" at sector 193764
Added file: "/Assets/maps/escort4p.xbc" at sector 201567
Added file: "/Assets/maps/m6_1.xbc" at sector 208655
Added file: "/Assets/maps/m6_2.xbc" at sector 218737
Added file: "/Assets/maps/rig_1.xbc" at sector 227939
Added file: "/Assets/maps/orc_2.xbc" at sector 237217
Added file: "/Assets/maps/orc_1.xbc" at sector 245307
Added file: "/Assets/maps/orc_3.xbc" at sector 255091
Added file: "/Assets/maps/orc_4.xbc" at sector 260936
Added file: "/Assets/maps/uwb_2a.xbc" at sector 270190
Added file: "/Assets/maps/rig_2.xbc" at sector 278063
Added file: "/Assets/maps/uwb_2aa.xbc" at sector 288271
Added file: "/Assets/maps/uwb_2b.xbc" at sector 296795
Added dir: "/Assets/sound" at sector 2506
Added file: "/Assets/sound/musicsdx" at sector 305708
Added file: "/Assets/sound/dialog" at sector 305709
Added file: "/Assets/sound/config" at sector 305710
Added file: "/Assets/sound/music" at sector 305711
Added file: "/Assets/sound/video" at sector 305712
Added dir: "/Assets/sound/config" at sector 305710
Added file: "/Assets/sound/config/dm6.sni" at sector 305713
Added file: "/Assets/sound/config/dm2.sni" at sector 305714
Added file: "/Assets/sound/config/dm1.sni" at sector 305715
Added file: "/Assets/sound/config/Alp2_2.sni" at sector 305716
Added file: "/Assets/sound/config/Alp1_2.sni" at sector 305719
Added file: "/Assets/sound/config/Alp1_1.sni" at sector 305721
Added file: "/Assets/sound/config/Alp2_1.sni" at sector 305723
Added file: "/Assets/sound/config/Carrier1.sni" at sector 305725
Added file: "/Assets/sound/config/Alp2_3.sni" at sector 305728
Added file: "/Assets/sound/config/Carrier2.sni" at sector 305730
Added file: "/Assets/sound/config/dm11.sni" at sector 305735
Added file: "/Assets/sound/config/dm10.sni" at sector 305736
Added file: "/Assets/sound/config/dm11_4p.sni" at sector 305737
Added file: "/Assets/sound/config/dm4.sni" at sector 305738
Added file: "/Assets/sound/config/dm2_4p.sni" at sector 305739
Added file: "/Assets/sound/config/dm3.sni" at sector 305740
Added file: "/Assets/sound/config/dm4_4p.sni" at sector 305741
Added file: "/Assets/sound/config/dm5.sni" at sector 305742
Added file: "/Assets/sound/config/M6_3.sni" at sector 305743
Added file: "/Assets/sound/config/EmStel_1.sni" at sector 305745
Added file: "/Assets/sound/config/dm9.sni" at sector 305749
Added file: "/Assets/sound/config/dm7.sni" at sector 305750
Added file: "/Assets/sound/config/dm8.sni" at sector 305751
Added file: "/Assets/sound/config/dm9_4p.sni" at sector 305752
Added file: "/Assets/sound/config/dmescort.sni" at sector 305753
Added file: "/Assets/sound/config/gMusic.scr" at sector 305754
Added file: "/Assets/sound/config/frontend.sni" at sector 305755
Added file: "/Assets/sound/config/escort4p.sni" at sector 305759
Added file: "/Assets/sound/config/global.sni" at sector 305760
Added file: "/Assets/sound/config/M6_1.sni" at sector 305765
Added file: "/Assets/sound/config/M6_2.sni" at sector 305767
Added file: "/Assets/sound/config/Rig_1.sni" at sector 305769
Added file: "/Assets/sound/config/orc_2.sni" at sector 305773
Added file: "/Assets/sound/config/orc_1.sni" at sector 305774
Added file: "/Assets/sound/config/orc_3.sni" at sector 305776
Added file: "/Assets/sound/config/orc_4.sni" at sector 305777
Added file: "/Assets/sound/config/UWB_2a.sni" at sector 305779
Added file: "/Assets/sound/config/Rig_2.sni" at sector 305783
Added file: "/Assets/sound/config/train.sni" at sector 305786
Added file: "/Assets/sound/config/UWB_2b.sni" at sector 305788
Added file: "/Assets/sound/config/_TEMPLATE.sni" at sector 305790
Added dir: "/Assets/sound/dialog" at sector 305709
Added file: "/Assets/sound/dialog/dm4_4p" at sector 305792
Added file: "/Assets/sound/dialog/dm10" at sector 305793
Added file: "/Assets/sound/dialog/alp2_3" at sector 305794
Added file: "/Assets/sound/dialog/alp2_1" at sector 305795
Added file: "/Assets/sound/dialog/alp1_2" at sector 305796
Added file: "/Assets/sound/dialog/alp1_1" at sector 305797
Added file: "/Assets/sound/dialog/alp2_2" at sector 305798
Added file: "/Assets/sound/dialog/carrier2" at sector 305799
Added file: "/Assets/sound/dialog/carrier1" at sector 305800
Added file: "/Assets/sound/dialog/dm1" at sector 305801
Added file: "/Assets/sound/dialog/dm2" at sector 305802
Added file: "/Assets/sound/dialog/dm11" at sector 305803
Added file: "/Assets/sound/dialog/dm11_4p" at sector 305804
Added file: "/Assets/sound/dialog/dm3" at sector 305805
Added file: "/Assets/sound/dialog/dm2_4p" at sector 305806
Added file: "/Assets/sound/dialog/dm4" at sector 305807
Added file: "/Assets/sound/dialog/m6_3" at sector 305808
Added file: "/Assets/sound/dialog/dm9_4p" at sector 305809
Added file: "/Assets/sound/dialog/dm7" at sector 305810
Added file: "/Assets/sound/dialog/dm5" at sector 305811
Added file: "/Assets/sound/dialog/dm6" at sector 305812
Added file: "/Assets/sound/dialog/dm8" at sector 305813
Added file: "/Assets/sound/dialog/dm9" at sector 305814
Added file: "/Assets/sound/dialog/frontend" at sector 305815
Added file: "/Assets/sound/dialog/emstel_1" at sector 305816
Added file: "/Assets/sound/dialog/dmescort" at sector 305817
Added file: "/Assets/sound/dialog/escort4p" at sector 305818
Added file: "/Assets/sound/dialog/m6_1" at sector 305819
Added file: "/Assets/sound/dialog/m6_2" at sector 305820
Added file: "/Assets/sound/dialog/rig_1" at sector 305821
Added file: "/Assets/sound/dialog/orc_2" at sector 305822
Added file: "/Assets/sound/dialog/orc_1" at sector 305823
Added file: "/Assets/sound/dialog/orc_3" at sector 305824
Added file: "/Assets/sound/dialog/orc_4" at sector 305825
Added file: "/Assets/sound/dialog/uwb_2a" at sector 305826
Added file: "/Assets/sound/dialog/rig_2" at sector 305827
Added file: "/Assets/sound/dialog/uwb_2aa" at sector 305828
Added file: "/Assets/sound/dialog/uwb_2b" at sector 305829
Added dir: "/Assets/sound/dialog/alp1_1" at sector 305797
Added file: "/Assets/sound/dialog/alp1_1/off_cin.xsf" at sector 305830
Added dir: "/Assets/sound/dialog/alp1_2" at sector 305796
Added file: "/Assets/sound/dialog/alp1_2/alp1_2" at sector 306495

Command below returns an empty log. DEBUG_LOG=debug ./xdvdfs info 007\ -\ Agent\ Under\ Fire\ \(USA\).iso "/Assets/sound/dialog/alp1_2/alp1_2" Only printed in terminal: Error: Entry does not exist

antangelo commented 11 months ago

The previous debug log is truncated, I now want to inspect the full log.

The info command is also not correct, I need the info output for the parent directory /Assets/sound/dialog/alp1_2.

rizaumami commented 11 months ago
DEBUG_LOG=debug ./xdvdfs pack 007\ -\ Agent\ Under\ Fire\ \(USA\).iso > debug_pack.log

debug_pack.log

DEBUG_LOG=debug ./xdvdfs info 007\ -\ Agent\ Under\ Fire\ \(USA\).iso /Assets/sound/dialog/alp1_2 > debug_info.log

debug_info.log

antangelo commented 11 months ago

Reproducing test case is an image with an empty directory in it