You are here

FreeBSD crash: "Object reference not set to an instance of an object"

30 posts / 0 new
Last post
ferdi
Offline
Joined: 2 years
Last seen: 2 years
FreeBSD crash: "Object reference not set to an instance of an object"

3.18, 3.2, and newest 3.2.2 beta
mono 5.10, 5.20 and 6.8:

[ ] WebGrab+Plus/w MDB & REX Postprocess -- version V3.2.2.0
[ ]
[ ] Jan van Straaten
[ ] Francis De Paemeleere
[ ]
[ ] thanks to Paul Weterings and all the contributing users
[ ] --------------------------------------------------------------------------------
[ ]
[ ] Job started at 25/12/2021 15:29:20
[ Debug ]
[ Debug ] Running on: Unix 13.0.5.0
[ Debug ] Environment: 4.0.30319.42000
[ Debug ] Mono version: 6.8.0.123 (tarball Sat Dec 18 08:12:42 UTC 2021)
[ Debug ]
[ Debug ] Loading timezone data
[ Debug ] Embedded timezones source: timezone.timezonesdata.txt
[ Debug ] Reading config file: /video/webgrab/wg++/./WebGrab++.config.xml
[ Info ] Checking License ..
[ Info ] For License request/update data, see WGLicense.log.txt
[ ] Job finished at 25/12/2021 15:29:21 done in 0s
[Critical]
Object reference not set to an instance of an object
[Critical]
at  . ..ctor (System.String ) [0x01381] in :0
at  .―.  (System.String[] ) [0x00351] in :0
[Critical] Unhandled Exception
[Critical] For detailed info, see log file /video/webgrab/wg++/./WebGrab++.log.txt
[Critical] Execution stopped

AND please fix your web layout. Not everyone has 2 meter monitors and wants to read 2 meter text lines. Or use a magnifier.

ferdi
Offline
Joined: 2 years
Last seen: 2 years

Ok it works as root, but this is not expected behaviour. The user owns the whole .wg++ dir.
What permission is missing?

By the way. Why is this a hidden directory starting with "."?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

just a guess but did u chmod +x webgrab exe?
it needs write permission for robot.txt files,ect

ferdi
Offline
Joined: 2 years
Last seen: 2 years

of course everything is a+x in bin and everything else is at least u+wr.
What and where is robot.txt?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

in ur wg config directory,should be a robots folder.its not there during install but is created on first run.

ferdi
Offline
Joined: 2 years
Last seen: 2 years

Yes and everything is owned by me.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

very strange results.
usually i would say its a ini or webgrab exe problem but you said it works when run as root which makes me think its a permission problem but u seem to have checked all that already.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

what does you license.log say?
its in ur webgrab config directory.

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 18 hours

Are you running as user or root ? Also update to 3.2.2.5 https://github.com/SilentButeo2/webgrabplus-siteinipack/blob/master/eval...

ferdi
Offline
Joined: 2 years
Last seen: 2 years

Yes, does it need any file outside its own directory?
Has mono some restrictions in network access or anything?

As user it crashes, when I run it as root it works.

Same result with V3.2.2.5

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

i assume user has permission to mono binary(read,execute)
i cant see wht it wouldnt by default

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 18 hours

let's start from beginning...
change config as here https://github.com/SilentButeo2/webgrabplus-siteinipack/blob/master/site...
add your license line user + password and add channels.
delete your license files under /root/.local/share/WebGrab+Plus/License/*
Then run as root and set in config update (see update mode license line in sample config)
then it should work.

ferdi
Offline
Joined: 2 years
Last seen: 2 years

Of course I can run mono. And it works with other exes

Ok I have this file ~/.local/share/WebGrab+Plus/License/wglocal.lic for root but not for my user, only the directory, which is owned by me.

No it does NOT help copying the license file.

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 18 hours

i meant remove .lic from that folder.....then run update f in license line...

ferdi
Offline
Joined: 2 years
Last seen: 2 years

I don't understand. I think I should rather avoid updating the license file ... but how.

I have no wg user name. As root it works nevertheless.

It doesn't matter what I set for license or if I remove the file, it crashes anyway.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

you cant.
license update is not performed every run,its every so many days(something like 14 i think)
wg checks the date in the lic.log file to see if its needs to be done.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

another wild guess but did u check the .wg++ folder permissions?
see here..
https://forums.freebsd.org/threads/permissions-and-users-help.73924/

ferdi
Offline
Joined: 2 years
Last seen: 2 years

.wg++ is drwxr-xr-x and owned by me
It does not have to be in my home dir, right?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

out of sugestions but it definetly seems to be a permission problem somewhere.
did u try giving the user admin(or root) permission just to see if it will run the same as it does as root user.

ferdi
Offline
Joined: 2 years
Last seen: 2 years

user is in wheel and operator group.
+s for mono wouldn't change anything

I can even update it from a linux vm which has the same user and mounted it via nfs.

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 18 hours
ferdi wrote:

I don't understand. I think I should rather avoid updating the license file ... but how.
I have no wg user name. As root it works nevertheless.
It doesn't matter what I set for license or if I remove the file, it crashes anyway.

Can you post your config hiding mail and password?

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

very strange behavior.it must be something todo with bds itself?

ferdi
Offline
Joined: 2 years
Last seen: 2 years

I CAN'T:

<?xml version="1.0"?>

guide.xml

rex
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36 Edg/79.0.309.71

To force a license update; replace this text with the letter f
on
4
3
l

ORF 2

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

upload the file(edit out ur usewr info as mat8861 said above).
as u can see the forums dont show it correctly.

ferdi
Offline
Joined: 2 years
Last seen: 2 years

...

Attachments: 
Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

your config looks fine,i assume in your license like u removed "To force a license update; replace this text with the letter f"
and replaced it with f(to force a update,dont leave it as f).either blank is fine after a lic. update.
either way this will not cause a crash as it still works as root.
it must b something to do with bsd file system.
u said u checked all permissions but anyone other that root(i assume) has permission problems it seems.

Blackbear199
Offline
Blackbear199's picture
WG++ Team memberDonator
Joined: 9 years
Last seen: 1 hour

just to test i run webgrab on my nas(its fedore based firmware not bsd) and am usually signed in as root.
i created a user with no root permission and ssh to my server and it ran fine as the user.

mat8861
Offline
WG++ Team memberDonator
Joined: 9 years
Last seen: 18 hours
ferdi wrote:

Of course I can run mono. And it works with other exes
Ok I have this file ~/.local/share/WebGrab+Plus/License/wglocal.lic for root but not for my user, only the directory, which is owned by me.
No it does NOT help copying the license file.

you should have it under your user home mine is /home/ubuntu/.local/share/WebGrab+Plus/License where ubuntu is the user, delete the .lic files, because old version like 3.1 are not compatible with new license system. Then do a force run see if it appears, it should work.

ferdi
Offline
Joined: 2 years
Last seen: 2 years

it's not the license file

poussun
Offline
Donator
Joined: 9 years
Last seen: 3 months

You must run

sudo ./run.sh

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl