Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always undefined #78

Closed
timenox opened this issue Jul 27, 2020 · 3 comments
Closed

always undefined #78

timenox opened this issue Jul 27, 2020 · 3 comments

Comments

@timenox
Copy link

timenox commented Jul 27, 2020

I am just a newbie on electron , wanted to make this work for me

My renderer.js

const activeWin = require('active-win').promises;
console.log(activeWin)

shows : undefined in console

thats all , how should i get the current window name

i run " npm start" and it shows my electron application window
inside developer tools i see my console

while keeping the app open , when i open browser , the console still shows undefined

I know i am missing something

any help would be appreciated , thank you

@timenox
Copy link
Author

timenox commented Jul 29, 2020

i am using

const activeWin = require('active-win');

activeWin().finally(result => {
console.log(result);

});

and getting below error

`

Fatal error in , line 0

ignored

#FailureMessage Object: 0000006654EFCF90Backtrace:
uv_mutex_unlock [0x00007FF7C1605EB2+2391474]
uv_mutex_unlock [0x00007FF7C1594CF2+1928178]
GetHandleVerifier [0x00007FF7C2293C77+5191127]
IsSandboxedProcess [0x00007FF7C1AF5B69+529081]
v8::Platform::SystemClockTimeMillis [0x00007FF7C0282E78+391960]
v8::ArrayBuffer::New [0x00007FF7BFFFA281+497]
v8::ArrayBuffer::New [0x00007FF7BFFFA158+200]
node::Buffer::New [0x00007FF7C1D3679F+575]
node::Buffer::New [0x00007FF7C1D36642+226]
napi_create_external_buffer [0x00007FF7C2952813+211]
anonymous namespace'::WrapPointer [0x00007FFF47022D50+128] (E:\project-electron\electron-quick-start\node_modules\ref-napi\src\binding.cc:106) anonymous namespace'::ReinterpretBufferUntilZeros [0x00007FFF470243AF+287] (E:\project-electron\electron-quick-start\node_modules\ref-napi\src\binding.cc:423)
Napi::details::WrapCallback<<lambda_4b130013be4a466940e6fe08d32cda83> > [0x00007FFF47027D80+64] (E:\project-electron\electron-quick-start\node_modules\ref-napi\node_modules\node-addon-api\napi-inl.h:76)
Napi::details::CallbackData<Napi::Value (__cdecl*)(Napi::CallbackInfo const &),Napi::Value>::Wrapper [0x00007FFF47027CC8+40] (E:\project-electron\electron-quick-start\node_modules\ref-napi\node_modules\node-addon-api\napi-inl.h:99)
napi_create_function [0x00007FF7C342C06F+879]
v8::CFunction::CFunction [0x00007FF7C003A03B+206939]
v8::CFunction::CFunction [0x00007FF7C00394C8+204008]
v8::CFunction::CFunction [0x00007FF7C0038A23+201283]
v8::CFunction::CFunction [0x00007FF7C0038647+200295]
v8_inspector::V8StackTraceId::ToString [0x00007FF7C097CF1C+2985500]
v8_inspector::V8StackTraceId::ToString [0x00007FF7C0910115+2539541]
v8_inspector::V8StackTraceId::ToString [0x00007FF7C090983F+2512703]
v8_inspector::V8StackTraceId::ToString [0x00007FF7C0910115+2539541]
v8_inspector::V8StackTraceId::ToString [0x00007FF7C0910115+2539541]
v8_inspector::V8StackTraceId::ToString [0x00007FF7C0910115+2539541]
v8_inspector::V8StackTraceId::ToString [0x00007FF7C0910115+2539541]
v8_inspector::V8StackTraceId::ToString [0x00007FF7C090DBDE+2530014]
v8_inspector::V8StackTraceId::ToString [0x00007FF7C090D7CC+2528972]
v8::Unwinder::PCIsInV8 [0x00007FF7C00F7C6F+3551]
v8::Unwinder::PCIsInV8 [0x00007FF7C00F6FFA+362]
v8::Script::Run [0x00007FF7BFFD7E14+580]
GetHandleVerifier [0x00007FF7C25E4A26+8668038]
GetHandleVerifier [0x00007FF7C25DDDC5+8640293]
GetHandleVerifier [0x00007FF7C25DEC0B+8643947]
GetHandleVerifier [0x00007FF7C25DEE48+8644520]
node::AsyncResource::CallbackScope::CallbackScope [0x00007FF7C371DFCE+3056510]
node::AsyncResource::CallbackScope::CallbackScope [0x00007FF7C3CF7B13+9191107]
node::AsyncResource::CallbackScope::CallbackScope [0x00007FF7C3CF7965+9190677]
node::AsyncResource::CallbackScope::CallbackScope [0x00007FF7C387BF4E+4489982]
node::AsyncResource::CallbackScope::CallbackScope [0x00007FF7C387BECB+4489851]
node::AsyncResource::CallbackScope::CallbackScope [0x00007FF7C387CD37+4493543]
uv_fs_poll_getpath [0x00007FF7C2F51B95+6169797]
uv_mutex_unlock [0x00007FF7C15D0431+2171697]
uv_gettimeofday [0x00007FF7C1D96369+247321]
uv_gettimeofday [0x00007FF7C1D960F0+246688]
uv_gettimeofday [0x00007FF7C1D8849C+190284]
uv_gettimeofday [0x00007FF7C1D96978+248872]
uv_mutex_unlock [0x00007FF7C15BC01A+2088730]
IsSandboxedProcess [0x00007FF7C1C398C8+1855512]
v8_inspector::V8StackTraceId::ToString [0x00007FF7C0B54C31+4918065]
IsSandboxedProcess [0x00007FF7C1AC06B3+310787]
v8::ResourceConstraints::ResourceConstraints [0x00007FF7BFF284D6+1386342]
Ordinal0 [0x00007FF7BF48140B+5131]
node::AsyncResource::CallbackScope::CallbackScope [0x00007FF7C48F76E2+21772946]
BaseThreadInitThunk [0x00007FFF5C197BD4+20]
RtlUserThreadStart [0x00007FFF5CD4CE51+33]
`

@timenox timenox closed this as completed Aug 9, 2020
@timenox
Copy link
Author

timenox commented Aug 9, 2020

issue resolved ...

@dougpagani
Copy link

@cruisemiraz can you share what resolved it for you? Otherwise you're looking like denvercoder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants