Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Wish not to seem, but to be, the best." -- Aeschylus


computers / alt.os.linux.ubuntu / Re: error: symbol 'grub_calloc' not found

SubjectAuthor
* error: symbol 'grub_calloc' not foundAdam
+* Re: error: symbol 'grub_calloc' not foundstepore
|+* Re: error: symbol 'grub_calloc' not foundAragorn
||`- Re: error: symbol 'grub_calloc' not foundMark Lloyd
|+* Re: error: symbol 'grub_calloc' not foundBobbie Sellers
||+* Re: error: symbol 'grub_calloc' not foundAdam
|||`- Re: error: symbol 'grub_calloc' not foundstepore
||`- Re: error: symbol 'grub_calloc' not foundJonathan N. Little
|`- Re: error: symbol 'grub_calloc' not foundBobbie Sellers
`* Re: error: symbol 'grub_calloc' not foundPaul
 `* Re: error: symbol 'grub_calloc' not foundAdam
  `* Re: error: symbol 'grub_calloc' not foundAdam
   `* Re: error: symbol 'grub_calloc' not foundPaul
    `* Re: error: symbol 'grub_calloc' not foundAdam
     +- Re: error: symbol 'grub_calloc' not foundAdam
     +- Re: error: symbol 'grub_calloc' not foundPaul
     `* Re: error: symbol 'grub_calloc' not foundPaul
      `* Re: error: symbol 'grub_calloc' not foundAdam
       `* Re: error: symbol 'grub_calloc' not foundPaul
        `* Re: error: symbol 'grub_calloc' not foundAdam
         `* Re: error: symbol 'grub_calloc' not foundPaul
          `* Re: error: symbol 'grub_calloc' not foundAdam
           +* Re: error: symbol 'grub_calloc' not foundPaul
           |`* Re: error: symbol 'grub_calloc' not foundPaul
           | `- Re: error: symbol 'grub_calloc' not foundAdam
           `* Re: error: symbol 'grub_calloc' not foundPaul
            `* Re: error: symbol 'grub_calloc' not foundAdam
             `* Re: error: symbol 'grub_calloc' not foundPaul
              `* Re: error: symbol 'grub_calloc' not foundAdam
               `* Re: error: symbol 'grub_calloc' not foundAdam
                +- Re: error: symbol 'grub_calloc' not foundAdam
                `* Re: error: symbol 'grub_calloc' not foundPaul
                 +* Re: error: symbol 'grub_calloc' not foundAdam
                 |`* Re: error: symbol 'grub_calloc' not foundPaul
                 | `* Re: error: symbol 'grub_calloc' not foundAdam
                 |  `- Re: error: symbol 'grub_calloc' not foundAdam
                 `* Re: error: symbol 'grub_calloc' not foundAdam
                  `* Re: error: symbol 'grub_calloc' not foundPaul
                   +* Re: error: symbol 'grub_calloc' not foundPaul
                   |`* Re: error: symbol 'grub_calloc' not foundAdam
                   | `* Re: error: symbol 'grub_calloc' not foundPaul
                   |  `* Re: error: symbol 'grub_calloc' not foundAdam
                   |   `* Re: error: symbol 'grub_calloc' not foundPaul
                   |    `* Re: error: symbol 'grub_calloc' not foundAdam
                   |     +* Re: error: symbol 'grub_calloc' not foundAdam
                   |     |`* Re: error: symbol 'grub_calloc' not foundPaul
                   |     | `* Re: error: symbol 'grub_calloc' not foundAdam
                   |     |  `* Re: error: symbol 'grub_calloc' not foundPaul
                   |     |   `* Re: error: symbol 'grub_calloc' not foundAdam
                   |     |    `* Re: error: symbol 'grub_calloc' not foundPaul
                   |     |     `- Re: error: symbol 'grub_calloc' not foundAdam
                   |     `* Re: error: symbol 'grub_calloc' not foundPaul
                   |      `- Re: error: symbol 'grub_calloc' not foundAdam
                   `- Re: error: symbol 'grub_calloc' not foundAdam

Pages:123
Re: error: symbol 'grub_calloc' not found

<tgbddi$1ctq3$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2838&group=alt.os.linux.ubuntu#2838

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nospam@needed.invalid (Paul)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: error: symbol 'grub_calloc' not found
Date: Mon, 19 Sep 2022 23:52:17 -0400
Organization: A noiseless patient Spider
Lines: 75
Message-ID: <tgbddi$1ctq3$1@dont-email.me>
References: <tfrara$q5n$1@gioia.aioe.org> <tfruse$12o6$1@gioia.aioe.org>
<tft0ov$35n$1@gioia.aioe.org> <tft374$1b01$1@gioia.aioe.org>
<tftaoi$32tai$1@dont-email.me> <tfue88$aba$1@gioia.aioe.org>
<tfvcj7$3blp7$1@dont-email.me> <tg0hql$1n1a$1@gioia.aioe.org>
<tg1c6t$1tfl$1@gioia.aioe.org> <tg20oc$1m9s$1@gioia.aioe.org>
<tg2fd8$3tip5$1@dont-email.me> <tg32q3$9s9$1@gioia.aioe.org>
<tg5b98$881o$1@dont-email.me> <tg5ei5$25c$1@gioia.aioe.org>
<tg5p18$9cqs$1@dont-email.me> <tg7fjd$qhv$1@gioia.aioe.org>
<tg7h0f$1i2j$1@gioia.aioe.org> <tg7m56$l4f9$1@dont-email.me>
<tg7uer$1scm$1@gioia.aioe.org> <tg816e$134b$1@gioia.aioe.org>
<tg81p4$1al2$1@gioia.aioe.org> <tg832k$1s63$1@gioia.aioe.org>
<tg84te$onsl$1@dont-email.me> <tg87mc$1fu7$1@gioia.aioe.org>
<tg8jb6$ugs0$1@dont-email.me> <tg8sq8$10k7j$1@dont-email.me>
<tg8u3o$10mt7$1@dont-email.me> <tg962h$118u7$1@dont-email.me>
<tgb5fr$1camm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 20 Sep 2022 03:52:18 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="5b2764ed6501827a5e34b4f19ec5fdb1";
logging-data="1472323"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+82chDoqkPzykWF7fN707RQ1a2yvJSmGA="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:ZJ9GOiOpjixukeY95+i0UGbkfLw=
In-Reply-To: <tgb5fr$1camm$1@dont-email.me>
Content-Language: en-US
 by: Paul - Tue, 20 Sep 2022 03:52 UTC

On 9/19/2022 9:36 PM, Adam wrote:
> On 09/19/2022 12:34 AM, Paul wrote:
>> On 9/19/2022 1:18 AM, Adam wrote:
>>
>>>
>>> Is there some place where I can upload the scan output ?  I don't want to exceed my quota here too.
>>>
>>
>> You're already using postimage for the pictures.
>>
>> It sounds like you have some text to upload.
>>
>> And the place for that is pastebin.com .
>> The interface is on the main page.
>>
>> They also have a FAQ.
>>
>> https://pastebin.com/faq
>>
>>    "20 pastes per day, 0.5MB max each, free"
>>
>> If you need more capability than that, they have
>> a paid version of the service too.
>>
>> The URL of the returned paste, is the key to finding it.
>> You can post the URL they define, to pass the item to others.
>>
>> I sometimes paste a bit of source in there, rather
>> than put it in a posting.
>>
>> I have not tried to annoy them, by encoding stuff
>> and trying to upload that. I'm sure the movie crowd
>> has tried that, multiple times :-) If you stick with
>> variable length text, you should be OK.
>>
>>    Paul
>
> https://pastebin.com/d2uZYAAX
>
> Very handy tool.  Nice and simple.
>

And the application is called simple-scan, which is the best part :-)

Is it using the ADF to attempt a second page ?

Did you ask it to scan one page, or more than one page ?

The trouble with the log, is it never drops a thing
which is incriminating.

If the driver has a call-back, indicating the page is
complete, and there's some cleanup activity required,
maybe it's not happening.

When you scan your single sheet, do you lift the ADF,
and put the material right on the glass ? If so, the
ADF should sense you are not using it. There should be
a switch somewhere, that detects the ADF is in position.
If the ADF is out of position, it should not be
using its transport motors to load or move paper.

And you can't exactly unplug the ADF, because the
driver may be too stupid to deal with that corner case.

http://www.sane-project.org/sane-mfgs.html

http://www.sane-project.org/man/sane-hp.5.html

*******

GIMP can run a scanner, from the "Create" menu item.
See if your scanner appears there.

Paul

Re: error: symbol 'grub_calloc' not found

<tgbqg0$1dr18$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2844&group=alt.os.linux.ubuntu#2844

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: adam@no_thanks.com (Adam)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: error: symbol 'grub_calloc' not found
Date: Tue, 20 Sep 2022 00:35:26 -0700
Organization: A noiseless patient Spider
Lines: 119
Message-ID: <tgbqg0$1dr18$1@dont-email.me>
References: <tfrara$q5n$1@gioia.aioe.org> <tfruse$12o6$1@gioia.aioe.org>
<tft0ov$35n$1@gioia.aioe.org> <tft374$1b01$1@gioia.aioe.org>
<tftaoi$32tai$1@dont-email.me> <tfue88$aba$1@gioia.aioe.org>
<tfvcj7$3blp7$1@dont-email.me> <tg0hql$1n1a$1@gioia.aioe.org>
<tg1c6t$1tfl$1@gioia.aioe.org> <tg20oc$1m9s$1@gioia.aioe.org>
<tg2fd8$3tip5$1@dont-email.me> <tg32q3$9s9$1@gioia.aioe.org>
<tg5b98$881o$1@dont-email.me> <tg5ei5$25c$1@gioia.aioe.org>
<tg5p18$9cqs$1@dont-email.me> <tg7fjd$qhv$1@gioia.aioe.org>
<tg7h0f$1i2j$1@gioia.aioe.org> <tg7m56$l4f9$1@dont-email.me>
<tg7uer$1scm$1@gioia.aioe.org> <tg816e$134b$1@gioia.aioe.org>
<tg81p4$1al2$1@gioia.aioe.org> <tg832k$1s63$1@gioia.aioe.org>
<tg84te$onsl$1@dont-email.me> <tg87mc$1fu7$1@gioia.aioe.org>
<tg8jb6$ugs0$1@dont-email.me> <tg8sq8$10k7j$1@dont-email.me>
<tg8u3o$10mt7$1@dont-email.me> <tg962h$118u7$1@dont-email.me>
<tgb5fr$1camm$1@dont-email.me> <tgbddi$1ctq3$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 20 Sep 2022 07:35:28 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="4a5f21601dfc7e26f399aa06bb28b3ff";
logging-data="1502248"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xJrhi01+8BO573nOK/NNsogCXsj3KMe8="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.3.0
Cancel-Lock: sha1:unDU6iJRApK567U5bqDyuXmEu/o=
In-Reply-To: <tgbddi$1ctq3$1@dont-email.me>
 by: Adam - Tue, 20 Sep 2022 07:35 UTC

On 09/19/2022 08:52 PM, Paul wrote:
> On 9/19/2022 9:36 PM, Adam wrote:
>> On 09/19/2022 12:34 AM, Paul wrote:
>>> On 9/19/2022 1:18 AM, Adam wrote:
>>>
>>>>
>>>> Is there some place where I can upload the scan output ? I don't want to exceed my quota here too.
>>>>
>>>
>>> You're already using postimage for the pictures.
>>>
>>> It sounds like you have some text to upload.
>>>
>>> And the place for that is pastebin.com .
>>> The interface is on the main page.
>>>
>>> They also have a FAQ.
>>>
>>> https://pastebin.com/faq
>>>
>>> "20 pastes per day, 0.5MB max each, free"
>>>
>>> If you need more capability than that, they have
>>> a paid version of the service too.
>>>
>>> The URL of the returned paste, is the key to finding it.
>>> You can post the URL they define, to pass the item to others.
>>>
>>> I sometimes paste a bit of source in there, rather
>>> than put it in a posting.
>>>
>>> I have not tried to annoy them, by encoding stuff
>>> and trying to upload that. I'm sure the movie crowd
>>> has tried that, multiple times :-) If you stick with
>>> variable length text, you should be OK.
>>>
>>> Paul
>>
>> https://pastebin.com/d2uZYAAX
>>
>> Very handy tool. Nice and simple.
>>
>
> And the application is called simple-scan, which is the best part :-)
>
> Is it using the ADF to attempt a second page ?

ADF was unplugged to stop that clicking noise.
There is usually only one page to scan.

>
> Did you ask it to scan one page, or more than one page ?

I usually scan one page at a time. If there is more than one page to scan, I manually change the page to scan.

>
> The trouble with the log, is it never drops a thing
> which is incriminating.

Huh? What? Never drops a thing?

>
> If the driver has a call-back, indicating the page is
> complete, and there's some cleanup activity required,
> maybe it's not happening.

The scanner is dumb and doesn't know whether the last scan was the last page or not.

>
> When you scan your single sheet, do you lift the ADF,
> and put the material right on the glass ? If so, the

Yes, I manually put the page to scan on the glass.

> ADF should sense you are not using it. There should be

ADF is unplugged.

> a switch somewhere, that detects the ADF is in position.

Maybe that's what the Lock/Unlock latch was. I Unlocked it to
get rid of that clicking noise. Never really got good use of the ADF.

> If the ADF is out of position, it should not be
> using its transport motors to load or move paper.

ADF is unplugged. Waste of money. Expensive cover.

>
> And you can't exactly unplug the ADF, because the
> driver may be too stupid to deal with that corner case.
>
> http://www.sane-project.org/sane-mfgs.html
>
> http://www.sane-project.org/man/sane-hp.5.html
>
> *******
>
> GIMP can run a scanner, from the "Create" menu item.
> See if your scanner appears there.
>
> Paul

Yes, GIMP was my scan tool before Simple Scan, which is nice and simple and scans better.

Just made many failed attempts to scan using GIMP (Color, Gray, Halftone, etc.),
which is able to detect scanner since I am able to get to the Scan button.
Error popup message is...

"Error during read: Error during device I/O."

In Windows, HP scan software also failed. Same popup message as before.

Then, I got a scan again with Simple Scan...

Simple Scan Output - Photo (good), then Text (fail)
https://pastebin.com/0up58SjX
[Two consecutive scan attempts.]

Re: error: symbol 'grub_calloc' not found

<tgcmc3$1hqpm$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2849&group=alt.os.linux.ubuntu#2849

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: nospam@needed.invalid (Paul)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: error: symbol 'grub_calloc' not found
Date: Tue, 20 Sep 2022 11:31:15 -0400
Organization: A noiseless patient Spider
Lines: 202
Message-ID: <tgcmc3$1hqpm$1@dont-email.me>
References: <tfrara$q5n$1@gioia.aioe.org> <tfruse$12o6$1@gioia.aioe.org>
<tft0ov$35n$1@gioia.aioe.org> <tft374$1b01$1@gioia.aioe.org>
<tftaoi$32tai$1@dont-email.me> <tfue88$aba$1@gioia.aioe.org>
<tfvcj7$3blp7$1@dont-email.me> <tg0hql$1n1a$1@gioia.aioe.org>
<tg1c6t$1tfl$1@gioia.aioe.org> <tg20oc$1m9s$1@gioia.aioe.org>
<tg2fd8$3tip5$1@dont-email.me> <tg32q3$9s9$1@gioia.aioe.org>
<tg5b98$881o$1@dont-email.me> <tg5ei5$25c$1@gioia.aioe.org>
<tg5p18$9cqs$1@dont-email.me> <tg7fjd$qhv$1@gioia.aioe.org>
<tg7h0f$1i2j$1@gioia.aioe.org> <tg7m56$l4f9$1@dont-email.me>
<tg7uer$1scm$1@gioia.aioe.org> <tg816e$134b$1@gioia.aioe.org>
<tg81p4$1al2$1@gioia.aioe.org> <tg832k$1s63$1@gioia.aioe.org>
<tg84te$onsl$1@dont-email.me> <tg87mc$1fu7$1@gioia.aioe.org>
<tg8jb6$ugs0$1@dont-email.me> <tg8sq8$10k7j$1@dont-email.me>
<tg8u3o$10mt7$1@dont-email.me> <tg962h$118u7$1@dont-email.me>
<tgb5fr$1camm$1@dont-email.me> <tgbddi$1ctq3$1@dont-email.me>
<tgbqg0$1dr18$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 20 Sep 2022 15:31:15 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="5b2764ed6501827a5e34b4f19ec5fdb1";
logging-data="1633078"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+75ddrrF04o0DhwHz9cnYSkzqHLcbmrWQ="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:GPB0fgvu1fYrYDjZggtltQ24fu8=
Content-Language: en-US
In-Reply-To: <tgbqg0$1dr18$1@dont-email.me>
 by: Paul - Tue, 20 Sep 2022 15:31 UTC

