Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

PhysFS 2.0.2 specific troubles. #3700

Closed
wzdev-ci opened this issue Aug 29, 2012 · 22 comments
Closed

PhysFS 2.0.2 specific troubles. #3700

wzdev-ci opened this issue Aug 29, 2012 · 22 comments

Comments

@wzdev-ci
Copy link
Contributor

keyword_broken_upstream_upstream_patch_exists_i_am_using_random_keywords resolution_external type_bug | by NoQ


Downgrading my PhysFS package from v2.0.2 to v2.0.1 has just fixed some mod-loading troubles for me. Some files from inside the mod archive failed to load: even though PHYSFS_enumerateFiles lists them, PHYSFS_getRealDir returns null on them. This happens to some completely random rare files, I've been encountering it on my AI mods mostly and some js files were randomly missing; even things like adding or removing an empty challenges directory to the archive made them visible again and made other files missing.

The troubles were previously described there: http://forums.wz2100.net/viewtopic.php?f=5&t=9886

Archlinux x86 stable.


Issue migrated from trac:3700 at 2022-04-16 10:36:37 -0700

@wzdev-ci
Copy link
Contributor Author

NoQ edited the issue description

@wzdev-ci
Copy link
Contributor Author

NoQ commented


By the way, here's a piece of code i use to list all physfs contents together with the files' real dirs.

void printRecursive(char *path) {
	char **rc = PHYSFS_enumerateFiles(path);
	char **j;
	char str[512];
	for (j = rc; *j != NULL; j++) {
		sprintf(str,"%s%s",path,*j);
		if (PHYSFS_isDirectory(str)) {
			sprintf(str,"%s/",str);
			printRecursive(str);
		} else {
			debug(LOG_WZ, "        %s from %s.\n", str, PHYSFS_getRealDir(str));
		}
	}
	PHYSFS_freeList(rc);
}

@wzdev-ci
Copy link
Contributor Author

dak180 edited the issue description

@wzdev-ci
Copy link
Contributor Author

vexed commented


Another library that needs to be whacked via some autohell love.

This is fixed (I guess?) in:
http://hg.icculus.org/icculus/physfs/rev/882cdbd7d0a3

Care to try it ? I know you are itching to try hg (Mercurial) :)

@wzdev-ci
Copy link
Contributor Author

Cyp commented


Forgot to post this earlier:

Reproducible on Gentoo, the MC AI works with 2.0.1 but not 2.0.2-[1].

So it's either a bug in PhysFS, or some weird incomprensible misuse of PhysFS, since the PhysFS version oughtn't really be affecting whether a file exists.

