openBVE 1.5.0 RC1 - BUGS
+29
Manuel18
Delsin
S520
Phonteus Nevolius
theflyingoreo
parker78
graymac
ebennekom
NakanoS
LabRatAndy
leezer3
jckhinks
Quork
call2
Stevegr
jorgecerezo
SysVR
BillEWS
buckysam
tof63
MattD6R
thehoviskid
phontanka
mobile1
Dj Hammers
Glory! koshikii
fas
Marc Riera
Dexter
33 posters
Page 20 of 21
Page 20 of 21 • 1 ... 11 ... 19, 20, 21
Re: openBVE 1.5.0 RC1 - BUGS
The problem should be fixed with the commit below.
https://github.com/leezer3/OpenBVE/commit/3fb86e6b344e0fe82b5db060c3d0e8c257f0e733
https://github.com/leezer3/OpenBVE/commit/3fb86e6b344e0fe82b5db060c3d0e8c257f0e733
Re: openBVE 1.5.0 RC1 - BUGS
And this route crashes with every train https://bvestation.com/download/120
Delsin- Posts : 313
Join date : 2016-08-20
Re: openBVE 1.5.0 RC1 - BUGS
Dear Mr. Delsin
Has the previously reported problem been resolved?
Is the problem this time "System.OutOfMemoryException"?
Please attach a log and crash log to solve the problem.
@leezer3 -
OpenBVE\source\OpenBVE\Parsers\Route\BVE\CsvRwRouteParser.ApplyRouteData.cs
This may be due to the use of bit shifts when resizing the array.
Perhaps you are using bit shift to prevent resizing many times, but isn't it better to use List?
The following site may be helpful:
https://stackoverflow.com/questions/19579634/how-can-i-prevent-outofmemory-exceptions-during-array-resize
Has the previously reported problem been resolved?
Is the problem this time "System.OutOfMemoryException"?
Please attach a log and crash log to solve the problem.
@leezer3 -
OpenBVE\source\OpenBVE\Parsers\Route\BVE\CsvRwRouteParser.ApplyRouteData.cs
- Code:
for (int j = 0; j < CurrentRoute.Tracks.Length; j++)
{
if (n >= CurrentRoute.Tracks[j].Elements.Length)
{
Array.Resize(ref CurrentRoute.Tracks[j].Elements, CurrentRoute.Tracks[j].Elements.Length << 1);
}
}
This may be due to the use of bit shifts when resizing the array.
Perhaps you are using bit shift to prevent resizing many times, but isn't it better to use List?
The following site may be helpful:
https://stackoverflow.com/questions/19579634/how-can-i-prevent-outofmemory-exceptions-during-array-resize
Re: openBVE 1.5.0 RC1 - BUGS
Here's the log:
Haven't tried newer builds yet, will see if updating works.
- Code:
22.08.2019 00:23:46
OpenBVE 1.5.1299.724-travis Crash Log
Program is running on the Windows backend
Current screen resolution is: Full-screen 1600px X 900px 32bit color-mode
Current routefile is: D:\openbve1450\UserData\LegacyContent\Railway\Route\LIRR Hempstead Branch\Daytime\Hempstead to Jamaica Day.csv
Current train is: D:\openbve1450\UserData\LegacyContent\Train\夜鉄カコ電車14系
The current routefile caused the following exception:
System.OutOfMemoryException: Выдано исключение типа "System.OutOfMemoryException".
в OpenBve.ObjectManager.AnimatedObject.Initialize(Int32 StateIndex, Boolean Overlay, Boolean Show)
в OpenBve.ObjectManager.AnimatedObject.CreateObject(Vector3 Position, Transformation BaseTransformation, Transformation AuxTransformation, Int32 SectionIndex, Double TrackPosition, Double Brightness)
в OpenBve.ObjectManager.AnimatedObjectCollection.CreateObject(Vector3 Position, Transformation BaseTransformation, Transformation AuxTransformation, Int32 SectionIndex, Boolean AccurateObjectDisposal, Double StartingDistance, Double EndingDistance, Double BlockLength, Double TrackPosition, Double Brightness, Boolean DuplicateMaterials)
в OpenBve.CsvRwRouteParser.ApplyRouteData(String FileName, RouteData& Data, Boolean PreviewOnly)
в OpenBve.CsvRwRouteParser.ParseRoute(String FileName, Boolean IsRW, Encoding Encoding, String trainPath, String objectPath, String soundPath, Boolean PreviewOnly)
в OpenBve.Loading.LoadEverythingThreaded()
в OpenBve.Loading.LoadThreaded() в System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
в System.Environment.get_StackTrace()
в OpenBve.Loading.LoadThreaded()
в System.Threading.ThreadHelper.ThreadStart_Context(Object state)
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Threading.ThreadHelper.ThreadStart()
Current program memory usage: 2440,85mb
System memory free: 1934mb
Haven't tried newer builds yet, will see if updating works.
Delsin- Posts : 313
Join date : 2016-08-20
Re: openBVE 1.5.0 RC1 - BUGS
Thank you.
It looks like the same error as my environment.
Even if C # is built with 64-bit, the object is allocated only 2GB by default.
OpenBVE is built with 32-bit and cannot be allocated any further.
It looks like the same error as my environment.
Even if C # is built with 64-bit, the object is allocated only 2GB by default.
OpenBVE is built with 32-bit and cannot be allocated any further.
Re: openBVE 1.5.0 RC1 - BUGS
Thanks, also the error with MotorSoundEditor is still happening.
Delsin- Posts : 313
Join date : 2016-08-20
Re: openBVE 1.5.0 RC1 - BUGS
I can reproduce that.
It's being caused by the route author's choice to use massive rail numbers, and the problem is being somewhat exacerbated by the recent multi-track logic (as we create al 1000+ tracks, as opposed to those actually in use)
Will try and sort out tomorrow- Too late to be doing a major rehack on the route parser internals
It's being caused by the route author's choice to use massive rail numbers, and the problem is being somewhat exacerbated by the recent multi-track logic (as we create al 1000+ tracks, as opposed to those actually in use)
Will try and sort out tomorrow- Too late to be doing a major rehack on the route parser internals
Re: openBVE 1.5.0 RC1 - BUGS
xD well, it got worse - as of Aug 21 build, I can't load any route because description box in menu throws a null reference error
Delsin- Posts : 313
Join date : 2016-08-20
Re: openBVE 1.5.0 RC1 - BUGS
Try again in about 5 minutes or so when it rebuilds
(Accidental side-effect from moving *all* object loaders into plugins, you must have caught it just at the wrong time, as that build has only been there for 20 mins or so before I found it.....)
Edit: Actually already up there now.
(Accidental side-effect from moving *all* object loaders into plugins, you must have caught it just at the wrong time, as that build has only been there for 20 mins or so before I found it.....)
Edit: Actually already up there now.
Re: openBVE 1.5.0 RC1 - BUGS
Thanks, will test it.
There are some occasional crashes at various times (couldn't pinpoint a reason), noticed them even both Aug 20 and Aug 15 builds, here's one of them:
There are some occasional crashes at various times (couldn't pinpoint a reason), noticed them even both Aug 20 and Aug 15 builds, here's one of them:
- Code:
22.08.2019 02:22:22
OpenBVE 1.5.1295.1080-travis Crash Log
Program is running on the Windows backend
Current screen resolution is: Full-screen 1600px X 900px 32bit color-mode
Current routefile is: D:\openbve1450\UserData\LegacyContent\Railway\Route\LIRR Hempstead Branch\Daytime\Jamaica to Penn Station Day.csv
Current train is: D:\openbve1450\UserData\LegacyContent\Train\夜鉄カコ電車14系
Current train plugin is: OpenBveAts.dll
57 file(s) not found
43 error(s), 2 warning(s)
The current routefile caused the following exception:
System.IndexOutOfRangeException: Индекс находился вне границ массива.
в OpenBveApi.Sounds.Sound.GetMonoMix()
в SoundManager.SoundsBase.LoadBuffer(SoundBuffer buffer)
в OpenBve.Sounds.UpdateInverseModel(Double timeElapsed)
в SoundManager.SoundsBase.Update(Double timeElapsed, SoundModels model)
в OpenBve.OpenBVEGame.OnRenderFrame(FrameEventArgs e)
в OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
в OpenTK.GameWindow.DispatchRenderFrame()
в OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
в OpenBve.MainLoop.StartLoopEx(MainDialogResult result)
в OpenBve.Program.Main(String[] args) в System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
в System.Environment.get_StackTrace()
в OpenBve.Program.Main(String[] args)
Current program memory usage: 3519,29mb
System memory free: 1264mb
Delsin- Posts : 313
Join date : 2016-08-20
Re: openBVE 1.5.0 RC1 - BUGS
The fix for that one *should* already be in there- Appears to be the one fixed by the commit linked above by S520.
Will take a closer look at callers of that function though, might be able to add a little more checking there too.
Will take a closer look at callers of that function though, might be able to add a little more checking there too.
Re: openBVE 1.5.0 RC1 - BUGS
I strongly suspect your crashing route above will be an absolute pig to fix properly
I'm working on it in this branch, and whilst it's no longer crashing from some cursory testing, I strongly suspect it's broken TrackFollowingObjects, and there's enough messing around I'm nowhere near happy with it.....
https://github.com/leezer3/OpenBVE/tree/TrackNumbering
Will do some more bashing over the next few days.
I'm working on it in this branch, and whilst it's no longer crashing from some cursory testing, I strongly suspect it's broken TrackFollowingObjects, and there's enough messing around I'm nowhere near happy with it.....
https://github.com/leezer3/OpenBVE/tree/TrackNumbering
Will do some more bashing over the next few days.
Re: openBVE 1.5.0 RC1 - BUGS
I can't immediately reproduce that one with a couple of random tests.
Link to the train please?
(Hopefully there won't be too many more of these, but in my defence, this has been an absolutely massive change eliminating a stupid amount of duplicated code....)
Link to the train please?
(Hopefully there won't be too many more of these, but in my defence, this has been an absolutely massive change eliminating a stupid amount of duplicated code....)
Re: openBVE 1.5.0 RC1 - BUGS
took some time, dropbox is very temperamental with upload at times https://www.dropbox.com/s/639cd7cnb9o5z1d/E15.rar?dl=0
interestingly, my other trains with bogies aren't affected, also don't remember if it was on Aug 21 or 22 build
interestingly, my other trains with bogies aren't affected, also don't remember if it was on Aug 21 or 22 build
Delsin- Posts : 313
Join date : 2016-08-20
Re: openBVE 1.5.0 RC1 - BUGS
Fixed, and found a couple of issues that your extensions.cfg caused in Object Viewer for good measure.
TLDR:
We need to pass certain camera properties to the animated object when using a 2D cab in order to enable camera restrictions (as the 2D cab is nothing more than an object within the world)
These were accidentally being passed to the bogies too. Didn't break with a 3D cab, as this works in a whole different way.
TLDR:
We need to pass certain camera properties to the animated object when using a 2D cab in order to enable camera restrictions (as the 2D cab is nothing more than an object within the world)
These were accidentally being passed to the bogies too. Didn't break with a 3D cab, as this works in a whole different way.
Re: openBVE 1.5.0 RC1 - BUGS
Linux version 1.6.0.1 works for me thank you.
Raffles- Posts : 28
Join date : 2019-03-30
Re: openBVE 1.5.0 RC1 - BUGS
Just noticed - primary horn is much quieter than secondary, even with the same sound on both. Especially noticeable in F2 view in second or third car.
Delsin- Posts : 313
Join date : 2016-08-20
Re: openBVE 1.5.0 RC1 - BUGS
Interesting...
This seems actually to be due to the sound radius as opposed to the volume.
Looking at the code, this would appear to apply to trains using the BVE2 sound set (and hence no sound.cfg file)
It uses the following sound radii:
I'll need to test this with BVE2 / BVE4 and see what I get- It feels deliberate, and I wonder if this is actually matching undocumented BVE2 behaviour.
(Essentially, if you rename your primary horn file to Klaxon.wav , it'll be the same volume.....)
This seems actually to be due to the sound radius as opposed to the volume.
Looking at the code, this would appear to apply to trains using the BVE2 sound set (and hence no sound.cfg file)
It uses the following sound radii:
- Klaxon0.wav (Primary horn) - Small radius.
- Klaxon.wav (Alternate primary horn) - Large radius.
- Klaxon1.wav (Secondary horn) - Large radius.
- Klaxon2.wav (Music horn) - Medium radius.
I'll need to test this with BVE2 / BVE4 and see what I get- It feels deliberate, and I wonder if this is actually matching undocumented BVE2 behaviour.
(Essentially, if you rename your primary horn file to Klaxon.wav , it'll be the same volume.....)
Re: openBVE 1.5.0 RC1 - BUGS
I guess it's deliberate then - many Japanese trains have both proper air horns as secondary and electronic klaxons/"music horns"/same horn, but partially silenced as primary (to avoid jumpscaring people near trains ) and primary is obviously quieter and has smaller radius. There's obviously no need for that now because:
- it can be very different for other trains (same volume for high and low horns on British trains, inverted in case when there's whistle as secondary, etc)
- tweaking sound volume can create horn volume difference as well
- I think it'll be possible to set volume and radius for all sounds as well later(?)
- it can be very different for other trains (same volume for high and low horns on British trains, inverted in case when there's whistle as secondary, etc)
- tweaking sound volume can create horn volume difference as well
- I think it'll be possible to set volume and radius for all sounds as well later(?)
Delsin- Posts : 313
Join date : 2016-08-20
Re: openBVE 1.5.0 RC1 - BUGS
The second station on this route has never loaded properly https://csp2206.exblog.jp/22506247/
It works fine in BVE2, BVE4, Bve5 (after conversion), even Hmmsim, but is never fully visible in OpenBVE, even on older versions (remember having this since the times of 1.4.2)
It works fine in BVE2, BVE4, Bve5 (after conversion), even Hmmsim, but is never fully visible in OpenBVE, even on older versions (remember having this since the times of 1.4.2)
Delsin- Posts : 313
Join date : 2016-08-20
Re: openBVE 1.5.0 RC1 - BUGS
Delsin wrote:The second station on this route has never loaded properly https://csp2206.exblog.jp/22506247/
It works fine in BVE2, BVE4, Bve5 (after conversion), even Hmmsim, but is never fully visible in OpenBVE, even on older versions (remember having this since the times of 1.4.2)
Fixed-
Misplaced period in several objects, which was being interpreted as a nighttime texture, and crashing the parser.
Re: openBVE 1.5.0 RC1 - BUGS
Thanks - noticed dots instead of commas now when took another look at these files. Fixed them on my side.
And while testing it, found one in 1.6.0.0 release build - trying to load a route while another is open in RouteViewer using F7 will cause "invalid parameter" error, then interface elements (white text) appear bolder (apparently, they get drawn several times on the same spot) and finally, after a few seconds, RouteViewer crashes.
And while testing it, found one in 1.6.0.0 release build - trying to load a route while another is open in RouteViewer using F7 will cause "invalid parameter" error, then interface elements (white text) appear bolder (apparently, they get drawn several times on the same spot) and finally, after a few seconds, RouteViewer crashes.
Delsin- Posts : 313
Join date : 2016-08-20
Re: openBVE 1.5.0 RC1 - BUGS
Found and fixed in the latest nightly build, thanks
There will be an updated version pushed sometime around new year, which will also considerably improve the performance of 1.7.1.0 under certain circumstances.
For the meantime, if the performance or the broken limit posts bother you, please drop back to 1.7.0.3.
There will be an updated version pushed sometime around new year, which will also considerably improve the performance of 1.7.1.0 under certain circumstances.
For the meantime, if the performance or the broken limit posts bother you, please drop back to 1.7.0.3.
Page 20 of 21 • 1 ... 11 ... 19, 20, 21
Similar topics
» Objects spawning randomly, UI bugs
» Name, Logo and Other Complicated Ideas.....
» Render bugs with non-existing parts of Railjet coaches, Object Viewer complaining of Train dat format
» openBVE 1.4.5 + new openBVE mirror site
» openBVE 1.2 vs. openBVE 1.4 comparison
» Name, Logo and Other Complicated Ideas.....
» Render bugs with non-existing parts of Railjet coaches, Object Viewer complaining of Train dat format
» openBVE 1.4.5 + new openBVE mirror site
» openBVE 1.2 vs. openBVE 1.4 comparison
Page 20 of 21
Permissions in this forum:
You cannot reply to topics in this forum