On 9/20/2022 3:35 AM, Adam wrote:
> On 09/19/2022 08:52 PM, Paul wrote:
>> On 9/19/2022 9:36 PM, Adam wrote:
>>> On 09/19/2022 12:34 AM, Paul wrote:
>>>> On 9/19/2022 1:18 AM, Adam wrote:
>>>>
>>>>>
>>>>> Is there some place where I can upload the scan output ?  I don't want to exceed my quota here too.
>>>>>
>>>>
>>>> You're already using postimage for the pictures.
>>>>
>>>> It sounds like you have some text to upload.
>>>>
>>>> And the place for that is pastebin.com .
>>>> The interface is on the main page.
>>>>
>>>> They also have a FAQ.
>>>>
>>>> https://pastebin.com/faq
>>>>
>>>>    "20 pastes per day, 0.5MB max each, free"
>>>>
>>>> If you need more capability than that, they have
>>>> a paid version of the service too.
>>>>
>>>> The URL of the returned paste, is the key to finding it.
>>>> You can post the URL they define, to pass the item to others.
>>>>
>>>> I sometimes paste a bit of source in there, rather
>>>> than put it in a posting.
>>>>
>>>> I have not tried to annoy them, by encoding stuff
>>>> and trying to upload that. I'm sure the movie crowd
>>>> has tried that, multiple times :-) If you stick with
>>>> variable length text, you should be OK.
>>>>
>>>>    Paul
>>>
>>> https://pastebin.com/d2uZYAAX
>>>
>>> Very handy tool.  Nice and simple.
>>>
>>
>> And the application is called simple-scan, which is the best part :-)
>>
>> Is it using the ADF to attempt a second page ?
>
> ADF was unplugged to stop that clicking noise.
> There is usually only one page to scan.
>
>>
>> Did you ask it to scan one page, or more than one page ?
>
> I usually scan one page at a time.  If there is more than one page to scan, I manually change the page to scan.
>
>>
>> The trouble with the log, is it never drops a thing
>> which is incriminating.
>
> Huh?  What?  Never drops a thing?
>
>>
>> If the driver has a call-back, indicating the page is
>> complete, and there's some cleanup activity required,
>> maybe it's not happening.
>
> The scanner is dumb and doesn't know whether the last scan was the last page or not.
>
>>
>> When you scan your single sheet, do you lift the ADF,
>> and put the material right on the glass ? If so, the
>
> Yes, I manually put the page to scan on the glass.
>
>> ADF should sense you are not using it. There should be
>
> ADF is unplugged.
>
>> a switch somewhere, that detects the ADF is in position.
>
> Maybe that's what the Lock/Unlock latch was.  I Unlocked it to
> get rid of that clicking noise.  Never really got good use of the ADF.
>
>> If the ADF is out of position, it should not be
>> using its transport motors to load or move paper.
>
> ADF is unplugged.  Waste of money.  Expensive cover.
>
>>
>> And you can't exactly unplug the ADF, because the
>> driver may be too stupid to deal with that corner case.
>>
>> http://www.sane-project.org/sane-mfgs.html
>>
>>    http://www.sane-project.org/man/sane-hp.5.html
>>
>> *******
>>
>> GIMP can run a scanner, from the "Create" menu item.
>> See if your scanner appears there.
>>
>>    Paul
>
> Yes, GIMP was my scan tool before Simple Scan, which is nice and simple and scans better.
>
> Just made many failed attempts to scan using GIMP (Color, Gray, Halftone, etc.),
> which is able to detect scanner since I am able to get to the Scan button.
> Error popup message is...
>
> "Error during read: Error during device I/O."
>
> In Windows, HP scan software also failed.  Same popup message as before.
>
> Then, I got a scan again with Simple Scan...
>
> Simple Scan Output - Photo (good), then Text (fail)
> https://pastebin.com/0up58SjX
> [Two consecutive scan attempts.]
>

The code appears to be written in VALA (seems almost C++ like) and
translated to C code.

[+253.14s] DEBUG: scanner.vala:462: sane_control_option (4, SANE_ACTION_SET_VALUE, 150) -> (SANE_STATUS_GOOD, 150)
[+253.14s] CRITICAL: scanner_set_int_option: assertion '_tmp1_ == SANE_TYPE_INT' failed

Now, is that message fatal to the mission or not ? That's what I mean
by not putting information in the log, that a user can rely upon.

