Code Monkey home page Code Monkey logo

ddb_ows's People

Contributors

rsekman avatar

Stargazers

 avatar

Watchers

 avatar

ddb_ows's Issues

Segmentation fault when searching with ows window open

Steps to reproduce

  1. Open the ddb_ows window
  2. Open the playlist search window
  3. Enter a search string
  4. segfault

Probably this has to do with the search results internally forming a playlist?

There also seems to be a reference leak related to searches. Maybe same cause.

Gtk-CRITICAL on exit

The following warnings are issued on exit

** (deadbeef:1151074): CRITICAL **: 23:07:42.142: static void Glib::DispatchNotifier::unreference_instance(Glib::DispatchNotifier*, const Glib::Dispatcher*):
assertion 'instance == notifier' failed

** (deadbeef:1151074): CRITICAL **: 23:07:42.142: static void Glib::DispatchNotifier::unreference_instance(Glib::DispatchNotifier*, const Glib::Dispatcher*):
assertion 'instance == notifier' failed

Seems to be an issue with Dispatcher lifetimes.

GObject type error warning

On loading the .ui file the warning

(deadbeef:1566955): GLib-GObject-WARNING **: 22:31:31.897: unable to set property 'text' of type 'gchararray' from value of type 'glong'

is issued. This seems to be related to one of the ListStore models, but I don't know the exact cause.

Connect UI elements to configuration logic

  • Root
  • Filename formats
  • Cover art
  • Delete unreferenced
  • Playlists to sync -- requires way to persistently reference from ddb.
  • Conversion options
    • Filetypes
    • Preset
    • DSP
    • Extension
    • Worker threads

Progress bar freezes while queueing jobs

This is because queue_jobs() runs in the Gtk main thread, so it blocks the main loop. Thus Gtk can't consume the pulse() messages at the same time. The solution is to dispatch execute in a separate thread. For thread safety these lines

ddb_ows/src/ddb_ows_gui.cpp

Lines 380 to 384 in e7b4960

Gtk::ProgressBar* pb;
builder->get_widget("progress_bar", pb);
if (pb != NULL) {
pb->set_text("Queueing jobs");
}

will have to become a signal in the ProgressMonitor class.

Gtk-CRITICAL gtk_widget_get_visible (widget) failed

The following warning is issued when opening the UI window

(deadbeef:2801592): Gtk-CRITICAL **: 14:20:53.876: IA__gtk_widget_map: assertion 'gtk_widget_get_visible (widget)' failed

Possibly related to the log expander. Does not seem to impact behaviour.

Implement job logic

Use inheritance to support

  • CopyJob
  • MoveJob
  • ConvertJob
  • DeleteJob? -- for removing files no longer present in ddb

Don't leave duplicates after updated metadata

When a previously synced source file has its metadata changed, a CopyJob will be selected, rather than a MoveJob, as the old destination is older than the source. This is correct, but the old destination should be cleaned up.

Crashes with `TextBufferLogger`

The program crashes when queueing many jobs quickly. As far as I can tell the crashes occur in TextBufferLogger accessing the GtkTextBuffer. There is a GTK warning about an invalid iterator. This should not happen because it is guarded by a mutex. I think it may be an issue with writing too much to the buffer too quickly, as it does not happen for small job sets.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.