FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

broken error strings

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
mwarning



Joined: 01 Apr 2007
Posts: 56

PostPosted: Wed Apr 15, 2009 7:52 am    Post subject: broken error strings Reply with quote

I get broken error messages on my system:

Quote:
derelict.util.exception.SharedLibLoadException: Failed to load one or more shared libraries.
libSDL_image.so: ot open shared object filelibSDL_image-1.2.so.0uch fil�x��
libSDL_image-1.2.so: ����mage-1.2.so: cannot open shared object file: No such file or directory
libSDL_image-1.2.so.0: libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory



The problem is fixed when I change in ./util/loader.d:119

Code:
reasons ~= GetErrorStr();

to
Code:
reasons ~= GetErrorStr().dup;



Maybe there is smth. broken in my code.
If someone else have this problem, this should go into a ticket.
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Wed Apr 15, 2009 7:17 pm    Post subject: Reply with quote

You're not the first to see this. But your little .dup fix shows exactly what the problem is and why it happens on Linux, but not Windows. I've added what should be a fix to the trunk.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
mwarning



Joined: 01 Apr 2007
Posts: 56

PostPosted: Fri Apr 17, 2009 3:30 am    Post subject: Reply with quote

Thanks for fixing.

btw.: smth. sneaked into the code:
Quote:
version(linux)e
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Fri Apr 17, 2009 4:47 am    Post subject: Reply with quote

It figures Rolling Eyes Fixed in the trunk. Thanks!
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
mwarning



Joined: 01 Apr 2007
Posts: 56

PostPosted: Sat Apr 18, 2009 11:38 am    Post subject: Reply with quote

there is also an 'e' in trunk. Wink
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Sat Apr 18, 2009 7:33 pm    Post subject: Reply with quote

eh?
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
mwarning



Joined: 01 Apr 2007
Posts: 56

PostPosted: Sun Apr 19, 2009 7:19 am    Post subject: Reply with quote

http://dsource.org/projects/derelict/changeset/367

You only removed the 'e' from branches/,
but it's also present in trunk/ due to copy&paste.
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Mon Apr 20, 2009 4:16 am    Post subject: Reply with quote

I'm not seeing it in the trunk. A 'Find in Files' in my editor, which is how I originally found the first instance you reported, is coming up empty. When you find errors like this, it's helpful to know the file name and line number Smile
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
mwarning



Joined: 01 Apr 2007
Posts: 56

PostPosted: Mon Apr 20, 2009 5:00 am    Post subject: Reply with quote

trac is playing games with me.
The latest changeset for root/trunk/DerelictUtil/derelict/util/loader.d tells me that there is an e added in line 40.
But the actual file doesn't have it, weird, nvm.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group