BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Plugin does not load

5 posters

Go down

Plugin does not load Empty Plugin does not load

Post by gcs7e7 Tue Jul 30, 2019 3:37 pm

Hi there!

We have some problems with train plugins (e.g. OS_Ats1). This is a regular problem, but completely random. In this case the extra functions of the vehicle are unusable (turn signal, headlamp, etc.).
If I restart the computer sometimes it disappears, but most of the time it can't be resolved until the next day.
This is a problem that goes back many years, not BVE version dependent. When the error occurs, the indicator lights appear in the lower right corner of the screen (EB, const speed, ...)

Log: https://pastebin.com/NnJaDGNn

Plugin does not load Base_p10

Thanks in advance for your reply!

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 23
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Wed Jul 31, 2019 11:47 am

The long and the short of this one is that it's nothing we directly have control over.

A Win32 C++ plugin is essentially a closed 'black box'- All we do is ask Windows to load the thing, and anything after that is not under our control.
My best guess would be that it's probably due to the way the plugin was compiled many years ago (Specifically, I believe the G++ compiler probably has an issue with the plugin being loaded in high address spaces), but I can't really do much even with this.

I've also never been able to personally reproduce this, which doesn't help either.


If the plugin in use is an unmodified copy of OS_ATS, then BVEC_ATS is a direct drop-in replacement which does not have this issue, and additionally works on Linux etc:
http://www.bvecornwall.co.uk/wordpress/bvec_ats-design-details/

leezer3

Posts : 1867
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Wed Jul 31, 2019 12:02 pm

Made one (experimental) change to today's build, so that it'll pause for 100ms and retry once with a failed Win32 plugin load.

https://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2019-07-31.zip

Whilst I strongly suspect this will have little to no effect, we can but hope Razz

leezer3

Posts : 1867
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Wed Jul 31, 2019 12:44 pm

I've tried that plugin what you linked before, and I also experienced the error.

I also tried this build, but I've the same problem.

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 23
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Thu Aug 01, 2019 9:23 pm

Unfortunately, I can't do too much more then.

The linked plugin *should* work though- Did you remember to change the ATS.cfg file?

If not, link me to the train, and I can take a look.
(I can only see the original Combino V2 in my archive, which appears to have no ATS plugin. There seems also to be a newer Combino on a Hungarian blog, but no download link from a brief prod)

leezer3

Posts : 1867
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Fri Aug 02, 2019 11:28 am

Yes, I rewrote the ATS.cfg.

All of my trams do this error, the Combino is just an example.
You can find some here:
https://bveworks.wordpress.com/jarmuvek/
These do not use BVEC_ATS, but feel free to change it.

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 23
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Sat Aug 03, 2019 12:59 pm

I think this may work a little better:
http://vps.bvecornwall.co.uk/stuff/beta/BVEC_ATS_HUTest.zip

It didn't like the number of custom indicators you were using. There's also a lot of other incomplete work in there, but I don't think any of that should affect your trams. Please note that this version requires v1.5.3 or later of openBVE.
(I can build a copy which will work on any version if you need)

Other notes:
I'd strongly consider reducing your texture sizes. A lot of your textures don't conform to the power of two rule either, which means some are being upsized to absolutely silly proportions.

leezer3

Posts : 1867
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Sun Aug 04, 2019 11:06 am

Apparently I wasn't careful about the texture sizes, and I'll look for the customindicators also.

I've tried what you attached in the Combino, and I received an error message:

Plugin does not load Kzopki10
"Az index a tömb határain kívülre mutatott." = "The index pointed outside the array."

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 23
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Sun Aug 04, 2019 11:35 pm

Not sure off the top of my head, what's happened there sorry Sad

Can I see the configuration file it generated?
That should allow me to reproduce at this end.

leezer3

Posts : 1867
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Sun Aug 04, 2019 11:43 pm

Of course:
BVEC_ATS.cfg:

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 23
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Mon Aug 05, 2019 1:37 pm

The following line is definitely broken:
Code:
vigilanceinterval=[1000]

Assuming you want the same interval for all power notches, you should be using this:
Code:
vigilanceinterval=1000

If you want a different interval on a per-notch basis, separate with commas.
This doesn't crash though, and I couldn't actually reproduce Sad

I've found another issue, which is fixed in this & hopefully we might get somewhere:
http://vps.bvecornwall.co.uk/stuff/beta/BVEC_ATS_HUTest1.zip

leezer3

Posts : 1867
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Mon Aug 05, 2019 2:19 pm

I've corrected vigilanceinterval.
With this version the same:
Plugin does not load Kzopki11
When I add these lines to BVEC_ATS.cfg, the game loads, but the same: The plugin doesn't load:
Code:
[Options]
DebugMode = True
Plugin does not load Base_p11
In the past, this error has disappeared, but now I can't remove it a week ago.

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 23
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Mon Aug 05, 2019 3:11 pm

Sorry, can't be too much more help at the minute Sad

I might be able to reproduce with the full train / route combo, but something is obviously funny somewhere, which I can't reproduce at all....
(At the minute, I'm using the ČKD Tatra T5C5K2\4011 & have tried a few random routefiles)

leezer3

Posts : 1867
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by Quork Mon Aug 05, 2019 3:17 pm

Could it be something "funny" happening due to language specific settings in the OS?
Quork
Quork

Posts : 1422
Join date : 2012-05-05
Age : 31
Location : Hofheim a.T., Hessen (Hesse), European Union

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Mon Aug 05, 2019 3:29 pm

I did think of that, but don't think so from a brief check with a comma as my decimal separator Sad

The exception suggests not as well, but it's rather hard to find a silly little bug sometimes.....

leezer3

Posts : 1867
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Tue Aug 06, 2019 10:34 am

There is the point:
I have changed the language settings from Hungarian to English (UK) and it's working.  Very Happy

Maybe if you change your language settings to Hungarian, you can reproduce the error.
So you have to look somewhere here.  Wink

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 23
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Tue Aug 06, 2019 11:40 am

Still can't reproduce at the minute Sad
http://vps.bvecornwall.co.uk/stuff/beta/BVEC_ATS_HUTest2.zip

This fixes some issues when the regional setting was set to Hungarian, and also a couple of AI related glitches, but I can't get it to crash at all, all they would have done is reset a couple of settings to default.....
Do you have a link to your route, as it must be interacting with the plugin somehow?

leezer3

Posts : 1867
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Wed Aug 07, 2019 3:28 pm

I tried to set all the files to UTF-8 BOM because of an idea. It's not working like your plugin: The same error message.

The error came again: It's interesting bacuse only on a newly started route, the other routes are good.

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 23
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by graymac Wed Aug 07, 2019 7:39 pm

I do know there can be errors when mixing UTF and ANSI files within a route. I had it in the past, and had to make certain that all .b3d and .csv files were encoded in UTF.  I'd check that first, there may be an ANSI encoded file or two lurking in the objects folder.
graymac
graymac

Posts : 2133
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Thu Aug 08, 2019 12:35 pm

gcs7e7 wrote:I tried to set all the files to UTF-8 BOM because of an idea. It's not working like your plugin: The same error message.

The error came again: It's interesting bacuse only on a newly started route, the other routes are good.

Interesting, is that with OS_ATS?

That suggests something is awry in the main program somewhere which may be contributing.
I'm not sure if this will have produced a crash log or not, but this might tell us something else.

In the bottom left of the main menu, there is a link entitled 'Report Problem'
It should then give you an option to view the latest crash log Smile

leezer3

Posts : 1867
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Thu Aug 08, 2019 4:44 pm

I also think the main program is wrong.

Here is the latest Crash Log, but the crashes only with BVEC_ATS:
Spoiler:

With OS_ATS I can't reproduce that yet, the main program loaded, only the plugin not.
But with English language settings, the OS_ATS is great.

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 23
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Thu Aug 08, 2019 4:50 pm

I was happy too early:
Does not work with English settings. Log:
Spoiler:

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 23
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by Phonteus Nevolius Thu Aug 08, 2019 6:35 pm

Just to add the result of my testing from Tuesday, I ran all three trams from https://bveworks.wordpress.com/jarmuvek on the Szigetújfalu line and also on Budapest Tram Line 12. The Ganz TM tram was all UTF-8 with BOM by that time, the other two trams were ANSI. Also ran along Vértesszentmihály Tram Line 9, no problems. Then I downloaded and clean installed the Saijou Line (never installed on this machine before), but it went perfectly well with the ANSI encoded ČKD Tatra T5C5K2 / 4011.

My language settings were Hungarian, the decimal separator being comma, I ran OpenBVE 1.6.0.0 on an up to date Windows 10 box.

To summarise, after running routes already installed and also a clean installed route I didn't experience any trouble and unfortunately couldn't reproduce the problem.
Phonteus Nevolius
Phonteus Nevolius

Posts : 116
Join date : 2017-10-05
Location : Hungary

https://phonteusnevolius.wordpress.com

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum