Page 1 of 2

Spline Demo Crashes

Posted: Sun Aug 09, 2020 10:38 am
by davebar
PB 5.72(x64) Win 10 Pro X64
The "spline.pb" demo crashes with the message "program terminated unexpectedly".
Is this a known issue?

Re: Spline Demo Crashes

Posted: Sun Aug 09, 2020 1:29 pm
by mk-soft
I don't known ..

But with subsystem OpenGL works

Re: Spline Demo Crashes

Posted: Sun Aug 09, 2020 1:38 pm
by leonhardt
update your display driver and try again.

Re: Spline Demo Crashes

Posted: Sun Aug 09, 2020 4:32 pm
by davebar
leonhardt wrote:update your display driver and try again.
That is going to be problematic. The issue is identical on 5 different computers.
1. A 5 year old Dell XPS17 laptop with the latest display drivers.
2. A 1 week old Dell XPS17 laptop with the latest display drivers.
3. Three desktop motherboards with nVidia cards and the latest display drivers.

Should I tell nVidia and Dell that Fantaisie Software require that they fix their useless broken drivers?

Re: Spline Demo Crashes

Posted: Mon Aug 10, 2020 3:27 am
by Tawbie
Hi davebar,

I have never used the PB Spline library in my projects but to give you some feedback, I tried running "Spline.pb" from the help file. I got a similar error message "the debugged executable quit unexpectedly" using PB5.72, Windows 10 Pro, on a Surface Pro 4. I doubt whether the drivers are the problem since my Windows 10 Pro updates automatically (and quite frequently too).

Re: Spline Demo Crashes

Posted: Mon Aug 10, 2020 8:38 am
by davebar
Tawbie wrote:Hi davebar,

I have never used the PB Spline library in my projects but to give you some feedback, I tried running "Spline.pb" from the help file. I got a similar error message "the debugged executable quit unexpectedly" using PB5.72, Windows 10 Pro, on a Surface Pro 4. I doubt whether the drivers are the problem since my Windows 10 Pro updates automatically (and quite frequently too).
Hi Tawbie,

Thanks for your feedback. I was about to start using PB for some serious work and the Spline library seemed to be a useful option for part of what I wanted to do. Since the library developers have been unable to produce a working example and I don't have time to reverse engineer the issue, I will now put PB aside for real coding.

Re: Spline Demo Crashes

Posted: Mon Aug 10, 2020 9:38 am
by Mijikai
I only could test PB Version 5.62 x86 & x64 (Windows 10)
The spline example crashes.

Re: Spline Demo Crashes

Posted: Mon Aug 10, 2020 9:52 am
by firace
Just comment out line 19:

Code: Select all

WorldShadows(#PB_Shadow_Modulative, 0, RGB(175, 175, 175))
(IIRC, this is a known issue)

Re: Spline Demo Crashes

Posted: Mon Aug 10, 2020 10:36 am
by BarryG
davebar wrote:I will now put PB aside for real coding
Did you specify the OpenGL subsystem in the Compiler Options for the code, like mk-soft said? That should fix the issue.

Re: Spline Demo Crashes

Posted: Mon Aug 10, 2020 11:05 am
by davebar
BarryG wrote:
davebar wrote:I will now put PB aside for real coding
Did you specify the OpenGL subsystem in the Compiler Options for the code, like mk-soft said? That should fix the issue.
Thanks for taking the time to respond. The Compiler Options dialog has 5 tabs and none of them offer an "OpenGL Subsystem" option. Care to share the info?

Re: Spline Demo Crashes

Posted: Mon Aug 10, 2020 11:31 am
by mk-soft
davebar wrote:
BarryG wrote:
davebar wrote:I will now put PB aside for real coding
Did you specify the OpenGL subsystem in the Compiler Options for the code, like mk-soft said? That should fix the issue.
Thanks for taking the time to respond. The Compiler Options dialog has 5 tabs and none of them offer an "OpenGL Subsystem" option. Care to share the info?
Is not a CheckBox

Compiler Options -> Library Subsystem: [ ... ] <- OpenGL

Re: Spline Demo Crashes

Posted: Mon Aug 10, 2020 11:54 am
by blueb
Thanks mk-soft,

Adding 'OpenGL' to the Library Subsystem box worked. :)

Commenting out the offending line as firace suggested does work, I prefer to actually see the shadowing.

Re: Spline Demo Crashes

Posted: Mon Aug 10, 2020 2:07 pm
by davebar
OK! So that is the solution, but here is a suggestion for the more experienced, long term PB users (eg. mk-soft, BarryG, etc.). It's great that you guys take the time to answer many questions from mostly new and inexperienced users, but please don't forget that by definition those users do not have your in-depth knowledge and experience of the software. The answer
But with subsystem OpenGL works
was given very early on in this thread by mk-soft, however this doesn't have very much meaning to someone who doesn't have the same knowledge of the software.
Many of the "Examples\3D" files supplied with the PB installer require this OpenGL option to be set. Maybe with the next release a note could be added to the initial comments at the start of those files. I would be happy to add this small instructional comment to those files if required.

Re: Spline Demo Crashes

Posted: Mon Aug 10, 2020 2:23 pm
by RASHAD
Hi davebar
Most of the problems with Ogre come's from DirectX
RenderWorld()
WorldShadows()

Just update DirectX maybe your problems will be solved

Re: Spline Demo Crashes

Posted: Mon Aug 10, 2020 2:41 pm
by davebar
RASHAD wrote:Hi davebar
Most of the problems with Ogre come's from DirectX
RenderWorld()
WorldShadows()

Just update DirectX maybe your problems will be solved
Hi Rashad,
Updating DirectX would seem like a good idea, but MS don't offer anything other than Version 12, which I already have.
I found several 3D examples with this issue, so I removed the OpenGL compiler option, commented out the "WorldShadows()" line and they all appear to work perfectly.
I haven't found the RenderWorld() to be a problem yet, but thanks for the heads up.