• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Bug Reports v
« Previous 1 … 12 13 14 15 16 … 35 Next »
[fixed] When Import any ps/eps file,Output error log.

 
  • 0 Vote(s) - 0 Average
[fixed] When Import any ps/eps file,Output error log.

micheus
Offline

Forum's Admin and Support | Bug fixer
Posts: 3,682
Threads: 185
Joined: Jun 2012
#4
12-07-2016, 04:50 PM (This post was last modified: 12-09-2016, 11:49 AM by micheus.)
(12-06-2016, 09:16 AM)tkbd Wrote: I tried test by several Illustrator 8 EPS and Postscript files.
Apparently it seems to have failed to acquire the bounding box.
And the problem occurred even with very simple data.

This is simple EPS Test data,You can this copy and paste the data and to save named with "test.eps".
(This data simply draw a triangle.)
Code:
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 240 90
newpath 170 50 moveto 140 60 lineto 140 30 lineto 170 50 closepath stroke showpage
%%EOF
Hi tkbd, I was taking a look on this to see if I'm able to do something about (still, not sure I can).

Checking the wpc_ps.erl code and some specifications I noticed two things related to your sample:
1) The %%BoundingBox tag is used for nothing by Wings3D. It calls internal bbox function after process the .ps file in order to get that information.

2) The %%Pages is absent in the sample file;
Specification:
"The file should be a single page image (in DSC terms, the %%Pages comment must have a value of 0 or 1)."
Wings3D code note for after_end_setup_ps/1:
% skip until after %%Page: 1 1 line, as we currently use nothing before that,
% then convert rest of binary to list of characters

as it's never found, that results in a null list ([]) which is the initial reason for the crash.

So, it seems like the exporter ins't creating a proper .ps file.

Anyway, maybe we need a better feedback to the user, instead of a single crash.
[Image: tw.png] @MicheusVieira [Image: yt.png] @MicheusVieira [Image: da.png] Micheuss [Image: ig.png] micheus4wings3d
* Wings3D Team stands for: Björn and Dan
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
[fixed] When Import any ps/eps file,Output error log. - by tkbd - 12-06-2016, 09:16 AM
RE: When Import any ps/eps file,Output error log. - by oort - 12-06-2016, 08:04 PM
RE: When Import any ps/eps file,Output error log. - by tkbd - 12-07-2016, 12:33 PM
RE: When Import any ps/eps file,Output error log. - by micheus - 12-07-2016, 04:50 PM
RE: When Import any ps/eps file,Output error log. - by tkbd - 12-08-2016, 01:25 PM
RE: When Import any ps/eps file,Output error log. - by micheus - 12-08-2016, 01:45 PM
RE: When Import any ps/eps file,Output error log. - by tkbd - 12-09-2016, 09:09 AM
RE: When Import any ps/eps file,Output error log. - by micheus - 12-09-2016, 11:52 AM
RE: When Import any ps/eps file,Output error log. - by micheus - 12-13-2016, 07:00 AM
RE: When Import any ps/eps file,Output error log. - by tkbd - 12-13-2016, 12:38 PM
RE: When Import any ps/eps file,Output error log. - by micheus - 12-13-2016, 12:46 PM
RE: When Import any ps/eps file,Output error log. - by tkbd - 12-13-2016, 01:28 PM
RE: When Import any ps/eps file,Output error log. - by micheus - 02-23-2017, 08:50 PM
RE: When Import any ps/eps file,Output error log. - by tkbd - 02-24-2017, 02:32 PM
RE: When Import any ps/eps file,Output error log. - by micheus - 02-24-2017, 03:52 PM
RE: When Import any ps/eps file,Output error log. - by tkbd - 02-25-2017, 01:28 PM
RE: When Import any ps/eps file,Output error log. - by micheus - 04-04-2017, 06:35 PM
RE: When Import any ps/eps file,Output error log. - by tkbd - 04-05-2017, 01:44 PM
RE: When Import any ps/eps file,Output error log. - by micheus - 04-07-2017, 05:28 PM
RE: When Import any ps/eps file,Output error log. - by tkbd - 04-10-2017, 11:15 AM
RE: When Import any ps/eps file,Output error log. - by micheus - 05-24-2017, 10:17 PM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode