View previous topic :: View next topic |
Author |
Message |
mwarning
Joined: 01 Apr 2007 Posts: 56
|
Posted: Wed Apr 15, 2009 7:52 am Post subject: broken error strings |
|
|
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 |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Wed Apr 15, 2009 7:17 pm Post subject: |
|
|
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 |
|
|
mwarning
Joined: 01 Apr 2007 Posts: 56
|
Posted: Fri Apr 17, 2009 3:30 am Post subject: |
|
|
Thanks for fixing.
btw.: smth. sneaked into the code:
|
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
|
Back to top |
|
|
mwarning
Joined: 01 Apr 2007 Posts: 56
|
Posted: Sat Apr 18, 2009 11:38 am Post subject: |
|
|
there is also an 'e' in trunk. |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
|
Back to top |
|
|
mwarning
Joined: 01 Apr 2007 Posts: 56
|
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Mon Apr 20, 2009 4:16 am Post subject: |
|
|
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 _________________ The One With D | The One With Aldacron | D Bits |
|
Back to top |
|
|
mwarning
Joined: 01 Apr 2007 Posts: 56
|
Posted: Mon Apr 20, 2009 5:00 am Post subject: |
|
|
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 |
|
|
|