Board index FlightGear Development Scenery

Adding a new model to the Scenery Model Database

Questions and discussion about enhancing and populating the FlightGear world.

Adding a new model to the Scenery Model Database

Postby ThomasS » Tue Jul 10, 2018 7:22 am

Hello,

when trying to submit a new model to the scenery database I receive an error message saying "an error occured: error" a few seconds after pressing submit. Is there a chance to find more details about the reason?

Best Regards

Thomas
ThomasS
 
Posts: 94
Joined: Sun Sep 11, 2016 2:21 pm
Location: West of EDDK
Version: 2018.2.1
OS: Linux,MacOS,Windows

Re: Adding a new model to the Scenery Model Database

Postby Torsten » Tue Jul 10, 2018 8:17 am

I can't find anything obvious in the logs. Could you please try again and provide the exact time (UTC) when you hit the submit button, please?
That would help me a lot where to look in the huge log files

Thanks, Torsten
flightgear.org - where development happens.
User avatar
Torsten
 
Posts: 648
Joined: Fri Feb 01, 2008 10:22 pm
Location: near Hamburg, Germany
Callsign: offline
Version: next
OS: Linux

Re: Adding a new model to the Scenery Model Database

Postby ThomasS » Tue Jul 10, 2018 10:46 am

Submitted again just now at 9:43:10 UTC (the seconds value is estimated). Same message.
ThomasS
 
Posts: 94
Joined: Sun Sep 11, 2016 2:21 pm
Location: West of EDDK
Version: 2018.2.1
OS: Linux,MacOS,Windows

Re: Adding a new model to the Scenery Model Database

Postby Torsten » Tue Jul 10, 2018 2:13 pm

OK, thanks. That helped.
I did find a log entry with a response code of 413 (Payload too large) which indicates that either the files you are trying to submit are too large (probably all together in total) or I have to find the magic number to set the maximum allowable request size.

What are the file sizes you are trying to submit?
flightgear.org - where development happens.
User avatar
Torsten
 
Posts: 648
Joined: Fri Feb 01, 2008 10:22 pm
Location: near Hamburg, Germany
Callsign: offline
Version: next
OS: Linux

Re: Adding a new model to the Scenery Model Database

Postby ThomasS » Tue Jul 10, 2018 3:09 pm

I have these files:

Code: Select all
-rw-r--r--@ 1 thomass  staff    34336  8 Jul 16:57 EDDK-Terminal1-Thumbnail.jpg
-rw-r--r--@ 1 thomass  staff     6038 22 Feb  2017 EDDK-Terminal1-Windows.png
-rw-r--r--@ 1 thomass  staff   387703  8 Jul 16:27 EDDK-Terminal1.ac
-rw-r--r--@ 1 thomass  staff  1130334 22 Feb  2017 EDDK-Terminal1.png
-rw-r--r--  1 thomass  staff      456  8 Jul 16:30 EDDK-Terminal1.xml


If it really is a size problem, most likely the texture atlas is too large. The tutorial page mentions a total size of 0.5 MB as recommendation (or limit?) for a single model. So downsizing the texture atlas only might not be sufficient. Anyway, I'll try to downsize the texture atlas.

Well, in fact it is a large building.
ThomasS
 
Posts: 94
Joined: Sun Sep 11, 2016 2:21 pm
Location: West of EDDK
Version: 2018.2.1
OS: Linux,MacOS,Windows

Re: Adding a new model to the Scenery Model Database

Postby ThomasS » Tue Jul 10, 2018 3:35 pm

Downsizing the texture atlas changed the situation. I have the files

Code: Select all
-rw-r--r--@ 1 thomass  staff    34336  8 Jul 16:57 EDDK-Terminal1-Thumbnail.jpg
-rw-r--r--@ 1 thomass  staff     6038 22 Feb  2017 EDDK-Terminal1-Windows.png
-rw-r--r--@ 1 thomass  staff   387703  8 Jul 16:27 EDDK-Terminal1.ac
-rw-r--r--@ 1 thomass  staff   126670 10 Jul 16:16 EDDK-Terminal1.png
-rw-r--r--  1 thomass  staff      456  8 Jul 16:30 EDDK-Terminal1.xml


now. Pressing "submit" (at 14:28 UTC) started working for about 5 seconds and returned "An error occured: parsererror". Loading the model in FG by put_model() shows no such error in the FG logfile.
ThomasS
 
Posts: 94
Joined: Sun Sep 11, 2016 2:21 pm
Location: West of EDDK
Version: 2018.2.1
OS: Linux,MacOS,Windows

Re: Adding a new model to the Scenery Model Database

Postby Torsten » Tue Jul 10, 2018 5:01 pm