https://github.com/linuxmint/simple-scan/blob/master/src/simple-scan.c

struct _ScanPageInfo {
GTypeInstance parent_instance;
volatile int ref_count;
ScanPageInfoPrivate * priv;
gint width;
gint height;
gint depth;
gint n_channels;
gdouble dpi; <=== double precision float
gchar* device;
};

struct _ScanOptions {
GTypeInstance parent_instance;
volatile int ref_count;
ScanOptionsPrivate * priv;
gint dpi; <=== device likely uses integer
ScanMode scan_mode;
gint depth;
ScanType type;
gint paper_width;
gint paper_height;
gint brightness;
gint contrast;
};

https://github.com/linuxmint/simple-scan/blob/master/src/scanner.vala

461 var status = Sane.control_option (handle, option_index, Sane.Action.SET_VALUE, &v, null);
462 debug ("sane_control_option (%d, SANE_ACTION_SET_VALUE, %d) -> (%s, %d)", (int) option_index, value, Sane.status_to_string (status), (int) v);
463 result = (int) v;

private void set_fixed_or_int_option (Sane.Handle handle, Sane.OptionDescriptor option, Sane.Int option_index, double value, out double result)
514 set_int_option (handle, option, option_index, (int) Math.round (value), out r);
^^^^^

That's casting the float to an int, which should have worked.

https://valadoc.org/glib-2.0/GLib.Math.round.html

What bothers me about this GLib thing, is there's an attempt to cast to (int)
that seems to be getting ignored somehow. Then there's an assertion when
some piece of code decides the thing passed was still "double". Presumably
this is known at one of the two "compile times".

I mean, you can smell trouble, when some of the other modules have
instances of (double) DPI and (int) DPI. And you know at some point,
type conversion has to happen. And you've got this strange language,
and you have no idea how "robust" this crap is. Erg.

Wanna know why your scanner doesn't work. Read the first paragraph
of how to make sausage.

https://en.wikipedia.org/wiki/Vala_%28programming_language%29

If it was written in C++, I wouldn't be nearly as concerned. As C++
has had a lot wider audience, and lots more eyes applied to it over
the years. I have no idea what the track record of GLib is like.

*******

I like your evidence-gathering, as it means the thing is still usable.
But how to crawl out of this mess ?

https://dyn.manpages.debian.org/testing/sane/xscanimage.1.en.html

https://dyn.manpages.debian.org/testing/xsane/xsane.1.en.html

Paul

Re: error: symbol 'grub_calloc' not found

<tgd500$1j5kq$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2853&group=alt.os.linux.ubuntu#2853

  copy link   Newsgroups: alt.os.linux.ubuntu
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: adam@no_thanks.com (Adam)
Newsgroups: alt.os.linux.ubuntu
Subject: Re: error: symbol 'grub_calloc' not found
Date: Tue, 20 Sep 2022 12:40:47 -0700
Organization: A noiseless patient Spider
Lines: 212
Message-ID: <tgd500$1j5kq$1@dont-email.me>
References: <tfrara$q5n$1@gioia.aioe.org> <tfruse$12o6$1@gioia.aioe.org>
<tft0ov$35n$1@gioia.aioe.org> <tft374$1b01$1@gioia.aioe.org>
<tftaoi$32tai$1@dont-email.me> <tfue88$aba$1@gioia.aioe.org>
<tfvcj7$3blp7$1@dont-email.me> <tg0hql$1n1a$1@gioia.aioe.org>
<tg1c6t$1tfl$1@gioia.aioe.org> <tg20oc$1m9s$1@gioia.aioe.org>
<tg2fd8$3tip5$1@dont-email.me> <tg32q3$9s9$1@gioia.aioe.org>
<tg5b98$881o$1@dont-email.me> <tg5ei5$25c$1@gioia.aioe.org>
<tg5p18$9cqs$1@dont-email.me> <tg7fjd$qhv$1@gioia.aioe.org>
<tg7h0f$1i2j$1@gioia.aioe.org> <tg7m56$l4f9$1@dont-email.me>
<tg7uer$1scm$1@gioia.aioe.org> <tg816e$134b$1@gioia.aioe.org>
<tg81p4$1al2$1@gioia.aioe.org> <tg832k$1s63$1@gioia.aioe.org>
<tg84te$onsl$1@dont-email.me> <tg87mc$1fu7$1@gioia.aioe.org>
<tg8jb6$ugs0$1@dont-email.me> <tg8sq8$10k7j$1@dont-email.me>
<tg8u3o$10mt7$1@dont-email.me> <tg962h$118u7$1@dont-email.me>
<tgb5fr$1camm$1@dont-email.me> <tgbddi$1ctq3$1@dont-email.me>
<tgbqg0$1dr18$1@dont-email.me> <tgcmc3$1hqpm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 20 Sep 2022 19:40:48 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="ddf8195439785df4c0cba91f1bdbd366";
logging-data="1676954"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/7jrvtUPQ2A/g1N+3YQS03DiGsc373RYQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.3.0
Cancel-Lock: sha1:Erl9aOk33SEDA5wll8IR9e82EvM=
In-Reply-To: <tgcmc3$1hqpm$1@dont-email.me>
 by: Adam - Tue, 20 Sep 2022 19:40 UTC

