Re: Threads



On 10/22/2013 12:03 PM, Chris Vine wrote:
On Tue, 22 Oct 2013 11:57:19 -0400
Paul Davis <paul linuxaudiosystems com> wrote:
well, there were two issues. he should not have been using them at
all in the particular context that they were being called from,
because of the requirements of RT programming. but he also had the
issue that the functions were indeed missing when he tried to build
his code (he never indicated whether this was a compile, link or run
time missing)
Yes he did.  He said:

"I just updated to Ubuntu 13.10 and I have no
support for

gdk_threads_enter();
gdk_threads_leave();

So, my app is crashing with signal errors."

That is, he said there were run time errors.  His diagnosis of the cause
was completely bogus.  (It also seems hard to believe there were signal
errors, but you know better than me how JACK works.)

Chris


Wait, just a minute here. I just got home to 8 emails with the heading Re: Threads.

First, can I put my code back the way it always worked, using gdk_threads_enter() and gdk_threads_leave() and compile with DISABLE_DEPRECATED in my makefile?

Second, this application is for my desktop only. I have no bug reports, no comments, no outside requirements, this app is only used by me. So, anyway to get it to work on my desktop I will do. I am currently writing a function that is called from the JACK callback the way Paul is recommending. However, if I can just recompile with old code...

Third, the app did crash with signal errors to the gtkTextBuffer, or gtkTextView. The signal error was "cannot find line number in gtk_text_layout..." is what kept coming up, when, and this is key to understanding this issue, when I removed the gdk_threads_enter() and gdk_threads_leave() from the JACK callback. This happened before 13.10. I had to put the gdk_threads_enter() and gdk_threads_leave() in the callback to stop the errors. All was well, I was lucky, as Paul stated to me 3 times, until ubuntu 13.10.

Perhaps the JACK callback did some thread priority thing that messed up access to the gui. I don't have time in my schedule to debug this at the level of gtk_text_layout functions. I am a composer, I have work to do even as I type this. I used the app in question to print music.

I currently changed the makefile to gtk2.  So, I do have a functional app.

Craig Bakalian






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]