[go-nuts] x/mobile stack traces on Android?

2024-08-27 Thread Brien Colwell
I’m using gomobile to compile an Android aar. The issue I have is when there is a crash in the native code, I don’t see any stack trace. Crash reports from the Google Console are equally useless. If anyone has stack traces figured on on gomobile, I’d love your help to learn how. My build flags

[go-nuts] gomobile - no stack traces on Android

2024-02-29 Thread Brien Colwell
With gomobile, I’m not able to see stack traces for errors in the native library. For example: ``` 02-29 00:50:16.021 10940 0 E Go : panic: runtime error: invalid memory address or nil pointer dereference 02-29 00:50:16.021 10940 0 E Go : [signal SIGSEGV: segmentation violatio

Re: [go-nuts] Equality of interface of an empty struct - why?

2024-02-27 Thread Brien Colwell
I think the surprising part is that the comparison result can change for the same values because of the assumption that pointers never change. This is implied by the spec but easy to miss. "Pointers to distinct zero-size variables may or may not be equal." "Pointers to distinct zero-size variabl

Re: [go-nuts] Equality of interface of an empty struct - why?

2024-02-26 Thread Brien Colwell
>> Note that there are two distinct variables involved (a and b). You’re right. I misread this. > On Feb 26, 2024, at 1:15 PM, Axel Wagner > wrote: > > On Mon, Feb 26, 2024 at 7:25 PM Brien Colwell <mailto:xcolw...@gmail.com>> wrote: >> Interesting. That s

Re: [go-nuts] Equality of interface of an empty struct - why?

2024-02-26 Thread Brien Colwell
c main() { > if (p == q) { > p, q = &a, &b > println(p == q) // false > } > } > > On Thursday, February 22, 2024 at 6:55:49 PM UTC+8 Brien Colwell wrote: >> I'm confused by this output. It appears that the interface of two diffe

Re: [go-nuts] Re: Equality of interface of an empty struct - why?

2024-02-26 Thread brien colwell
wrote:Absolutely a bug.On Thursday, February 22, 2024 at 6:55:49 PM UTC+8 Brien Colwell wrote:I'm confused by this output. It appears that the interface of two different pointers to an empty struct are equal. In all other cases, interface equality seems to be the pointer equality. What's

[go-nuts] Equality of interface of an empty struct - why?

2024-02-22 Thread Brien Colwell
I'm confused by this output. It appears that the interface of two different pointers to an empty struct are equal. In all other cases, interface equality seems to be the pointer equality. What's going on in the empty struct case? ``` package main import "fmt" type Foo struct { } func (self *

[go-nuts] gomobile Android GLSurfaceView.Renderer in go?

2023-05-09 Thread Brien Colwell
I'm looking for an example or pointer on how to link an Android GLSurfaceView.Renderer to an implementation in gomobile. Thank you! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it,