There is no error message on the server side.
Wild guess: something is wrong with your xml. The database xml parser complains about many things that flightgear silently accepts.
Look for the missing (or wrong) xml declaration at line 1, case sensitive references (includes to files etc. etc.)

Disclaimer:
Yes - it would be nice if the UI was able to point out whats wrong...
flightgear.org - where development happens.
User avatar
Torsten
 
Posts: 648
Joined: Fri Feb 01, 2008 10:22 pm
Location: near Hamburg, Germany
Callsign: offline
Version: next
OS: Linux

Re: Adding a new model to the Scenery Model Database

Postby ThomasS » Thu Jul 12, 2018 5:16 am

I finally succeeded in uploading. The reason was the model description field which contained too many characters.
ThomasS
 
Posts: 94
Joined: Sun Sep 11, 2016 2:21 pm
Location: West of EDDK
Version: 2018.2.1
OS: Linux,MacOS,Windows

Re: Adding a new model to the Scenery Model Database

Postby VicMar » Thu Jul 12, 2018 8:04 am

Confirmed - I validated your model this morning.

Vic
Time flies like an arrow
Fruit flies like a banana
User avatar
VicMar
 
Posts: 2044
Joined: Sun Apr 06, 2008 6:53 pm
Location: Lancing. UK (EGKA)
Callsign: VicMar
Version: 2018.3.1
OS: OS X 10.12.6

Re: Adding a new model to the Scenery Model Database

Postby ThomasS » Thu Jul 12, 2018 9:00 am

Thank you
ThomasS
 
Posts: 94
Joined: Sun Sep 11, 2016 2:21 pm
Location: West of EDDK
Version: 2018.2.1
OS: Linux,MacOS,Windows

Re: Adding a new model to the Scenery Model Database

Postby cvgComair » Tue Aug 07, 2018 1:30 am

I am also having a similar problem, however I do not have any XML files with my model. I most recently submitted the model on August 7 at 00:26, is there anything going wrong on the server side?

Otherwise, could there be something wrong with my .ac file? It loads fine with the UFO, but I am wondering if there could be some type of formatting error.
cvgComair
 
Posts: 7
Joined: Fri Jun 22, 2018 11:26 pm
Location: Cincinnati (OH)/Portland (ME)
Callsign: DAL1718
Version: 2019.1.1
OS: macOS 10.15

Re: Adding a new model to the Scenery Model Database

Postby VicMar » Tue Aug 07, 2018 7:58 am

@ cvgComair,

1. What is the name of your .ac file?

2. Did you receive the acceptance/rejection email?

Vic
Time flies like an arrow
Fruit flies like a banana
User avatar
VicMar
 
Posts: 2044
Joined: Sun Apr 06, 2008 6:53 pm
Location: Lancing. UK (EGKA)
Callsign: VicMar
Version: 2018.3.1
OS: OS X 10.12.6

Re: Adding a new model to the Scenery Model Database

Postby cvgComair » Tue Aug 07, 2018 1:53 pm

1. The model's name is KCVGDelta_Hangar.

2. No, it loads for a few seconds and then gives me "an error occurred: parsererror"
cvgComair
 
Posts: 7
Joined: Fri Jun 22, 2018 11:26 pm
Location: Cincinnati (OH)/Portland (ME)
Callsign: DAL1718
Version: 2019.1.1
OS: macOS 10.15

Re: Adding a new model to the Scenery Model Database

Postby VicMar » Tue Aug 07, 2018 2:03 pm

Ah ha,
"an error occurred: parsererror"
Is being shared by other modellers too (including me).

I think it has something to do with the changes Torsten is doing with the data base. I think we'll just have to be patient and wait until the changes are complete, then I'll ask Torsten to apply some thought to this problem.

Just keep your model safe until we can sort this problem out.

Best regards,

Vic
Time flies like an arrow
Fruit flies like a banana
User avatar
VicMar
 
Posts: 2044
Joined: Sun Apr 06, 2008 6:53 pm
Location: Lancing. UK (EGKA)
Callsign: VicMar
Version: 2018.3.1
OS: OS X 10.12.6

Re: Adding a new model to the Scenery Model Database

Postby cvgComair » Wed Aug 08, 2018 4:00 am

Ah, that makes sense. I will keep the models safe 8) !

Thanks for the help!
cvgComair
 
Posts: 7
Joined: Fri Jun 22, 2018 11:26 pm
Location: Cincinnati (OH)/Portland (ME)
Callsign: DAL1718
Version: 2019.1.1
OS: macOS 10.15


Return to Scenery

Who is online

Users browsing this forum: No registered users and 4 guests