(Based on above comment, I'm guessing it could be the former.)

@wzdev-ci
Copy link
Contributor Author

Cyp changed keywords from `` to broken_upstream upstream_patch_exists i_am_using_random_keywords

@wzdev-ci
Copy link
Contributor Author

Cyp commented


Don't know what http://hg.icculus.org/icculus/physfs/rev/882cdbd7d0a3 does, but the MC AI seemed to work with 2.0.2-[1], once I manually applies that patch (in a text editor).

I wasn't itching to try Hg, so I used nano instead.

@wzdev-ci
Copy link
Contributor Author

Cyp commented


Warn on apparently buggy PhysFS version 2.0.2.

Refs #3700.

  • Changeset: [/changeset/408be743f017cce1519cd955767abf0e697ab7f7 408be743f017cce1519cd955767abf0e697ab7f7]
  • URL: [408]be743f017cce1519cd955767abf0e697ab7f7

2 similar comments
@wzdev-ci
Copy link
Contributor Author

Cyp commented


Warn on apparently buggy PhysFS version 2.0.2.

Refs #3700.

  • Changeset: [/changeset/408be743f017cce1519cd955767abf0e697ab7f7 408be743f017cce1519cd955767abf0e697ab7f7]
  • URL: [408]be743f017cce1519cd955767abf0e697ab7f7

@wzdev-ci
Copy link
Contributor Author

Cyp commented


Warn on apparently buggy PhysFS version 2.0.2.

Refs #3700.

  • Changeset: [/changeset/408be743f017cce1519cd955767abf0e697ab7f7 408be743f017cce1519cd955767abf0e697ab7f7]
  • URL: [408]be743f017cce1519cd955767abf0e697ab7f7

@wzdev-ci
Copy link
Contributor Author

dak180 commented


Patch PhysFS in the mac build until there is a new release.

Refs #3700.

2 similar comments
@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Sep 2, 2012

dak180 commented


Patch PhysFS in the mac build until there is a new release.

Refs #3700.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Sep 2, 2012

dak180 commented


Patch PhysFS in the mac build until there is a new release.

Refs #3700.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Sep 5, 2012

Cyp commented


Think #3555, #3585, #3587, #3595, #3673, #3680, #3687 are duplicates of this bug.

@wzdev-ci
Copy link
Contributor Author

NoQ commented


Reported to affect windows: http://forums.wz2100.net/viewtopic.php?f=49&t=9493&start=255#p111983

@wzdev-ci
Copy link
Contributor Author

vexed commented


PhysicsFS 2.0.3 is now available.

This is a stable, bug-fix release. As we are still source and binary compatible, all users of any previous version--be it 1.0 or 2.0--are encouraged to upgrade. New features are being added to the 2.1 branch, which is not part of this release.

You can grab it here...

 http://icculus.org/physfs/downloads/physfs-2.0.3.tar.bz2

...or from Mercurial with this command...

 hg clone -u release-2.0.3 http://hg.icculus.org/icculus/physfs

...or just stare at the webview here...

 http://hg.icculus.org/icculus/physfs/file/release-2.0.3

Notable changes in this release:

  • Source code now packaged in a .tar.bz2 instead of .tar.gz.
  • Fixed "make docs" for out-of-tree builds.
  • No longer builds annoying wxWidgets test program by default.
  • Fixed logic bug in UTF-8 string processing.
  • Fixed infinite loop on some .zip files with symlinks.
  • Enabled CD-ROM support on Haiku OS.
  • Fixed Win64 support.
  • Fixed OpenBSD support.
  • Fixed building of readline support in test program.
  • Fixed .zip archiver losing files in some cases.
  • Corrected copyright dates in license.
  • Other minor tweaks and fixes.

Thanks to those that sent in patches! If we're lucky, this will be the last 2.0 branch release, and we'll start pushing 2.1 development branch releases soon.

@wzdev-ci
Copy link
Contributor Author

dak180 commented


Update PhysFS to 2.0.3.

Refs #3700.

  • Changeset: [/changeset/647f5ed23682f650fad1f23ced693a24258ac7dc 647f5ed23682f650fad1f23ced693a24258ac7dc]
  • URL: [647]f5ed23682f650fad1f23ced693a24258ac7dc

2 similar comments
@wzdev-ci
Copy link
Contributor Author

dak180 commented


Update PhysFS to 2.0.3.

Refs #3700.

  • Changeset: [/changeset/647f5ed23682f650fad1f23ced693a24258ac7dc 647f5ed23682f650fad1f23ced693a24258ac7dc]
  • URL: [647]f5ed23682f650fad1f23ced693a24258ac7dc

@wzdev-ci
Copy link
Contributor Author

dak180 commented


Update PhysFS to 2.0.3.

Refs #3700.

  • Changeset: [/changeset/647f5ed23682f650fad1f23ced693a24258ac7dc 647f5ed23682f650fad1f23ced693a24258ac7dc]
  • URL: [647]f5ed23682f650fad1f23ced693a24258ac7dc

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Nov 2, 2012

vexed changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Nov 2, 2012

vexed changed resolution from `` to external

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Nov 2, 2012

vexed commented


OK, everyone upgrade to 2.0.3.

Closing ticket.

@wzdev-ci wzdev-ci closed this as completed Nov 2, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant