[b37] Multiple teaa addons cause ToME to hang

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

[b37] Multiple teaa addons cause ToME to hang

#1 Post by yufra »

Tiger_eye and I have done fairly extensive testing on the following two addons:
If you have both of these "teaa" files loading then ToME will hang in an infinite PHYSFS recursion. Here is an excerpt from my OSX stack trace:

Code: Select all

  User stack:
    17 PHYSFS_exists + 17 (in T-Engine) [0x60abf]
      17 PHYSFS_getRealDir + 381 (in T-Engine) [0x6036e]
        17 BIND_PHYSFS_exists + 80 (in T-Engine) [0x72cfd]
          17 PHYSFS_exists + 17 (in T-Engine) [0x60abf]
            17 PHYSFS_getRealDir + 381 (in T-Engine) [0x6036e]
              17 BIND_PHYSFS_exists + 80 (in T-Engine) [0x72cfd]
                17 PHYSFS_exists + 17 (in T-Engine) [0x60abf]
The last bit of stdout:

Code: Select all

Checking addon	tome-bugfixes-b37-v6.teaa	:: (as dir)	false	:: (as teaa)	21	
Checking addon	tome-example.teaa	:: (as dir)	false	:: (as teaa)	13	
Binding addon	Bug-fixes for ToME beta 37	/addons/tome-bugfixes-b37-v6.teaa	tome-bugfixes_b37-3.9.37
 * with data
 * with superload
 * with overload
 * with hooks
Binding addon	Example Addons for ToME	/addons/tome-example.teaa	tome-example-3.9.37
 * with data
 * with superload
 * with overload
[hangs here]
If we comment out the "overload = true" from the example addon's "init.lua" then ToME loads ok (stdout below).

Code: Select all

Checking addon	tome-bugfixes-b37-v6.teaa	:: (as dir)	false	:: (as teaa)	21	
Checking addon	tome-example.teaa	:: (as dir)	false	:: (as teaa)	13	
Binding addon	Bug-fixes for ToME beta 37	/addons/tome-bugfixes-b37-v6.teaa	tome-bugfixes_b37-3.9.37
 * with data
 * with superload
 * with overload
 * with hooks
Binding addon	Example Addons for ToME	/addons/tome-example.teaa	tome-example-3.9.37
 * with data
 * with superload
 * with hooks
[PROFILE] mounted 	offline	on /current-profile
[proceeds normally]
Now, if we do not use "tome-example.teaa" and instead use an uncompressed "tome-example" directory ToME loads fine even with "overload = true" (stdout below).

Code: Select all

Checking addon	tome-bugfixes-b37-v6.teaa	:: (as dir)	false	:: (as teaa)	21	
Checking addon	tome-example	:: (as dir)	true	:: (as teaa)	nil	
Binding addon	Bug-fixes for ToME beta 37	/addons/tome-bugfixes-b37-v6.teaa	tome-bugfixes_b37-3.9.37
 * with data
 * with superload
 * with overload
 * with hooks
Binding addon	Example Addons for ToME	nil	tome-example-3.9.37
 * with data
 * with superload
 * with overload
 * with hooks
[PROFILE] mounted 	offline	on /current-profile
[proceeds normally]
The best that we can figure is some strange PHYSFS mounting, and that is firmly in DG's territory. Or to be delayed for a much later time. :D
<DarkGod> lets say it's intended

Post Reply