FS#29623 - [esdl] driver compiled with incorrect version of erl_driver.h

Attached to Project: Community Packages
Opened by Richard Jones (optigon) - Thursday, 26 April 2012, 12:32 GMT
Last edited by Alexander F. Rødseth (xyproto) - Friday, 04 May 2012, 09:32 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

Cannot launch Wings3d.
Likely that esdl was compiled with older version of Erlang.


[giniu@raven3 ~]$ LANG=C erl
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4]
[async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.9.1 (abort with ^G)
1> sdl:init(32).
Driver failed: Driver compiled with incorrect version of erl_driver.h
sh: line 0: exec: sdl_driver: not found
** exception error: bad argument
in function port_control/3
called as port_control(esdl_port,21,<<32,0,0,0>>)
in call from sdl:init/1 (sdl.erl, line 90)


Thanks for maintaining this package.

Regards,
Richard
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Friday, 04 May 2012, 09:32 GMT
Reason for closing:  Fixed
Comment by David Millard (dmillard) - Sunday, 29 April 2012, 15:38 GMT
Confirmed, exact same error here.

The problem is not fixed by rebuilding either esdl or wings3d from source.

Attached is the wings3d_crash.dump file. Wings3d reads the same as the reported bug to stdout(err) upon (failed) startup.

I'm beginning to think that this is an upstream bug caused because of a change in Erlang's driver requirements. Reporting upstream as well.
Comment by Alexander F. Rødseth (xyproto) - Monday, 30 April 2012, 14:57 GMT
Thanks for reporting, I'm on it.
Comment by David Millard (dmillard) - Wednesday, 02 May 2012, 14:08 GMT
  • Field changed: Percent Complete (100% → 0%)
Same error when loading wings3d after upgrade.
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 02 May 2012, 14:11 GMT
I tried building Wings3D with both esdl 1.0.1 and esdl 1.2, with erlang R15B01-1, but it didn't work in either case.
With esdl 1.2, wings doesn't even compile.
With esdl 1.0.1, I get this message:

Driver failed: Driver compiled with incorrect version of erl_driver.h

=ERROR REPORT==== 2-May-2012::16:11:36 ===
Error in process <0.29.0> with exit value: {badarg,[{erlang,port_control,[esdl_port,21,<<4 bytes>>],[]},{sdl,init,1,[{file,"sdl.erl"},{line,90}]},{wings_init,init,0,[{file,"wings_init.erl"},{line,28}]},{wings,init,1,[{file,"wings.erl"},{line,104}]}]}

sh: line 0: exec: sdl_driver: not found


Fatal internal error - log written to /home/xyproto/wings_crash.dump

Attaching wings_crash.dump as well.
Comment by Alexander F. Rødseth (xyproto) - Wednesday, 02 May 2012, 14:23 GMT
This bug has been reported upstream for esdl: https://sourceforge.net/tracker/?func=detail&aid=3522893&group_id=38833&atid=423387

Reported for wings3d as well, since they might want to upgrade to esdl 1.2: https://sourceforge.net/tracker/?func=detail&aid=3523033&group_id=33028&atid=406952
Comment by Richard Jones (optigon) - Wednesday, 02 May 2012, 22:54 GMT
It happens that I received this message from the Wings3d lead dev, Dan, about an hour ago.

<<Guys I had forgotten to push the esdl master branch to github.
It should work now with R15B as well.

Sigh, sorry about that.>>

Dan uses github for the current esdl repository, which you can find here:
https://github.com/dgud/esdl
Comment by Richard Jones (optigon) - Friday, 04 May 2012, 01:08 GMT
The last build (1.4.1-8) is working now :)

Thanks Alexander!

Regards,

Richard
Comment by Alexander F. Rødseth (xyproto) - Friday, 04 May 2012, 09:32 GMT
Great. :) Hopefully there will be new releases of esdl and wings3d too, so we can switch back to using official releases.

Loading...