On 09/20/2022 08:31 AM, Paul wrote:
> On 9/20/2022 3:35 AM, Adam wrote:
>> On 09/19/2022 08:52 PM, Paul wrote:
>>> On 9/19/2022 9:36 PM, Adam wrote:
>>>> On 09/19/2022 12:34 AM, Paul wrote:
>>>>> On 9/19/2022 1:18 AM, Adam wrote:
>>>>>
>>>>>>
>>>>>> Is there some place where I can upload the scan output ? I don't want to exceed my quota here too.
>>>>>>
>>>>>
>>>>> You're already using postimage for the pictures.
>>>>>
>>>>> It sounds like you have some text to upload.
>>>>>
>>>>> And the place for that is pastebin.com .
>>>>> The interface is on the main page.
>>>>>
>>>>> They also have a FAQ.
>>>>>
>>>>> https://pastebin.com/faq
>>>>>
>>>>> "20 pastes per day, 0.5MB max each, free"
>>>>>
>>>>> If you need more capability than that, they have
>>>>> a paid version of the service too.
>>>>>
>>>>> The URL of the returned paste, is the key to finding it.
>>>>> You can post the URL they define, to pass the item to others.
>>>>>
>>>>> I sometimes paste a bit of source in there, rather
>>>>> than put it in a posting.
>>>>>
>>>>> I have not tried to annoy them, by encoding stuff
>>>>> and trying to upload that. I'm sure the movie crowd
>>>>> has tried that, multiple times :-) If you stick with
>>>>> variable length text, you should be OK.
>>>>>
>>>>> Paul
>>>>
>>>> https://pastebin.com/d2uZYAAX
>>>>
>>>> Very handy tool. Nice and simple.
>>>>
>>>
>>> And the application is called simple-scan, which is the best part :-)
>>>
>>> Is it using the ADF to attempt a second page ?
>>
>> ADF was unplugged to stop that clicking noise.
>> There is usually only one page to scan.
>>
>>>
>>> Did you ask it to scan one page, or more than one page ?
>>
>> I usually scan one page at a time. If there is more than one page to scan, I manually change the page to scan.
>>
>>>
>>> The trouble with the log, is it never drops a thing
>>> which is incriminating.
>>
>> Huh? What? Never drops a thing?
>>
>>>
>>> If the driver has a call-back, indicating the page is
>>> complete, and there's some cleanup activity required,
>>> maybe it's not happening.
>>
>> The scanner is dumb and doesn't know whether the last scan was the last page or not.
>>
>>>
>>> When you scan your single sheet, do you lift the ADF,
>>> and put the material right on the glass ? If so, the
>>
>> Yes, I manually put the page to scan on the glass.
>>
>>> ADF should sense you are not using it. There should be
>>
>> ADF is unplugged.
>>
>>> a switch somewhere, that detects the ADF is in position.
>>
>> Maybe that's what the Lock/Unlock latch was. I Unlocked it to
>> get rid of that clicking noise. Never really got good use of the ADF.
>>
>>> If the ADF is out of position, it should not be
>>> using its transport motors to load or move paper.
>>
>> ADF is unplugged. Waste of money. Expensive cover.
>>
>>>
>>> And you can't exactly unplug the ADF, because the
>>> driver may be too stupid to deal with that corner case.
>>>
>>> http://www.sane-project.org/sane-mfgs.html
>>>
>>> http://www.sane-project.org/man/sane-hp.5.html
>>>
>>> *******
>>>
>>> GIMP can run a scanner, from the "Create" menu item.
>>> See if your scanner appears there.
>>>
>>> Paul
>>
>> Yes, GIMP was my scan tool before Simple Scan, which is nice and simple and scans better.
>>
>> Just made many failed attempts to scan using GIMP (Color, Gray, Halftone, etc.),
>> which is able to detect scanner since I am able to get to the Scan button.
>> Error popup message is...
>>
>> "Error during read: Error during device I/O."
>>
>> In Windows, HP scan software also failed. Same popup message as before.
>>
>> Then, I got a scan again with Simple Scan...
>>
>> Simple Scan Output - Photo (good), then Text (fail)
>> https://pastebin.com/0up58SjX
>> [Two consecutive scan attempts.]
>>
>
> The code appears to be written in VALA (seems almost C++ like) and
> translated to C code.
>
> [+253.14s] DEBUG: scanner.vala:462: sane_control_option (4, SANE_ACTION_SET_VALUE, 150) -> (SANE_STATUS_GOOD, 150)
> [+253.14s] CRITICAL: scanner_set_int_option: assertion '_tmp1_ == SANE_TYPE_INT' failed
>
> Now, is that message fatal to the mission or not ? That's what I mean
> by not putting information in the log, that a user can rely upon.
>
> https://github.com/linuxmint/simple-scan/blob/master/src/simple-scan.c
>
> struct _ScanPageInfo {
> GTypeInstance parent_instance;
> volatile int ref_count;
> ScanPageInfoPrivate * priv;
> gint width;
> gint height;
> gint depth;
> gint n_channels;
> gdouble dpi; <=== double precision float
> gchar* device;
> };
>
> struct _ScanOptions {
> GTypeInstance parent_instance;
> volatile int ref_count;
> ScanOptionsPrivate * priv;
> gint dpi; <=== device likely uses integer
> ScanMode scan_mode;
> gint depth;
> ScanType type;
> gint paper_width;
> gint paper_height;
> gint brightness;
> gint contrast;
> };
>
> https://github.com/linuxmint/simple-scan/blob/master/src/scanner.vala
>
> 461 var status = Sane.control_option (handle, option_index, Sane.Action.SET_VALUE, &v, null);
> 462 debug ("sane_control_option (%d, SANE_ACTION_SET_VALUE, %d) -> (%s, %d)", (int) option_index, value, Sane.status_to_string (status), (int) v);
> 463 result = (int) v;
>
> private void set_fixed_or_int_option (Sane.Handle handle, Sane.OptionDescriptor option, Sane.Int option_index, double value, out double result)
> 514 set_int_option (handle, option, option_index, (int) Math.round (value), out r);
> ^^^^^
>
> That's casting the float to an int, which should have worked.
>
> https://valadoc.org/glib-2.0/GLib.Math.round.html
>
> What bothers me about this GLib thing, is there's an attempt to cast to (int)
> that seems to be getting ignored somehow. Then there's an assertion when
> some piece of code decides the thing passed was still "double". Presumably
> this is known at one of the two "compile times".
>
> I mean, you can smell trouble, when some of the other modules have
> instances of (double) DPI and (int) DPI. And you know at some point,
> type conversion has to happen. And you've got this strange language,
> and you have no idea how "robust" this crap is. Erg.
>
> Wanna know why your scanner doesn't work. Read the first paragraph
> of how to make sausage.
>
> https://en.wikipedia.org/wiki/Vala_%28programming_language%29
>
> If it was written in C++, I wouldn't be nearly as concerned. As C++
> has had a lot wider audience, and lots more eyes applied to it over
> the years. I have no idea what the track record of GLib is like.
>
> *******
>
> I like your evidence-gathering, as it means the thing is still usable.
> But how to crawl out of this mess ?

Cameras work great for my purposes. :-)

Slap a page against the wall/refrigerator and snap the pic.
Much less frustration and a whole lot faster.
Time to retire the HP ScanJet 6300C. Thanks, Guru Paul !!

Scanners are probably more suitable for businesses nowadays anyways.

>
> https://dyn.manpages.debian.org/testing/sane/xscanimage.1.en.html
>
> https://dyn.manpages.debian.org/testing/xsane/xsane.1.en.html
>
> Paul
>

Pages:123
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor