NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 3 4 5 6 7 … 34 Next »
No device listed -- error saving capture source: SQLite Error 1: 'no such column: −1'

 
  • 0 Vote(s) - 0 Average
No device listed -- error saving capture source: SQLite Error 1: 'no such column: −1'
skrottapple
Offline

Junior Member

Sweden
Posts: 21
Threads: 1
Joined: Apr 2024
#21
2024-04-12, 12:55 AM
Thanks for the explanation.

Here's the new logs


Attached Files
.zip   logs-20240412-0453.zip (Size: 13.99 KB / Downloads: 5)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,014
Threads: 956
Joined: May 2006
#22
2024-04-12, 01:10 AM
Are you allowing UDP that is required for SAT>IP as it is taking a long time to fail.

Martin
skrottapple
Offline

Junior Member

Sweden
Posts: 21
Threads: 1
Joined: Apr 2024
#23
2024-04-12, 01:28 AM
Afraid I don't know what "SAT>IP" is. Where should I allow UDP? I'm honestly not aware that I'm trying to do any network bound operations (or when I'm doing it) nor where this potential communication is bound, so I don't know what is reasonable to do in that regard.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,014
Threads: 956
Joined: May 2006
#24
2024-04-12, 01:52 AM
Originally you said you weren't assigning an IP so I thought you might be limiting networking on your laptop with firewalls or VPN etc. I am grasping for a reason for this.

Martin
skrottapple
Offline

Junior Member

Sweden
Posts: 21
Threads: 1
Joined: Apr 2024
#25
2024-04-12, 02:17 AM
I'm not really limiting anything on it. Sometimes it has wifi disabled (which the ubuntu designers can't seem to differentiate from "airplane mode" for some reason...) other times enabled. Internet access is sporadic, whenever I decide to share the connection from my phone. An ordinary laptop.

I've never associated local device discovery with network access, and I'm still not sure what significance this would have for my use case though.

Sometimes network calls might take some time to fail, because there's an assigned default route that isn't reachable. Disabling wifi gets rid of that problem without having to reconfigure the local DHCP server every time I want to share/stop sharing internet to the local network...
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,014
Threads: 956
Joined: May 2006
#26
2024-04-12, 02:30 AM
There are 2 discovery threads overlapping I am thinking one might be locking the database. I am not thinking that Internet access is required, LAN only so if the route is an issue that could be it.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,753
Threads: 769
Joined: Nov 2003
#27
2024-04-12, 02:39 AM
I don't think it's related to that.

I wonder if it's picking up a different version of the sqlite library or something
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,753
Threads: 769
Joined: Nov 2003
#28
2024-04-12, 02:40 AM
Here is the bit of code that is failing, somewhere inside the SQLite .ExecuteNonQuery() call.

Code:
// insert or update
                if (oid == 0)
                {
                    DbCommand command = databaseHelper.CreateCommand(connection, "insert into CAPTURE_SOURCE (name, recorder_plugin_class, present, enabled, priority) values (@name, '" + recorderClass + "', 'Y', 'Y', " + priority + ")");
                    command.Parameters.Add(databaseHelper.GetDatabaseParameter("@name", System.Data.DbType.String));
                    command.Parameters[0].Value = name;
                    command.Parameters[0].DbType = System.Data.DbType.String;
                    command.ExecuteNonQuery();

                    // find newly allocated oid
                    oid = Convert.ToInt32(databaseHelper.GetNewIdentity(connection));
                }
                else
                {
                    string presentText = "N";
                    if (present)
                        presentText = "Y";

                    string enabledText = "N";
                    if (enabled)
                        enabledText = "Y";

                    DbCommand command = databaseHelper.CreateCommand(connection, "update CAPTURE_SOURCE set name=@name, recorder_plugin_class='" + recorderClass + "', enabled='" + enabledText + "', present='" + presentText + "', priority=" + priority + " where oid = " + oid);
                    command.Parameters.Add(databaseHelper.GetDatabaseParameter("@name", System.Data.DbType.String));
                    command.Parameters[0].Value = name;
                    command.Parameters[0].DbType = System.Data.DbType.String;
                    command.ExecuteNonQuery();
                }
skrottapple
Offline

Junior Member

Sweden
Posts: 21
Threads: 1
Joined: Apr 2024
#29
2024-04-12, 02:53 AM
It's had LAN and internet access practically every test I've done in this thread, since I read and copy instructions beforehand, and reply and upload logs on the machine itself immediately afterwards.

> I am not thinking that Internet access is required, LAN only so if the route is an issue that could be it.

I'll have to take your word for it. To me the default route is only relevant for arbitrary internet access, so either both the default route and internet access matter or they both don't. I also cannot imagine what it would be insisting on connecting to on an unknown LAN to the extent that it would sacrifice the use of its own db.

Anyway, no amount of lan/internet access has made any difference so far.
skrottapple
Offline

Junior Member

Sweden
Posts: 21
Threads: 1
Joined: Apr 2024
#30
2024-04-12, 03:34 AM
While the query building code looks straightforward, even if I dusted off my sql knowledge to the extent where I wouldn't embarass myself (why is recorderClass quoted but not priority?), and read up on c# and the libraries used, I think I'd still be lost without knowing the types of the variables ("databaseHelper", "oid", "priority") and how the values were generated.

If in fact GetOrdinal is generating the offending column index that's being used (that's what I gathered from your description), then shouldn't the calls to it be a critical part of the code to be examined? I can't spot any calls to it at least.

As you can see I'm not of much use. I'll leave it to those with more c# experience and code access. And even then it usually turns out to be something trivial... I'm guessing that since the server starts that at least my .net is working.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Failed: No errors, but no data delivered. This is usually because the device failed Bobthegoldfish 3 361 2024-11-29, 12:49 AM
Last Post: mvallevand
  Adaptec avc-3610 device not listed, but detected by OS tryingtomakeitwork 1 521 2024-04-10, 12:29 PM
Last Post: mvallevand
  Different Errors depending on channel (no tuner found/transcoding Error) idefixrc 3 854 2023-11-21, 12:45 PM
Last Post: mvallevand
  Nextpvr unaccessable from Jellyfin with 401 error Simonzzzz 5 1,343 2023-11-20, 10:28 AM
Last Post: Simonzzzz
  Recording length error VCR58 20 2,302 2023-11-12, 11:46 PM
Last Post: mvallevand
  IPTV device - reloading M3U amirlsm 28 10,428 2023-08-15, 09:51 AM
Last Post: mrnobody
  "Unexpected error scanning for other devices" BlackJack 2 798 2023-07-15, 03:03 PM
Last Post: BlackJack
  usb device doesn't appear in GUI j_yves 4 939 2023-05-29, 02:56 PM
Last Post: j_yves
  HTTP ERROR 500 PJosses 17 2,100 2023-02-16, 05:17 PM
Last Post: PJosses
  Device Scan isn't finding HDHR3-US Smithers 11 2,229 2022-09-27, 09:36 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode