Recent

Author Topic: [CLOSED] I can't debug a program that uses PasLibVLC in the IDE.  (Read 14080 times)

pcurtis

  • Hero Member
  • *****
  • Posts: 951
I can't use PasLibVlc in the IDE. When I run the exe  out of the IDE all is OK.
This goes for the demo apps or my own.

Is there a setting I am missing?

Both VLC and PasLibVlc are the latest versions.
« Last Edit: June 04, 2021, 08:35:18 am by pcurtis »
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: PasLibVlc problem
« Reply #1 on: May 31, 2021, 01:23:52 pm »
So probably I will dump PasLibVlc if it doesn't work and is unsupported  :( :(
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

MarkMLl

  • Hero Member
  • *****
  • Posts: 6692
Re: PasLibVlc problem
« Reply #2 on: May 31, 2021, 01:37:03 pm »
Who says it's unsupported? Have you raised a bug in the appropriate place? Have you allowed that it's a holiday weekend in many countries (a Bank Holiday in the UK, Memorial Day Weekend in the USA and so on) so you can hardly expect attention within 24 hours? Are you able to describe coherently what the problem is? Have you looked back through the forum for other users' experiences?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: PasLibVlc problem
« Reply #3 on: May 31, 2021, 02:23:09 pm »
Yes.

The problem is it is unresponsive at design time. It's even commented here http://lazplanet.blogspot.com/2018/01/how-to-make-simple-video-player-in.html

There are no comments here on this site.

There is no usage information available (even basic), and the inability to debug in the IDE make it unusable.http://
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

MarkMLl

  • Hero Member
  • *****
  • Posts: 6692
Re: PasLibVlc problem
« Reply #4 on: May 31, 2021, 02:52:47 pm »
There are no comments here on this site.

Really? I get three pages of forum hits results.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: PasLibVlc problem
« Reply #5 on: May 31, 2021, 03:00:19 pm »
What "text" did you search for?
« Last Edit: May 31, 2021, 03:03:44 pm by pcurtis »
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

Zvoni

  • Hero Member
  • *****
  • Posts: 2330
Re: PasLibVlc problem
« Reply #6 on: May 31, 2021, 03:13:36 pm »
I agree with OP
I also took a look at PasLibVlc some months ago, and the shipped demo/example just crashed in the IDE
I didn't raise anything, since it wasn't that important to me at that time
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: PasLibVlc problem
« Reply #7 on: May 31, 2021, 03:23:34 pm »
@zvoni - Phew, at least now I know I'm not crazy  ;D
BTW Do you remember what OS you used?
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

Zvoni

  • Hero Member
  • *****
  • Posts: 2330
Re: PasLibVlc problem
« Reply #8 on: May 31, 2021, 03:35:28 pm »
@zvoni - Phew, at least now I know I'm not crazy  ;D
BTW Do you remember what OS you used?

Manjaro Cinnamon incl. current VLC at that time
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: PasLibVlc problem
« Reply #9 on: May 31, 2021, 03:55:45 pm »
So it's not a Windows thing.
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

MarkMLl

  • Hero Member
  • *****
  • Posts: 6692
Re: PasLibVlc problem
« Reply #10 on: May 31, 2021, 05:07:24 pm »
What "text" did you search for?

libvlc

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

MarkMLl

  • Hero Member
  • *****
  • Posts: 6692
Re: PasLibVlc problem
« Reply #11 on: May 31, 2021, 05:13:55 pm »
So it's not a Windows thing.

With the caveat that I've not tried it and have no incentive to try it (I've quite simply got too many other things on my plate)...

Are you saying that a compiled program will run standalone, but not in the IDE? OP read more as though it didn't display anything at design time which of course is a completely different matter.

What happens if it's run in the IDE but without the debugger? What happens if fpdebug (?) is used rather than gdb? What happens (in the case of Linux) if it's run using gdbserver which is then driven by the IDE? Ditto with gdbserver+app running as root?

These are all basic questions, which should have been investigated before a "this library is crap" verdict.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

pcurtis

  • Hero Member
  • *****
  • Posts: 951
Re: PasLibVlc problem
« Reply #12 on: May 31, 2021, 05:18:18 pm »
Quote
Are you saying that a compiled program will run standalone, but not in the IDE?

Exactly, as mentioned in the opening post

Quote
I can't use PasLibVlc in the IDE. When I run the exe  out of the IDE all is OK.

 with or without debugger.
« Last Edit: May 31, 2021, 05:23:27 pm by pcurtis »
Windows 10 20H2
Laz 2.2.0
FPC 3.2.2

MarkMLl

  • Hero Member
  • *****
  • Posts: 6692
Re: PasLibVlc problem
« Reply #13 on: May 31, 2021, 06:06:21 pm »
Quote
Are you saying that a compiled program will run standalone, but not in the IDE?

Exactly, as mentioned in the opening post

Quote
I can't use PasLibVlc in the IDE. When I run the exe  out of the IDE all is OK.

 with or without debugger.

There's no "exactly" about it. Your OP read as though you were complaining that it didn't work at design time, i.e. like a database component can't be used live inside the debugger.

I suggesting waiting until tomorrow when Martin might be in circulation, but you'd do yourself a favour by changing your subject line to say explicitly that you can't run or debug a program using libvlc in the IDE.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9911
  • Debugger - SynEdit - and more
    • wiki
Re: PasLibVlc problem
« Reply #14 on: May 31, 2021, 07:50:55 pm »
The problem is it is unresponsive at design time.

I am using PasLibVlc on windows. No issues at design time...

At runtime, yes ...
A small (but not dramatic) slowdown at runtime, and sometimes freezes when changing videos. Not yet sure why, probably upsets some timing in the lib.

I found using a newer gdb may help. https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Alternative%20GDB/
The "modified 9.2" seems to do well. (tested on 64bits / there is one for 32bits too, but not tested with PasLivVlc)
Note: You can probably use that gdb with an older IDE, but you must keep all environment, command line args, and exename+path in plain English ASCII. I.e if you hand the debugger any accented or other chars, that may not work.

Or try FpDebug, works often - but not always.
« Last Edit: May 31, 2021, 08:28:44 pm by Martin_fr »

 

TinyPortal © 2005-2018