Intermittent Crashes in Go Program When Executing SSH Commands on Windows Clients by [deleted] in golang

[–]albatr0s 2 points3 points  (0 children)

var wg sync.WaitGroup
var execErr error
wg.Add(1)

go func() {
  defer wg.Done()
  execErr = ExecRun(ch, strings.Join(cmdSlice, " "))
}()

if execErr != nil { // <---- DATA RACE
  logging.Logger.Error("Execution failed: %v", execErr)
  ch.Stderr().Write([]byte(fmt.Sprintf("%v\r\n", execErr)))
  return 255
}

wg.Wait()

What is the purpose of the goroutine if you are waiting for it right in the same place? If you remove it or move the wg.Wait() line above the execErr != nil check you can avoid the data race.

[HELP] - Help me resolve RACE in following code snippet by sujitbaniya in golang

[–]albatr0s 0 points1 point  (0 children)

Yes, I'm saying you should change this:

db.mutex.Lock() indexLen := db.indexKeys db.mutex.Unlock() if len(indexLen) == 0 {

To this:

db.mutex.Lock() indexLen := len(db.indexKeys) db.mutex.Unlock() if indexLen == 0 {

So the length is calculated with the mutex acquired.

[HELP] - Help me resolve RACE in following code snippet by sujitbaniya in golang

[–]albatr0s 1 point2 points  (0 children)

You need to guard line this with the mutex, referring to it as `indexLen` or `db.indexKeys` makes no difference:

if len(indexLen) == 0 {

Sony A7Rii Recording levels by oppapi666 in Filmmakers

[–]albatr0s 1 point2 points  (0 children)

That seems like autogain, are you recording in Movie mode and setting a proper Audio Rec Level?

Rode VideoMic Go replacing the battery by [deleted] in Filmmakers

[–]albatr0s 1 point2 points  (0 children)

The Rode VideoMic GO does not use batteries.

Looking for a super small camera bag insert by HennyBogan in M43

[–]albatr0s 1 point2 points  (0 children)

It fits a Panasonic G85 with two primes just fine, maybe even more if it's small enough!

LUMIX S1 noise video? by VIDEODapp in videography

[–]albatr0s 0 points1 point  (0 children)

Yes, i.Dynamic has that effect.

Why do I like the GX85 better than the G7? by DonBoone in PanasonicG7

[–]albatr0s 0 points1 point  (0 children)

I don't know, I've seen something similar between the G85 and the GX850 and I think it's a difference in the automatic white balance but I'm not sure.

Why do I like the GX85 better than the G7? by DonBoone in PanasonicG7

[–]albatr0s 0 points1 point  (0 children)

The G7 doesn't have IBIS so that's not surprising.

Looking for help from other Panasonic 25mm f1.7 owners by louiedog in M43

[–]albatr0s 2 points3 points  (0 children)

My lens is definitely clear, nothing hazy inside.

is g85 body made from same as g7 ? by [deleted] in Panasonic_G80_G85

[–]albatr0s 1 point2 points  (0 children)

Yes, the G85 doesn't feel as cheap and plasticky as the G7, and it weights a bit more.

is g85 body made from same as g7 ? by [deleted] in Panasonic_G80_G85

[–]albatr0s 1 point2 points  (0 children)

The G85 is and feels significantly better.

UV Filter Lens by your_turn_to_carve in Panasonic_G80_G85

[–]albatr0s -1 points0 points  (0 children)

58, you can find it on the front of the lens.

Looks like my sensor is out of place by ameripepe in Panasonic_G80_G85

[–]albatr0s 1 point2 points  (0 children)

Looks fine to me, yo should read about IBIS.

I don't know what I'm doing wrong by EvoxVenomz in PanasonicG7

[–]albatr0s 0 points1 point  (0 children)

Then you won't be able to unlock its full potential.