Thanks for the tips! David Houlder had replied privately and pointed out
that I need to call `dt_database_init` before trying to use the
database. (I didn't notice that it was a private reply until later, and
then forgot to update the mailing list). I ended up just calling
`dt_init` from my test and that got everything going. I'm finally on to
actually developing the feature! :D

Thanks for the help.

Kael


On 09/10/2018 08:20 AM, johannes hanika wrote:
> heya,
>
> this seems a bit hard to diagnose from here.. did you try to reproduce
> the exact sql query in the command line interface ( "sqlite3" ) ? you
> can see whatever dt does using "darktable -d sql". also did you start
> that from a clean database? for debugging, it may be helpful to backup
> your ~/.config/darktable/darktabledb and maybe even only run darktable
> --library /tmp/your-debugging.db on a one-time-use database so you're
> sure you didn't destroy it in the last run already.
>
> hope that helps,
>  jo
>
> On Sun, Sep 9, 2018 at 2:12 AM Kael Shipman <kael.ship...@gmail.com> wrote:
>> Hey all,
>>
>> I've been stuck with a sqlite error for a couple days now and figured it was 
>> time to reach out to a broader audience. Something tells me this is probably 
>> a simple error that's easy to solve and that I just don't know enough about 
>> C debugging to figure it out. (I just learned about gdb today and started 
>> using it to see what was going on, but get some weird behavior and didn't 
>> make any headway.)
>>
>> A description of the error is here, but in short, I've created a very simple 
>> test case that just calls the `dt_image_full_path` function and prints the 
>> result, but when it calls that function, it gives a `sqlite3 error: out of 
>> memory`.
>>
>> Any pointers would be appreciated.
>>
>> Thanks,
>> Kael
>>
>>
>> ___________________________________________________________________________ 
>> darktable developer mailing list to unsubscribe send a mail to 
>> darktable-dev+unsubscr...@lists.darktable.org

___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Reply via email to