Slack API revokes an access token after some time when running the code in Lambda

Hi, I'm implementing a single-organization Slack app that receives data from a workflow form and creates some resources in AWS. To accomplish this, my app has a custom function that the code listens to, similar to this:
# imports ...
app = App(
    # Get it from Settings > Basic Information > App Credentials > Signing Secret
    signing_secret=os.environ["SLACK_SIGNING_SECRET"],
    # Get it from Settings > Install App
    token=os.environ["SLACK_BOT_TOKEN"],
    # This setting is a must for AWS Lambda
    process_before_response=True,
)

@app.function("run_create_sso_entra_request")
def handle_create_sso_entra_request(ack: Ack, inputs: dict, say: Say, complete: Complete, fail: Fail):
    ack()
    logger.info(inputs)
    channel_id = inputs['channel_id']
    thread_ts = None
     try:
        entra_request = EntraRequest(inputs)
        logger.info(entra_request)
        blocks = build_blocks_entra(entra_request)
       # send message to channel
        thread_ts = say(channel=channel_id, blocks = blocks)['ts']
      # create resources using entra request
      # aws stuff ....
      ....
      # this is not sent :(
       say(channel=channel_id, text=f"Request completed", thread_ts=thread_ts)
       complete()
     except Exception as e:
       .....

# Redirect logins to AWS Lambda
SlackRequestHandler.clear_all_log_handlers()
logging.basicConfig(format="%(asctime)s %(message)s", level=logging.DEBUG)
logger = logging.getLogger()

def handler(event, context):
    # Adapter for Slack to run on AWS Lambda
    slack_event = SlackEvent(event)
    if slack_event.body and slack_event.body.type == 'url_verification':
            return {
                "challenge": slack_event.body.challenge
            }
    slack_handler = SlackRequestHandler(app=app)
    return slack_handler.handle(event, context)

My app works locally, however when deploying it to Lambda, the Slack API revokes the access token after the AWS resource creation, resulting in the second message being ignored
024-05-07T14:08:24.829+09:00	File "/tmp/sls-py-req/slack_sdk/web/client.py", line 2564, in chat_postMessage
2024-05-07T14:08:24.829+09:00
return self.api_call("chat.postMessage", json=kwargs)

return self.api_call("chat.postMessage", json=kwargs)
2024-05-07T14:08:24.829+09:00	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-07T14:08:24.829+09:00	File "/tmp/sls-py-req/slack_sdk/web/base_client.py", line 155, in api_call
2024-05-07T14:08:24.829+09:00	return self._sync_send(api_url=api_url, req_args=req_args)
2024-05-07T14:08:24.829+09:00	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-07T14:08:24.829+09:00	File "/tmp/sls-py-req/slack_sdk/web/base_client.py", line 186, in _sync_send
2024-05-07T14:08:24.829+09:00	return self._urllib_api_call(
2024-05-07T14:08:24.829+09:00	^^^^^^^^^^^^^^^^^^^^^^
2024-05-07T14:08:24.829+09:00	File "/tmp/sls-py-req/slack_sdk/web/base_client.py", line 317, in _urllib_api_call
2024-05-07T14:08:24.829+09:00	).validate()
2024-05-07T14:08:24.829+09:00	^^^^^^^^^^
2024-05-07T14:08:24.829+09:00	File "/tmp/sls-py-req/slack_sdk/web/slack_response.py", line 199, in validate
2024-05-07T14:08:24.829+09:00	raise e.SlackApiError(message=msg, response=self)
2024-05-07T14:08:24.829+09:00	slack_sdk.errors.SlackApiError: The request to the Slack API failed. (url: https://www.slack.com/api/chat.postMessage)
2024-05-07T14:08:24.829+09:00	The server responded with: {'ok': False, 'error': 'token_revoked'}

Furthermore, if I remove the AWS processing, both messages are sent to the channel, so I suspect the problem lies on the expiration time for the access token. My questions are:

Why would this happen?
How can I control the expiration time of the access tokens?
Would implementing token rotation solve the problem? If so, why?

Reproducible in:
The slack_bolt version
slack-bolt 1.19.0rc1
Python runtime version
3.11.0
(Paste the output of python --version)
OS info
arm64 (lambda)

Hi, @jota12x! Thank you for submitting this question 😄
We consulted internally about how long tokens delivered in the function_executed event payload last for and this is what they said re: Why would this happen?:

The tokens expire 15 minutes after being issued and are revoked immediately when the step is completed, so whichever of those comes first. In most cases the step only takes a few seconds and then we immediately revoke the token.

To answer the other questions:

How can I control the expiration time of the access tokens?
As far as I know, there is no way to manipulate this with the APIs or SDKs - this is preset based on internal code.

Would implementing token rotation solve the problem? If so, why?
This scenario seems edge case-y, so I'm unsure if token rotation would solve this at all. Based on the token expiration criteria mentioned above where the tokens either expire 15 mins after being issued OR are revoked when the step is completed, I would first suggest looking into if complete() is being called anywhere prior to the say() function - it seems like something is signaling  function completion within the resource certain that ends up skipping the remaining body of the function.

I hope this helps - let me know if you have further questions! 🙌

@jota12x It does seems like something in the lambda function is running too long - could it be that it takes a while to actually initialize and start the Lambda function with its dependencies?
I recommend checking your code with these examples to make sure that it aligns with how you're calling your function.

By the way, I ran my app in Socket mode, and it works as expected. Is there any difference for the token's handling in Socket mode? 🤔

It could have something to do with Socket Mode requiring an app token. I'm not 100% sure on this though, but you can learn more about the app token vs. bot token here.

@hello-ashleyintech Thank you for the resources. I continued testing and realized that the token is revoked if the Lambda runs for more than one second. Maybe is related to this doc .

When building workflows using functions, there is a 60 second timeout for a deployed function and a 15 second timeout for a locally-run function.

So, is it possible to run lazy code inside a custom function or workflow step? 🤔 From what I checked, the documentation only refers to commands.

I made my code work by implementing it as a command instead. I don't know what's wrong with custom functions yet, but will take a look in my free time.

Any look on it?


Link compiler errors in Visual Studio to relevant docs page

On the above interface, the NuGet error messages link directly to the relevant docs page, where as the CS and IDE errors instead link to a Bing search, where the docs page often ends up several results down.
Could the CS/IDE ones also link to the docs page? I can't see any difference in the meta data between the files for NU1101 and CS0116, so is this something that needs to be changed outside of the content?

Yeah, I've noticed that too @ChrisMaddock and not sure who made that change. @BillWagner @Pilchie  any ideas on who to ping about this?

I'd start with @jinujoseph She may know.

I believe this needs to be broken down into 2 separate work items for IDE and compiler diagnostics.

Compiler diagnostic help links: This should be a pretty trivial change to update this method to populate the map with entries for each compiler diagnostic ID and corresponding help link. All other infrastructure is in place to automatically light up this help link once this map is populated. I think this should be an issue filed on Roslyn repo and assigned to compiler team.

IDE diagnostics: This is a much bigger work item as we don't have dedicated docs pages for each IDE diagnostic ID. So the work here is to create a dedicated location in docs pages where we want to document these and then create one dedicated documentation page for each IDE diagnostic ID. Additionally, we need to then update the analyzer code for all IDE analyzer to have the help link URI so reported diagnostics can navigate to that page. I believe @sharwell had a tracking Roslyn bug for this work on IDE side, but I cannot seem to find it. This would obviously need a much bigger documentation push, but would be useful for customers.

Great, thanks @mavasani!
I only mentioned the IDE errors, as I thought there were already docs pages for them. If not, the search seems like the right behaviour.
When I’m at a desktop, I’ll have a look at the Roslyn code and see if this is something I can contribute. Thanks for the pointers!

Hey @BillWagner, @mairaw - can I have your thoughts about how to go about this, please?
Following @mavasani's lead - I'd like to add direct links to the docs pages for the C# compiler errors.
Regarding those compiler errors that we don't have docs pages for yet, I'm thinking they should ideally link to this page. What I don't want to do however, is hardcode that in the Roslyn - so that every time someone adds a new compiler error page, they have to also update Roslyn.
I'm thinking instead of setting up Roslyn to link to pages of the format /dotnet/csharp/language-reference/compiler-messages/cs{ERR_NUM} - and then setting up redirects for all the errors that don't have their own pages yet. This would of course add a bunch of new entires to the redirect file, but mean that adding/removing pages was entirely within the control of the content team.
What would you think to this approach? 🙂

Let me discuss this with @BillWagner and get back to you!
Just for context, the way it used to work before is that the Visual Studio IDE would call the F1 service URL (I'll need to get an older version of VS to test exactly what it looked like but it would be something similar to this):
https://msdn.microsoft.com/query/dev16.query?appId=Dev16IDEF1&l=EN-US&k=k(CS{ERR_NUM});k(DevLang-csharp)&rd=true
e.g.
https://msdn.microsoft.com/query/dev16.query?appId=Dev16IDEF1&l=EN-US&k=k(CS1002);k(DevLang-csharp)&rd=true
The sorry page is already hooked up with specific error codes that don't have a dedicated page (look at the metadata on the page to see it)
e.g. https://msdn.microsoft.com/query/dev16.query?appId=Dev16IDEF1&l=EN-US&k=k(CS4030);k(DevLang-csharp)&rd=true
Maintaining the codes in that specific page instead of using redirects seem like it would be an easier task. I don't have context into why it was changed from F1 to Bing, but I bet they had customer feedback about the old experience not being useful by landing on the sorry page.

Sounds good, thanks Maira. 😊


v2: clarify that unicode uses utf-32 encoding

In data type encoding does not specify the unicode encoding. It appears that this is using UTF-32 (inherited from numpy unicode datatypes). Unfortunately this seems to be not clearly documented in the  numpy dtype description as well, but inspection of the serialized data shows that it's UTF-32 encoded:
import numpy
print(numpy.dtype("U1").itemsize)  # prints 4

(and I have also validated by decoding zarr unicode chunks manually).
For supporting zarr unicode data in other languages this information is important, so it should be stated more explicitly in the spec.

Ran into this today... glad to find this issue!

Is this a spec issue or a python impl issue. I would assume the spec specifies utf-8

I see. Should this be changed to be explicitly utf-8 or perhaps to include
non-utf8 encodings, should a string be defined as a sequence of 8-bit bytes.

I wonder how many non-python zarr implementations adhere to using utf-32?

Not sure how many other implementations even support it?  A fixed-length sequence of utf-32-enocded code points seems unlikely to be particularly useful as a data type.

https://github.com/zarr-developers/zarr-specs/pull/135/files#diff-6b08b9e843756eb493a5d6ad9817cb5aea38e09d80d1b84ddac2c5f3e37a246dR69 is the likely location for addressing this in v3. On the v2 front, @constantinpape, I assume our best next step is to get a simple test in zarr_implementations? If basically all implementations vary, it will be tricky to specify anything in the v2 spec.


[fix][broker] Fix broken build caused by conflict between #17195 and #16605

Motivation
master branch is broken.

#17195 changed the method signature that #16605 depended upon

Modifications

pass null to new argument introduced by #17195
[x] doc-not-needed

/pulsarbot run-failure-checks


Use 'Transitions' in the genesis file to change Mining Beneficiary and/or Block reward in IBFT2

Assumes network-level block reward and mining beneficiary has already been complete for IBFT2.
Extend the transitions section of the Genesis file to allow the mining beneficiary and/or the block reward to be changed at any block.
This will mean the "Transitions" will need to be applied to an existing ProtocolSchedule by:

Inserting a new milestone at the specified block (but otherwise identical to the preceding milestone), and * modify the existing behaviour of all latter milestones with the change specified in the transition.

Closed by #1977


HS-217 Implement helm install from URL

Please update the make help to indicate the new target of 'make helm-package'. Also, where will the helm package tgz file reside so users can pull it without having to 'git clone'?

This branch was messed up somehow so the change (24d081b) was committed directly to the main branch.


Handle Self::Type in trait definitions when referring to own associated type

It was implemented for other generic parameters for the trait, but not for Self.
(Last one off my recursive solver branch :smile: )

bors r+


ci: use reusable workflows and shared renovate config

Summary
Update GitHub Actions workflows to use Hypera Development's shared workflows.
Changes

Use reusable workflow files from HyperaDev/actions
Use shared Renovate bot config base

Checklist

[x] I acknowledge and agree to the terms of Developer's Certificate of Origin 1.1.
[x] All contributed code can be distributed under the terms of the MIT License.
[x] I have checked the "Allow edit from maintainers" option.
[ ] I have added appropriate tests and documentation for my changes.

Requires https://github.com/HyperaDev/actions/pull/7


project roles: after save, view is not updated

when creating roles on a project, after clicking save, the role view is not updated correctly:

zitadel is based on an eventstore, so its possible, that the read models are not up to date,
we include an refresh button on list components, that its possible to reload


preprocessing.py is deleting too many tshegs

Sometimes tshegs are deleted in preprocessing when they shouldn't be. Example from otdo:
མདས་རྔུལ་ཕས་ཕོག
is normalised like this with a missing tsheg after mdas:
མདསརྔུལ་པས་ཕོག

Fixed.


⚠ BeyondHD has degraded performance

In 90d2ce4, BeyondHD ($BHD) experienced degraded performance:

HTTP code: 200
Response time: 1250 ms

Resolved: BeyondHD performance has improved in ab5d05e.


lower BLEU

Thanks for your great work! I have downloaded the trained model and evaluated on csen model. However I got 22.70 and 23.58 on 'dev' and 'test1' respectively which is lower than the paper (about 0.6). I have no idea what causes the issue, do I need to train the model further?

Hi @SwordYork, that is a bit weird. is it the bi-char2char model? what's the model number? is it 1505000?

Hi @SwordYork, I just doubled-checked by decoding the trained model for CS-EN and computing the BLEU score. Two things:

I uploaded the wrong bi-char2char model for CS-EN. Apologies. The model number should be 1505000, not 785000 (which is the version you find when you download & untar the ball). With this model, I confirm that I got 23.38 BLEU on dev and 24.08 BLEU on test1 (as reported in the paper).

Please download the correct model from here. Will shortly update the entire 6.0GB tarball to include this one not the 785000 model.

I also took the wrong CS-EN model (785000 one, the version included in the tarball) and computed BLEU scores for the development and the test1 set, and I'm getting different BLEU scores from you. I'm getting 22.85 BLEU for dev and 23.38 BLEU for test1. So I'm suspecting you might be using a different reference file when computing BLEU? You should be using newstest2013-src.en.tok for dev and newstest2014-csen-src.en.tok for test1 respectively.

Please let me know whether you managed to reproduce the results with the instruction above.
Cheers
Jason

Thanks, @jasonleeinf . I'm using the same reference file, maybe different version of theano or cuda that causes the different BLEU.
I have implemented another fully character NMT, however fully RNN based. Could I compare the BLEU scores when both trained after 785000 updates? I think it is too costly to train for 1500000.

The CS-EN results we report are obtained from that particular model (1505000), so you should compare your results with that number. We stopped training when the validation BLEU score stopped improving, maybe you could do the same instead of fixing the number of updates for your model?
The CS-EN sentences are on average much shorter than the other language pairs, hence the CS-EN model is much quicker to train.

FI-EN as well? That's really weird... What's your CUDA/theano version?

I got BLEU = 13.40, 46.0/18.5/8.7/4.4 (BP=1.000, ratio=1.014, hyp_len=32952, ref_len=32494)  which is similar to the Figure 2 in the paper. I think such a big difference could not caused by version.

I'm guessing this is FI-EN? dev or test2? Did you train the bi-char2char model yourself? and did you change any of the hyperparameters?

Yes, it's FI-EN and tested on dev. I just test on your trained bi-char2char model. However, it matches the result in Figure 2.

Figure 2 is plotted with exponential smoothing for better interpretability. You should get the same numbers from Table 5 (14.18 for dev, 13.10 for test2). I'll be more than happy to examine your translation output if you could send them to<EMAIL_ADDRESS>

I have sent it to you. I notice that it generates several empty sentences, maybe it is the problem.

Thanks! I'll get back to you by tomorrow

Hi @SwordYork, I decoded FI-EN Dev from scratch using the pre-trained model (260000), and it gives me the same result: BLEU = 14.18, 47.0/19.2/9.3/4.8 (BP=1.000, ratio=1.005, hyp_len=32667, ref_len=32494). Please see my translation output here .
I also compared my system output with yours. And there are a couple of weird things I noticed.

My system output and yours look completely different, not just a few lines. So either we're using a different model to decode from (which I don't think is the case, as we're both using the same 260000 model) or we're using different source files.

Like you mentioned, your system output contains several completely empty sentences. This never happens with any of my models.

I have one question for you. When you run translate.py, did you provide an argument for -source? Did you give any additional arguments apart from that? It'd be great if you could tell me the exact command you ran to translate.
Thanks!

I didn't pass an argument for source, just use which. I also found that the decode speed is much faster than the paper, is it related to the beamwidth? Here is my command:
python2 translate/translate_char2char.py -model /home/york/Program/c2c/models/bi-char2char/fi_en/one-multiscale-conv-four-hw-gru-12345678-200-200-250-250-300-300-300-300-55-pool3-512-128-False.npz -translate fi_en -saveto fi_en_t
The two translated files have similar content, so it can't be different source files.
I'm using Theano '0.8.2.dev-RELEASE' and CUDA 7.5, I will test on the last CUDA tomorrow.

You should add -which dev and use -model .../one-multiscale-conv-four-hw-gru-12345678-200-200-250-250-300-300-300-300-55-pool3-512-128-False.grads.260000.npz instead of ....False.npz. The first one is the best performing model.

Isn't dev the default? I have misunderstood that grads represents gradient. I will test it tomorrow. Thanks!

Okay I just tried decoding FI-EN Dev using the non-optimal model ...False.npz that you used, and got the same output as you: BLEU = 13.40, 46.0/18.5/8.7/4.4 (BP=1.000, ratio=1.014, hyp_len=32952, ref_len=32494). This is the wrong model, sorry about the confusion.
Will add a note in the README to use the .grads model. Thanks a lot for pointing this out! Will also update the CS-EN bi-char2char model in the tarball.
Please let me know if you can reproduce the results with the optimal model tomorrow! Thanks.

@jasonleeinf I have tested on the optimal model, and obtain the same result. Thanks!
BLEU = 14.18, 47.0/19.2/9.3/4.8 (BP=1.000, ratio=1.005, hyp_len=32667, ref_len=32494)

Thanks for letting me know!


remove k8s FsInfo dependency

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Codecov Report
Base: 33.32% // Head: 33.32% // No change to project coverage :thumbsup:

Coverage data is based on head (8d58ea5) compared to base (cd8482f).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #196   +/-   ##
=======================================
  Coverage   33.32%   33.32%
=======================================
  Files          40       40
  Lines        6098     6098
=======================================
  Hits         2032     2032
  Misses       3778     3778
  Partials      288      288

Flag
Coverage Δ

unittests
33.32% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


BUG: Missing SID for app: VETEXT in Prod

Description
Logs show that VETEXT_SID is not found:
Missing SID for app: VETEXT
Every time a push notification is sent we check if the task definition has set the mobile app registry sids (VETEXT_SID and VA_FLAGSHIP_APP_SID). Add the VeText prod appSid to our task definitions and optimize out the work with MobileAppRegistry and MobileApp.
Note especially that we want to initialize VETEXT_SID and VA_FLAGSHIP_APP_SID only once, not for every call.

[ ] Ticket is understood, and QA has been contacted (if the ticket has a QA label).
[ ] This work is added to the sprint review slide deck (key win bullet point and demo slide)

Steps to Reproduce

Unclear how to reproduce, but we can see in the logs that something is trying to use the missing SID.

Search Datadog Prod logs for Missing SID for app: VETEXT and observe the number of entries

Workaround
Unknown
Impact/Urgency

Unknown
Expected Behavior

[ ] TDD
[ ] Obtain the appSid from Vetext and populate it in the Prod task definition (see Staging task definition as a reference poont)
[ ] When the app is initialized, we set the VETEXT_SID without calling it for every instance it is needed.
[ ] Missing VETEXT_SID from the task definition (environment) should not be catastrophic.

QA Considerations

Additional Info & Resources

Hey team! Please add your planning poker estimate with Zenhub @coreycarvalho @cris-oddball @EvanParish @k-macmillan @kalbfled @MackHalliday @mchlwellman

Friday

Started updating testing and changing code

Monday

Test on DEV
PR likely?

MobileAppRegistry is already a singleton pattern.

Today

Tried to move MobileAppRegistry into mobile_app/init.py, issues with passing in current_app.logger so MobileAppRegistry can have logging.
Tried moving MobileAppRegistry in the app/init.py create_app method. Works with the health status route and related tests. Running into issues with unit tests for push notifications. At the moment, I'm not sure if its a mocking issues or how the request module is initialized in app/init.py

Mack
11:08 AM
I could not get that MobileAppRegistery class to work within mobile_app/init.py because the logger was not accessible.
I'm trying to get the MobileAppRegistery class to initialize in the app/init.py > create_app method instead so the class would have access to logging.
It's starting to feel a little unhinged.
Does this look right?
https://github.com/department-of-veterans-affairs/notification-api/pull/2087/files (edited)
11:08
Specifically - https://github.com/department-of-veterans-affairs/notification-api/pull/2087/files#diff-9cec7b11237bc29d77a439e81c[…]c003d8e8855731eb6bc130b5a8ce602
Michael Wellman
11:10 AM
I think so, but I don't think you need line 59, just instantiate in create_app
:eyes:
1
:+1:
1
Mack
11:11 AM
Note: This is causing errors in the unit tests for Push notifications that I'm currently working thru. I think it's an issue with how the client is setup for the testing (It's setup without a logger).
EDIT: I hoping this is just a unit testing issue and not an indication of a larger issue with how clients are passed to the Push Notifications feature. (edited)
David Kalbfleisch
11:12 AM
On line 59, you need the "()" to create an instance; not assign the class itself.

Thread
Mack
3 minutes ago
So I tried that - The MobileAppRegistery app, as least how I currently have it setup, needs an instance of Logger. Logger is not available until it's in the create_app method

11:14
I think I'll do what
@Michael Wellman
suggested and just move the whole thing into the create_app method.
David Kalbfleisch
2 minutes ago
In that case, set it to None on line 59, and initialize it in create_app using the "globals" keyword.
:+1:
1
Mack
2 minutes ago
I'll try that.

Today

Issues with initializing MobileAppRegistry as a singleton in app/__init__.py > create_app.  MobileAppRegistry needs a logger. The MobileAppRegistry instance the health check status endpoint has proper access to the logger. BUT it appears the MobileAppRegistry is either unavailable or does not have access to the current_app.logger in the PUSH notification features.
Talked to David about issue and made plans to pair, but meeting was pushed back to focus on Kyle's PR which took most of my afternoon.
David and I scheduled our meeting for 9:30 AM tomorrow morning.

Tomorrow

Meet with David
Figure out issue with PUSH notification feature and MobileAppRegistry class
Get VEText_SID for PROD
Submit PR?

@cris-oddball and I discussed that additional QA work is no longer necessary for this ticket after the most recent change in the objective.  There is no SID for Vetext in Production.

@cris-oddball noticed these logs upon deploy.

I spent sometime investigating the logs, and they only appear once per deploy. As far as I can tell - the two features that use the updated MobileAppRegistry class (/_status and /v2/notifications/push) are not impacted by whatever this is. Both appear to be getting the appSIDs as expected (Example - I just sent a PUSH and the SID was included) And they are not initializing the MobileAppRegistry to do so (I check the logs for the Initializing MobileAppRegistry log I added. ).
We have decided since there appears to be no impact on functionality and the MobileAppRegistry is behaving like a Singleton as expected - We will close this ticket and make a new ticket for the unexpected logging behavior.
Slack thread on issue.


Fix ApplicationData::LoadID

Calling ApplicationData::LoadID before finished_parsing_manifest_
is set to true cause DCHECK to fail.
GetManifestData is expected to be used by client of this class
but not internally.

I have missed the thread_checker_.CalledOnValidThread() value. I assume this means that "getter" can be used in same thread or after parsing in other threads. So it seems ok.


Switching Testimonial Box

🛠 Fixes Issue (#703 )

👨💻 Changes proposed

according to #747
✅ Check List (Check all the applicable boxes)

[x] My code doesn't break any part of the project (Zero Octave-Javascript-Projects).
[x] This PR does not contain plagiarized content.
[x] My Addition/Changes works properly and matches the overall repo pattern.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

📷 Screenshots

@Astrodevil @NOiR-07 kindly check it now , updated as mention in #747


TMAP ERR: attempt to redefine line axis TIME doesnt match CDF file

Reported by Remik Ziemlinski on 11 Dec 2006 16:26 UTC
This error didn't occur with FERRET v5.70 (IRIX 6.5) but it fails with FERRET
v6.01 (ia64 and i686).  Input files will be attached separately.
! The commands are:
set mem/size=100
use "a.nc"
use "b.nc"
save/clobber/file="out.nc" olr[swdn_toad=2
! The error message:
LISTing to file out.nc
**TMAP ERR: attempt to redefine line
axis TIME doesnt match CDF file
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1478

Comment by<EMAIL_ADDRESS>on 11 Dec 2006 18:15 UTC
Further experiment: This works correctly...
set mem/size=100
use "a.nc"
use "b.nc"
save/clobber/file="out.nc" olr[swdn_toa[d=2](d=1]
save/append/file="out.nc")

Comment by<EMAIL_ADDRESS>on 12 Dec 2006 16:40 UTC
This is realted to the behavior described in bug 1461. The time axes in the
input files are named with lowercase letters "time". When written to the file,
TIME has been upcased, as is the Ferret default.  When writing the second
variable, Ferret checks whether the axis has already been written to the file,
and whether the axis is consistent.  Here the upcasing was not done, so the axis
"time" was not recognized as the same as the axis "TIME" in the file.
Fixed in cd_isit_recdim.F

Attachment from<EMAIL_ADDRESS>on 11 Dec 2006 16:37 UTC
input.tar.gz
REPLACE THIS TEXT WITH UPLOADED FILE ./attachments/TRAC_1478_GIT_753/input.tar.gz


[HELP WANTED 2] Streetpass List crash testers please!

I'm looking for kartminer7 users whose attempts ALWAYS lead to a crash at the Streetpass List screen showing up, and who have the digital mk7 (maybe physical too if you would be cool with sacrificing your savegame). With and without luma cfw is fine.
My goal is to test a theory I have that mk7's regular savegame (not the extdata) may be the root of these Streetpass crashes.
 Let me know the results here. If you have cfw, please post crash dumps here (if the process name is menu, count that as a successful attempt and no post needed).

Trying to get cfw on original 3ds and having this issue. Would like to keep my MK7 save data, but I suppose I can wipe it. Any way I can help without wiping as of right now?

Trying to get cfw on original 3ds and having this issue. Would like to keep my MK7 save data, but I suppose I can wipe it. Any way I can help without wiping as of right now? Physical copy, crashing on Street pass menu. Changing language as in the 3ds.hacks guide causes the Street pass fake Mii's to be selectable and causes you to go through the character, map, and kart selection.

This thread is only for people who can delete their saves. I mainly am looking for digital game owners since they can safely backup their save (although physical w/cfw could do the same). There is no pressure whatsoever for you to delete your save if you consider it valuable. There will be others showing up later to help out that have the digital game, so no need to nuke your save.

I'm helping someone who has a Japanese 3DS and it's always crashing on Streetpass Mii list. We deleted the Savegame but still same crashing.Badly we can't share crash data

Thanks for that info, was afraid of that.
Can you do me another favor? Have this user check Data Management -> Streetpass Management -> mk7 icon  and tell me how many "Data Transmissions" there are.

I will tell her thank you
Yes I'm Jan :)

Ok, one more thing then I'm out of ideas again. Have them deactivate this streetpass at that screen you've shown. Reinstall the exploit with the computer, then go through the steps again on the 3ds, but after selecting Mario Kart Channel, decline to reactivate Streetpass when the prompt shows up, then proceed pressing A until the exploit activates at Start Race: Go.

Hey @zoogie I've been using this exploit with my physical cartridge (I don't care about the save state) and it's crashing before I can even select player/friend in streetpass list. Maybe I should use a different method because this may not be a kartminer problem, it could be a game problem. The thing is, I can't find a problem like this ever reported anywhere on the internet. So I've decided to come here before I try a different method. Hope this helps and hope you have an answer.

Hey @zoogie I've been using this exploit with my physical cartridge (I don't care about the save state) and it's crashing before I can even select player/friend in streetpass list. Maybe I should use a different method because this may not be a kartminer problem, it could be a game problem. The thing is, I can't find a problem like this ever reported anywhere on the internet. So I've decided to come here before I try a different method. Hope this helps and hope you have an answer.

These early crashes I have no idea how to fix because I have no means of debugging them. None of my 3ds's have this issue and I'm just grasping at straws trying to guess what may be the hidden variable that makes the exploit fail on these other machines.
The best alternative to just guessing is having someone with cfw and mk7 who can reproduce the early crash and send me luma crash dumps. Wish me luck with that one since most of these folks have no personal incentive to volunteer their time helping me given they already have their machine hacked.

Hey @zoogie im having it crash at the streetpass list (japenese old 3ds xl) and I can help out with whatever youd need. I have it physically but I dont really value the save at all so I can help out if needed.

I'm looking for kartminer7 users whose attempts ALWAYS lead to a crash at the Streetpass List screen showing up, and who have the digital mk7 (maybe physical too if you would be cool with sacrificing your savegame). With and without luma cfw is fine.
My goal is to test a theory I have that mk7's regular savegame (not the extdata) may be the root of these Streetpass crashes.
 Let me know the results here. If you have cfw, please post crash dumps here (if the process name is menu, count that as a successful attempt and no post needed).

alright, i just deleted the save data and went to restart this process and now it crashes on the streetpass screen even without the exploit so i have no idea why that is. im gonna test for a little bit and report findings, sorry in advance if nothing ends up being useful.

Thanks, and good luck. Also if it helps, I have an American model.

I've now used every method you've brought up (deleting save data and restarting process, as well as deactivating streetpass, reinstalling the exploit, and then not turning streetpass back on to no avail I'm honestly not sure what the problem is, but I'm going to try this on a New Nintendo 3ds (as this one isnt hacked) and see if I can reproduce this crash to get some crash logs

crashes on the streetpass screen even without the exploit so i have no idea why that is

That's because the delete save function should only delete the regular save (inside the cart), and extdata (sd card /w exploit) should be left alone by the deletion. It's still important to reinstall the extdata save (.bat scripts) after you delete the reg save, and then test.
Also looking forward to your new3ds test. Thanks so much for helping!

That's because the delete save function should only delete the regular save (inside the cart), and extdata (sd card /w exploit) should be left alone by the deletion.
yeah i had wiped my sd card i wanted to start from scratch, i just started the entire process over (from enabling streetpass in the first place) and it continued crashing so I was a bit confused but I think I figured it out. Anyways Ill have the crash logs up tomorrow if I can replicate this and hopefully it'll give you some better insight, I'm also still gonna try and see if I can get it to work on the old 3ds and will give updates here if I get it to work.

Maybe @DanteS76 can hack the New3DS first and hack the old version with Kartdlphax. And try the KartMiner7 after that on the now modded Japan normal console again and send the crash log to @zoogie

yeah i was thinking of doing that as well

NOTICE: I've changed the topic. I just need general crash testing now, and no more regular savegame sacrifices.
The crashes I'm looking for only need "Process name: MARIOKAR" as a requirement, not "Process name: menu"
For anybody still working on the previous category, go ahead and complete it and report it if you can! Thanks!

Maybe @DanteS76 can hack the New3DS first and hack the old version with Kartdlphax. And try the KartMiner7 after that on the now modded Japan normal console again and send the crash log to @zoogie

the source 3ds i was planning on using seems to have an issue with its SD card reader, so i'm going to try and install custom firmware on the old 3ds using the flashcart method and getting the crash logs that way

Here is a Crashdump of a Japanese 3DS with Crash on MiiList
Dmp.zip
Hope this does help

Did this help you with the crashing Problem?

Did this help you with the crashing Problem?

It will in time I'm sure, and thank you, but this week I'm trying to finish up a long overdue, different exploit and get it out. And dealing with a personal issue at the same time. I'll come back to this.


Feature Request: Chat with AI about your code

I hope vscode-openai will have a feature similar to twinny where you can highlight your code and chat with the AI using the code as context.

Hi @sXperfect
Good suggestion. Technically the context menu works on selected code already. I will add a send to chat feature

Going to close as I'm working with a few SLM on this functionality. The requirements for request in LLM make this very expensive to run. Will post back with more info soon


[Question]

Hi, I have some question about how the backup/restore works.
If I have two different cluster and longhorn in those two cluster uses the same s3 endpoint, is it possible to migrate volumes from one cluster to the other via the s3 backup?

You can create a new longhorn volume from the backup. Set the Backup Target on your second cluster and Restore from a Backup.

You can also create a disaster recovery volume to keep it in sync with your volume in the master cluster, in case the main cluster went down. The volume in the backup cluster won't be usable until it's activated manually in the event that the main cluster is down. See https://longhorn.io/docs/1.0.2/snapshots-and-backups/setup-disaster-recovery-volumes/ and a demo of DR volume at https://www.youtube.com/watch?v=zJY2uxLtwUk

Thanks for all the answers. I tried these instructions and it works really well!
The main point missing from my earlier attempt is because I need to configure the same bucket as the backup target. Since it's not possible for me to do that, I copy the backup folder into the target bucket and Longhorn can recognize that.
I also really like how painless it is to restore. A couple of click to choose the backup. Then there's option to generate the same PV/PVC using the same backup. After that, I just use the same k8s manifest to generate the service and it works straight away.
We can close the issue then.


fix(types): narrow dispatched events without detail to use null instead of any

Currently, dispatched events without a detail type are typed as CustomEvent<any>. Although this isn't wrong, we can narrow the e.detail type to be null.
- "event-name": CustomEvent<any>;
+ "event-name": CustomEvent<null>;

Fixed in v0.64.0.


Initial oranda setup

oranda is a new tool by axo, which can generate pretty websites for projects, based on info from Cargo.toml and GitHub. Here is the blog post where they explain it: https://blog.axo.dev/2023/06/oranda.
I think it would be nice to replace this page with the generated website. It contains a link to the docs, funding and changelog. It also renders the mdbook documentation with the same style as the rest of the website. It can also show installation options, but currently, that feature is not yet flexible enough for us. We could open some issues on their repo to discuss what we would need (they're really friendly).
We might need to either clean up the README or make a separate markdown document as landing page to make this even more useful, but I think this is a nice start.
I chose the light theme to start with, but we can customize the CSS any way we want.
You can test the website yourself by installing oranda:
cargo install oranda --locked --profile=dist

and then running it in dev mode in the root of the project:
oranda dev

Click here to see screenshots of the generated website

Yeah I noticed that too. I think I'll have to write a separate homepage that's not based on the README to make that work.

much better, thanks

I guess you will have to do something to update ?
https://uutils.github.io/

Yes, but like I said in some other issue. I can't work on my laptop at the moment. I'll pick it back up once it's repaired.


Fix npe2 import according to 0.3.0 deprecation warning

Description
npe2 0.3.0 added a deprecation warning when importing from module file instead from the top-level public modules, and the warning makes our test collection fail.
Fixes #4366

Some other issue related to the npe2 changes appears to be blocking tests (mypy error). Should it be added here? It seems that all it needs is to remove # type: ignore in this line here?
https://github.com/napari/napari/blob/c9b4ba538c95a84cfbce122f507ed25ac950cd32/napari/plugins/_npe2.py#L50

The conda windows build appears to be broken everywhere. Unless someone objects in the next few hours I'll merge this.


Minimized 100% CPU

What happens?
When the app is minimized, it consumes entire CPU core. Looks like some UI check without a timer - when in foreground or overlayed by another window, everything is fine
How to reproduce

Start app
Minimize it
Observe one core fully occupied in Task Manager

What should happen
Minimizing shouldn't affect CPU usage
Version
Headphones Client: v.1.0.2, Aug 20 Release
OS: Windows 10 20H2, latest stable

I see. This is probably caused one way or another by imGUI. It tends to cause things like this since it constantly re-renders the window. I'll check it out and report

This was caused by DX11 not vsyncing when the window is minimized. It has no buffer to write to, so it just gives up and doesn't wait. You can either build from master in a few minutes when I push the fix, or wait a bit for the next release.
See https://github.com/ocornut/imgui/issues/2496


Getting vsphere plugin error "plugin not found"

On 11/10/17, 10:45 AM, "Brian Teichner"<EMAIL_ADDRESS>wrote:
We are currently using the vSphere Docker Volume Service, and are seeing the following errors in the Docker daemon logs:

level=error msg="plugin not found"

level=info msg="time=\"2017-10-30T18:09:00Z\" level=warning msg=\"Failed to load config file /etc/docker-volume-vsphere.conf: open /etc/docker-volume-vsphere.conf: no such file or directory\" " plugin=a98951b18d9ca31ce722cfae7a2fd09df674bc4ee8aafdc828f35b15cbebb139

I’ve tried creating a default config file but still see this error for “plugin not found” in the logs. We are using version 0.17 of the plugin. Is there a way to correct this?

Thanks,

Brian Teichner
Sr. Systems Engineer
On Assignment

/CC @bteichner

 Version:      17.06.2-ee-5
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   508bb92
 Built:        Thu Nov  2 00:47:40 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.06.2-ee-5
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   508bb92
 Built:        Thu Nov  2 00:49:00 2017
 OS/Arch:      linux/amd64```

Nov 13 21:14:35 ucp1 dockerd[19099]: time="2017-11-13T21:14:35Z" level=info msg="time=\"2017-11-13T21:14:35Z\" level=warning msg=\"Failed to load config file /etc/docker-volume-vsphere.conf: open /etc/docker-volume-vsphere.conf: no such file or directory\" " plugin=397aae7d9f3e9e55a5ee10e3937bf655c7ca5506a9142ca75baa56f10b153fd8
Nov 13 21:14:35 ucp1 kernel: br0: port 1(vxlan0) entered forwarding state
Nov 13 21:14:35 ucp1 kernel: br0: port 2(veth0) entered forwarding state
Nov 13 21:14:35 ucp1 kernel: docker_gwbridge: port 1(veth522f44d) entered forwarding state
Nov 13 21:14:35 ucp1 kernel: docker0: port 7(veth742dc66) entered forwarding state
Nov 13 21:14:35 ucp1 kernel: docker0: port 10(veth88100f7) entered forwarding state
Nov 13 21:14:37 ucp1 sudo[20704]:  vagrant : TTY=pts/0 ; PWD=/home/vagrant ; USER=root ; COMMAND=/bin/docker plugin ls
Nov 13 21:14:39 ucp1 dockerd[19099]: time="2017-11-13T21:14:39.389314235Z" level=info msg="agent: found node update" module="node/agent" node.id=ovmvntpdutflp4z78qel8a5n5
Nov 13 21:14:40 ucp1 kernel: docker0: port 11(veth0a0a05a) entered forwarding state
Nov 13 21:14:59 ucp1 dockerd[19099]: time="2017-11-13T21:14:59.319677237Z" level=error msg="plugin not found"```

This is the limitation from docker, adding an entry to FAQ section through #1994.


wait for forked streams to end before resolving promise

Hopefully this will help w/ AppVeyor failures.

npm install issue: https://github.com/npm/npm/issues/9299

closing in favor of #206


Create my state command

This will get the location of the user and send the /state_name command results.
Refer: https://core.telegram.org/bots#location-and-number

I implemented this and successfully received the location from the user.
But the received location object contains only longitude and latitude and I am not aware of how to get the name of the state using the coordinates only.
I will try to find something for the same, and if you know something about it please do share 😬

Many free API services are available for that like this.

Yes, we can take that.

Many free API services are available for that like this.

Oh, thanks I will use this 😄

Yes, we can take that.

💯 💯


[12.1] ISPN-13546 Fix caching realm to use explicit security providers

https://issues.redhat.com/browse/ISPN-13546

merged! thanks @tristantarrant !


chore(ci): release main

:robot: I have created a release beep boop
tailwind: 0.8.0
0.8.0 (2024-09-27)
Features

add tabs for react (#228) (8f676ee)

ds: 0.8.0
0.8.0 (2024-09-27)
Features

add global html text-area component (#231) (0990cba)
add html select component (#236) (3ecf012)
add logo assets in the html global library (#230) (a4ce0a3)
add tabs to global html (#238) (8d8cb9b)
html checkbox component (#227) (915b8ac)
implement react checkbox component (#233) (aa18178)

Bug Fixes

footer header fixes (#235) (3af4f19)
set default font family and colour (#239) (aeaeda0)

ds: 0.12.0
0.12.0 (2024-09-27)
Features

add tabs for react (#228) (8f676ee)
add tabs to global html (#238) (8d8cb9b)
implement react checkbox component (#233) (aa18178)
react select component (#240) (b9c16cb)

Bug Fixes

set default font family and colour (#239) (aeaeda0)
update react logo (#229) (e5dcd18)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/ogcio/govie-ds/releases/tag/tailwind-v0.8.0 :sunflower:

:robot: Release is at https://github.com/ogcio/govie-ds/releases/tag/ds-v0.8.0 :sunflower:


Fixes modal close bug

fixes #144

Closing for now, this has been resolved in the most recent version!


Not adding URL to clipboard and no pop up notification

Love this tool it's so useful but it's not copying the URL to the clipboard for me or triggering the popup. Using Snagit 12.3.2 and SnagitImgur 1.4.0
Thanks!

Hmm, sorry about that. Does it open the browser, at least?
If so, please look in the (new) options - down arrow on the icon, select Option.
Those are probably unchecked...
I will make better defaults.

Hi again,
Can you please try this version: https://dl.dropboxusercontent.com/u/2323661/SnagitImgur.zip
Just copy it on top of the existing files, located in %LOCALAPPDATA%\TechSmith\Snagit\Accessories\{EDA9F1DD-85B9-44F6-9D3C-125B2DD1109D}
I've added some additional logging, maybe it will help me understand the problem better.

In any event, I just pushed v1.5 that fixes this issue (hopefully for good)!
Please give it a try!


Support multiple kafka bootstrap servers

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area config

/area outputs

/area tests

What this PR does / why we need it:

Support multiple Kafka bootstrap servers the same way other producers do. This way we can fetch initial cluster metadata from a different server in case one of them is down.
Update the documentation to explicitly state that the kafka hostport property refers to bootstrap nodes and not just to brokers.

Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

Welcome @ibice! It looks like this is your first PR to falcosecurity/falcosidekick 🎉

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: ibice
Once this PR has been reviewed and has the lgtm label, please assign issif for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: ibice, Issif
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Issif]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 2eec98653a20b80b537d7e6a20badeb16d97af0d

Good to me, thanks


Add setting to disable study table cache in development

One thing I didn't realize when implementing study table caching is that when developing rendering or table modification features (e.g. assay apps), changes made to rendering code require the cache to be manually updated. This can be done with the syncstudytables management command, but that is rather arduous and not very transparent.
For development purposes, there should be a Django setting to activate/deactivate study table caching. By default caching should be enabled, but in development it could be turned off to ensure we always have up-to-date study tables in the UI regardless of ongoing code changes.
Spec

Add SHEETS_ENABLE_STUDY_TABLE_CACHE Django setting

Boolean, get from env, default=True
Force True in test config
Force True in production config

Use setting in get_study_tables()

IF setting==False
THEN skip cache reading and rebuild tables
AND log a debug message saying reading from cache is skipped due to this setting
AND write rebuilt tables into cache

We still want the most recent cache item to be there once the setting gets reset

Add setting to SHEETS_INFO_SETTINGS
Assert setting effects cache item creation in TestTableBuilder
Document setting in admin_settings.rst

Done by @gromdimon and merged.


$GOPATH and Path variable setup command is added

The default Go installation doesn't require to set the value for $GOPATH and doesn't add $GOPATH/bin to Path variable.  But it is needed to run pow, So added in the README.md
Link to Go Install where setting of Path variables and $GOPATH is not mentioned - https://golang.org/doc/install
Link to Go docs where setting of Path variables and $GOPATH is  mentioned -  https://golang.org/doc/gopath_code.html

Do you mind signing DCO to consider this PR mergable?

Thanks @agnelvishal , the DCO is the only thing missing for merging :)

git rebase HEAD~4 --signoff
git push --force-with-lease origin patch-1
Notice the ~4, it was ~3 some minutes ago.

git rebase HEAD~4 --signoff gives me error: unknown option 'signoff'
So, I tried git rebase HEAD~4 -S
and then git push --force-with-lease origin patch-1 gives ERROR: Permission to textileio/powergate.git denied to agnelvishal.
`

Maybe you can try with another PR. Recall to git commit -S -s -m 'commit message' for the commit.

@jsign Created new pull request in https://github.com/textileio/powergate/pull/707 . Closing this one


Assert\Regex validation check problem..

Hi,
This is an amazing bundle it really saved my days thanks firstly.
My Entity field has the following annotation https://gist.github.com/feyyazesat/aa6674271ce5174041ba
NotBlank and Length working properly. But when I write "xyaz 123" to the field, following errror appears on chrome dev console.
1c0764d-c181255_part_1_jquery.validate_2-2a98529.js:640 Uncaught TypeError: Cannot read property 'test' of null
Do you have any idea about this problem ?

Well since /u is not supported in JavaScript that is your problem (check you regex on for example https://regex101.com/#javascript).
To fix this you can use the htmlPattern to put in the correct JS version.
     * @Assert\Regex(
     *      pattern="/^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð']+$/u",
     *      htmlPattern="/^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð']+$/",
     *      match=true,
     *      message="user.form.validation.firstname.regex",
     *      groups = {"personal_info"}
     * )

Perfect it solved my problem, I didn't know about javascript regex restrictions. Thanks.


logging in users screen

What
added logging to users screen
How to review
open chrome developer tools Network tab
websocket Frames
Create/delete users
logs successfully created/deleted users
Who can review
jon

It would be good to add some more logs where we don't have any e.g. form validation errors, mapper methods, etc.


fix comments on ssntp error versus event

A series of SSNTP Error type frames are mis-identified in comments in
the ciao-scheduler and testutil ssntp servers.  They are referred to as
"event", which is a specific ssntp frame type distinct from "error".  This
mis-identification can lead to confusion regarding what must be explicitly
forwarded by an ssntp server versus is automatically propagated.
Signed-off-by: Tim Pepper<EMAIL_ADDRESS>

Coverage increased (+0.02%) to 64.758% when pulling 663d8c1f0a7b9efaba6b8f64ba190dbf50352dc0 on tpepper:commentfix into 14a0a250477afc65964f9cc32b2eebe8c462d475 on 01org:master.


Update the AWS SSO troubleshooting tips

This update documents additional troubleshooting tips

@owinoakelo : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

@owinoakelo: I'm sorry - only the author of this article, @twimmers, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

#sign-off

@owinoakelo: I'm sorry - only the author of this article, @twimmers, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

Hi @owinoakelo - This pull request was opened in the public repo. PMs should work in the private repo, per the Microsoft Docs contributor guide. (In the public repo, you can't sign off on your own pull request; you can sign off on your own pull request in the private repo.) We can keep this PR open for review by the listed article author, but would you make future content updates in the private repo? Thank you!
Also, note that to reference an image in an MD file, the image file must be added to the repository; we can't reference an image that is hosted elsewhere.

Hi @owinoakelo - This pull request was opened in the public repo. PMs should work in the private repo, per the Microsoft Docs contributor guide. (In the public repo, you can't sign off on your own pull request; you can sign off on your own pull request in the private repo.) We can keep this PR open for review by the listed article author, but would you make future content updates in the private repo? Thank you!
Also, note that to reference an image in an MD file, the image file must be added to the repository; we can't reference an image that is hosted elsewhere.


Add manifest for Windows Terminal Preview

This was inspired by the manifest of Windows Terminal, windows-terminal.json.
I thoroughly tested it so as to not conflict with the Windows Terminal installation. Both these can now co-exist.
Fixes lukesampson/scoop-extras#4831

Hi @r15ch13
Is there something wrong with the PR? I'll be glad to make any changes.

@rasa @r15ch13 Could I ask what's taking so long?
Is this not the correct place for this manifest?

/verify

/verify


Void and vitality healing should check against which a creature can accept before applying

When creating or pasting a Player Character or Creature marked with the Undead Trait and/or using the Basic Undead Benefits, they receive most of the proper benefits (immunities, Necril language, bonuses to saving throws), however, when attempting to heal with vitality damage, they are allowed to be healed (damage from vitality works as normal). While noticed on a world with multiple modules, this was successfully replicated on a world with only Pathfinder 2e v6.2.0. All screenshots provided are from this otherwise unmodified world.

For the purposes of this test, a Level 1 Human Cleric of Sarenrae, Cloistered, Healing Doctrine.
A Spell Rank 1 3 action heal via a spell slot was cast for this spell
The first tested character was a Level 1 Skeleton PC, no class, set to 1 HP

When selected and choosing the "damage" option on the dice result, this is the result of that.

Likewise, when selecting the "heal" option on the dice result, this is the outcome.
On the same hand, with a completely pre-made (via the "Book of the Dead" bestiary compendium built into the system), a Drake Skeleton was selected for this test.

As with Test 1 (the Level 1 Skeleton PC), it was also set to 1 HP.

This is the result of selecting "heal" for the Drake Skeleton

Likewise, this is the result of selecting "damage" when at 1 HP.
If any more information is required or requested, please let me know and I will submit it as soon as I am able to

Additional note I forgot to make in this:
They receive the proper Void Healing Benefits of receiving healing from Void Damage, and are immune to damage from the type

The issue only relates to the lack of immunity to Vitality based healing


Relax dependency intl version range

The new version of intl is causing issues for lots of dependencies.
Anyway, long story short, my project uses both intl and json_theme, seems like json_theme depends on rest_client underneath which depends on intl. I want to update json_theme to v5 but not able to because of version conflicts with intl.
Because json_schema2 >=2.0.3+2 <2.0.3+3 depends on rest_client ^2.2.1+2 and json_theme >=5.0.0+2 depends on json_schema2 ^2.0.3+2, json_theme >=5.0.0+2 requires rest_client ^2.2.1+2 or json_schema2 ^2.0.3+3.
And because json_schema2 >=2.0.3+3 depends on rest_client ^2.2.1+3 which depends on intl ^0.18.0, json_theme >=5.0.0+2 requires intl ^0.18.0.
So, because appainter depends on both intl 0.17.0 and json_theme 5.0.0+2, version solving failed.

I'm also not able to bump intl to 0.18.0 yet in my project because it's also version conflicting with other packages.
So my question is, can rest_client relax the version range for intl to something like this >=0.17.0 <1.0.0? Doesn't seem like intl has introduced any breaking changes in 0.18.0 so probably safe to assume no breaking changes to be introduced until 1.0.0.
And this is the exact error I'm getting at the moment, which I also shared above. Also see this for an issue raised on Pub about not able to resolve to the latest version of intl.

Resolved with this workaround


simulateUnsafeDepositTransaction

I also think it would be cool to have like simulateL2ResultOfDepositTransaction which uses the L1 simulation to figure out the L2 transaction and simulate it. Only downside is we can't (?) simulate the ETH balance minted to them as a result of the L1 tx.

Added in https://github.com/base-org/op-viem/pull/147


How BN_secure_new() works?

BN_secure_new() as descripted in https://github.com/openssl/openssl/blob/master/doc/man3/BN_new.pod

BN_new() allocates and initializes a BIGNUM structure. BN_secure_new() does the same except that the secure heap OPENSSL_secure_malloc(3) is used to store the value.

But, in https://github.com/openssl/openssl/blob/master/crypto/bn/bn_lib.c I can see that it calls BN_new() and in BN_new() it calls OPENSSL_zalloc()
Is everything ok in code and docs?

Yes, everything is right.  The memory allocted for the BN structure is different from the memory allocated for the "string of digits" that make up the value of the BN.  Look for uses of BN_FLG_SECURE in that file.
I think this should be closed.

Sory my bad, I understad that value allocated in bn_expand_internal() by OPENSSL_secure_zalloc(). But in description it called OPENSSL_secure_malloc().
I think it should be closed too.

Closing it as requested. (@outspace since you are the owner of the issue you should actually be able to close it yourself?)

Yes, but link in https://github.com/openssl/openssl/blob/master/doc/man3/BN_new.pod is still broken. Maybe you have more info about this memory?

The place to view the manpages online is on the openssl website, https://www.openssl.org/docs/manpages.html  Not at github.  The file at github is a source file, not an HTML file for the web, so the link doesn't work.

Is it ok? https://www.openssl.org/docs/manmaster/man3/BN_new.html

I will explain it to you in detail. In https://www.openssl.org/docs/manmaster/man3/BN_new.html page is missing link to https://www.openssl.org/docs/manmaster/man3/OPENSSL_secure_malloc.html.

So if I understand you correctly, you are talking about two different things:

The BN_new entry on the website https://www.openssl.org/docs/manmaster/man3 is a broken link. I just confirmed that (cc @levitte).
The BN_new(3) manual page should refer to OPENSSL_secure_malloc(3) in its SEE ALSO section.

Is that correct?

Note: this is the error I get for https://www.openssl.org/docs/manmaster/man3/BN_new.html:
An error occurred while processing your request.
Reference #30.720a1602.1566120050.f1e4779

No, https://www.openssl.org/docs/manmaster/man3/BN_new.html has a broken link.

BN_secure_new() does the same except that the secure heap OPENSSL_secure_malloc(3) is used to store the value.

OPENSSL_secure_malloc(3) need to be a link.
I agree that we shold add it into SEE ALSO section.

See https://github.com/openssl/openssl/pull/9629
The error is because Akamai rejected the connection to openssl because the cert had expired.
(Multiple warnings were given over the past couple of weeks.)


fix: return errors when JSON responses contain fields of wrong type

The Go generator we are using generates code that ignores errors while unmarshalling JSON responses from the API into Go structs.  This means that if the API spec says a field will be an integer but the field in the API response is a string, the Go SDK will return a struct with nil values for all fields instead of returning an error.
This updates the model_simple.mustache template to make the unmarshal function return errors when they happen rather than ignoring them.

It would be easier to review to have the manual changes and automated changes in separate commits.

A separate commit that adds the stock template, before changing it, would also help in review.

I've updated the PR to split out commits for adding the template, updating the template, and regenerating code from it.  In addition, the v7.0.0 upgrade has been merged and this was rebased on it, so the only changes in this PR are related to the template change.


Sonic's Character Model visible polygons

I noticed this imperfection various times, I'm pretty sure it happens in Emerald Coast and Windy Valley too, or every time the camera gets closer anyway.
Zoom the picture to see it, it's not easy to notice.

Hmm, this is a strange one. It appears to be on the seams of the base texture. Since the palette textures are used as vertex colors, it seems unlikely that the (unfiltered) palette texture could be causing that kind of artifact. The question is then: what am I doing in the shader that's causing it to break the base texture?
Strange indeed. Thanks for the report; I'll see what I can do.

This appears to be an issue with vanilla SADX; it could just be that the palette lighting makes it more noticeable. I imagine it's a precision issue in the conversion from the original integer UV coordinates to standard Direct3D floating point UV coordinates.


Error: Cannot read property 'toString' of undefined

v4.0.5
undefined
/home/anon/zenbot/node_modules/numbro/numbro.js:1111
        var parts = x.toString().split('.');
                     ^

TypeError: Cannot read property 'toString' of undefined
    at multiplier (/home/anon/zenbot/node_modules/numbro/numbro.js:1111:22)
    at /home/anon/zenbot/node_modules/numbro/numbro.js:1127:22
    at Array.reduce (native)
    at correctionFactor (/home/anon/zenbot/node_modules/numbro/numbro.js:1125:21)
    at Object.add (/home/anon/zenbot/node_modules/numbro/numbro.js:1197:47)
    at /home/anon/zenbot/commands/trade.js:234:78
    at /home/anon/zenbot/lib/engine.js:191:14
    at /home/anon/zenbot/extensions/exchanges/bittrex/exchange.js:113:18
    at Request._callback (/home/anon/zenbot/node_modules/node.bittrex.api/node.bittrex.api.js:112:25)
    at Request.self.callback (/home/anon/zenbot/node_modules/request/request.js:188:22)
    at emitTwo (events.js:106:13)
    at Request.emit (events.js:191:7)
    at Request.<anonymous> (/home/anon/zenbot/node_modules/request/request.js:1171:10)
    at emitOne (events.js:96:13)
    at Request.emit (events.js:188:7)
    at IncomingMessage.<anonymous> (/home/anon/zenbot/node_modules/request/request.js:1091:12)
    at IncomingMessage.g (events.js:292:16)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)

What was the command you were trying to run?

Zenbot trade bittrex.USDT-BCC --period=5m

I have the same problem, it occurs randomly on some bots once every several hours.
undefined /home/admin/zenbot_xrp/node_modules/numbro/numbro.js:1111
var parts = x.toString().split('.');
^
TypeError: Cannot read property 'toString' of undefined
at multiplier (/home/admin/zenbot_xrp/node_modules/numbro/numbro.js:1111:22)
at /home/admin/zenbot_xrp/node_modules/numbro/numbro.js:1127:22
at Array.reduce (native)
at correctionFactor (/home/admin/zenbot_xrp/node_modules/numbro/numbro.js:1125:21)
at Numbro.add (/home/admin/zenbot_xrp/node_modules/numbro/numbro.js:1197:47)
at /home/admin/zenbot_xrp/commands/trade.js:234:78
at /home/admin/zenbot_xrp/lib/engine.js:191:14
at /home/admin/zenbot_xrp/extensions/exchanges/bittrex/exchange.js:113:18
at Request._callback (/home/admin/zenbot_xrp/node_modules/node.bittrex.api/node.bittrex.api.js:112:25)
at Request.self.callback (/home/admin/zenbot_xrp/node_modules/request/request.js:188:22)
at emitTwo (events.js:125:13)
at Request.emit (events.js:213:7)
at Request. (/home/admin/zenbot_xrp/node_modules/request/request.js:1171:10)
at emitOne (events.js:115:13)
at Request.emit (events.js:210:7)
at IncomingMessage. (/home/admin/zenbot_xrp/node_modules/request/request.js:1091:12)
at Object.onceWrapper (events.js:314:30)
at emitNone (events.js:110:20)
at IncomingMessage.emit (events.js:207:7)
at endReadableNT (_stream_readable.js:1045:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

I made this go away by adding this line above node_modules/numbro/numbro.js:1111
       if (!x)  return 1;
var parts = x.toString().split('.');

Seems that testing for falsy wasn't enough so ...
       if (typeof x === 'undefined' || x === null || !x) {
           return 1; }
maybe???

Undefined and null are both already falsey in JS
Also having this issue, adding the if (!x) return 1 fixed it for now

Can we fix this with a pull request

Same here, the error occurs randomly on Bittrex, if (!x) return 1; solved it for now.

This error is happening because the value for 's.balance.asset' is undefined, on (presently) lines 140 and 244.
For posterity and clarity's sake, here is that line:
var tmp_balance = n(s.balance.currency).add(n(s.period.close).multiply(s.balance.asset)).format('0.00000000')
I verified this with a small test program in node...
`
var n = require('numbro')
function main() {
var currency = process.argv[2] === 'undefined' ? undefined : process.argv[2]
var periodClose = process.argv[3] === 'undefined' ? undefined : process.argv[3]
var asset = process.argv[4] === 'undefined' ? undefined : process.argv[4]
var v = n(currency).add(n(undefined).multiply(asset)).format('0.00000000')

console.log(v)

}
main()
`
If you run that program, any value you pass in will be successful, except for an 'undefined' for the third variable. That matches our situation here.
This variable is likely being set incorrectly somewhere in the Bittrex exchange object, when engine.js makes a call to its getBalance() method, from the engine.js :: syncBalance() method, currently on line 184.  But I'm not 100% on that.
Regardless it seems like some bad data may be coming from the API. To fix it, we should wrap the call that sets tmp_balance, in trade.js, in a method and ensure that s.balance.asset is not undefined, or 0, before making the call. That will prevent the exception.
Once I get home this evening, I will make a PR for this...

I already have a PR in for the numbro repository owned by carlos8f.  See:  Fix Issue #457 for Zenbot Repository
If that is merged, then the if (!x) return 1 fix will be pulled the next time npm update is run for zenbot.
The package.json is pointing to that version of numbro.  This seems to be a very reliable fix.
Is there anyone that can approve that pull request?
If not, I could put in a pull request to point to the fix in my forked version of carlos8f's numbro that is waiting for the pull request to be merged.

@KryptoNova Agreed. I think that is a clean fix.

I'm not sure, but if @DeviaVir could approve the pull request mentioned at Fix Issue #457 for Zenbot Repository then we should be in business.
@DeviaVir, If this cannot be done, let me know.  I do have a Plan B if you do not have the ability to approve those pull requests.

@KryptoNova unfortunately I don't have the permissions. Want me to fork it and we'll use that fork instead?


feat: update libreflectasm-java to 1.11.9+dfsg

library that provides reflection by using code generation
Issue: https://github.com/deepin-community/sig-deepin-sysdev-team/issues/547
Log: update repo

/integr-topic ecmwf-202401


Refactor everything

In addition to these changes, I propose that we merge the cflinuxfs3m repo into this repo, and use a make target with a different package list to represent it.
See also:
opal:cflinuxfs3 stephen$ ag TODO
Dockerfile
10:# TODO: keep /usr/share/doc/*/copyright
19:# TODO: determine if tzdata and libc6 regen is necessary

Makefile
16:# TODO: use make option in pipeline to ensure $(BUILD).iid is always rebuilt

packages.suspect
1:# TODO: remove these
2:# TODO: see what deps are removed
3:# TODO: add deps back that could be useful
4:# TODO: remember to consider arch-specific packages as well
5:# TODO: look for other packages that clearly don't belong

This PR also restores PPC and ARM support.

Worth noting that this builds a Docker image that's 1.1 GB, compared to the cflinuxfs2 size of 2.4 GB. We should probably squash some layers in cflinuxfs2 (or refactor it to match cflinuxfs3).


NS_ERROR_TIMEOUT trying to fetch user profile avatars from private Jellyfin

Description
When running jellyseerr publicly but not Jellyfin, the profile picture avatars of users don't load, as it seems they are not imported with the 'import Jellyfin Users' functionality. This may be expected, however, it leads to the page waiting and loading more than a minute trying to fetch these pictures anyway.
What I tried:

Enabling cache (which of course doesn't work as this is only for TMDB images, I tried anyway)
Removing internal Jellyfin URL
Adding internal Jellyfin URL

I'm not certain if this behavior is expected, feel free to delete this report if it is. I think if possible, it would be advantageous fetching and caching the profile pictures of users on (in my case local) import, which would solve this issue.
Version
1.8.1
Steps to Reproduce

Run jellyseerr and Jellyfin in docker locally
Import Users from Jellyfin
Enable local sign-in
Disable New Jellyfin sign-in
Publish jellyseerr behind reverse proxy (enabling all necessary settings)
Access jellyseerr through new public URL
Watch request to local Jellyfin address (eg.: <IP_ADDRESS>:8096) time out

Screenshots

Logs
No response
Platform
desktop
Device
Macbook Pro
Operating System
MacOS 14.4.1
Browser
Firefox
Additional Context
No response
Code of Conduct

[X] I agree to follow Jellyseerr's Code of Conduct

Jellyfin avatars aren't imported.
It uses the internal url until external url is set.
It directly calls your avatar link. So this is a configuration issue. And a duplicate of many issues that detailed how to fix it.
If you're having trouble still, I would suggest you hop onto discord as I can provide easy to follow steps to fix this c:


Remove todo and validate RFile prefix

Leaving this as a draft PR for now as it needs work because tests break due to the new validation. I need to go through and see what other issues there might be from this PR before it is merged when I have time.

Need to be sure this validation method only checks prefixes for filenames that we've stored... and this code path doesn't get executed when a user provides their own file names as in put (rfile-info or as a file that is being bulk imported, for example), because users can name their RFiles anything they like.
I'm also concerned generally about doing this... for a long time, when HDFS or another issue caused an RFile to be corrupt or missing, we have recommended users perform metadata surgery to place an RFile directly. I can imagine other scenarios where a user has done that for surgical/maintenance reasons (like maybe manually compacting some files that is inconvenient for them to compact using our built-in compactors), and may have their own naming convention for the file they place (and for which they add an entry to the metadata table).
This validation could break that situation where users have done that.... and not for any great reason. These file names are just conventions... they aren't a strict requirement. By default, Accumulo should work regardless of the file name, and these names would only matter for custom compaction strategies, trash policies, etc. that the user chose to deploy.
Maybe a warning could be logged for unexpected name prefixes instead of a hard failure?

The reference in the documentation for creating "empty" files is under the Advanced Troubleshooting section - Data Corruption (https://accumulo.apache.org/docs/2.x/troubleshooting/advanced).  (It was easiest to have an empty.rf file lying around and just use that)

The reference in the documentation for creating "empty" files is under the Advanced Troubleshooting section - Data Corruption (https://accumulo.apache.org/docs/2.x/troubleshooting/advanced). (It was easiest to have an empty.rf file lying around and just use that)

In that example, the file is usually renamed to whatever the missing/corrupt file was. But I'm imagining cases where a user might perform surgery and not use our internal naming conventions (they shouldn't have to). It would be a surprising breakage.

Before I continue on with any more updates should I go ahead and close this for now? The validation breaks some tests and @ctubbsii voiced concerns about doing this. Based on all the test failures I'm seeing and the issues @ctubbsii mentioned i'm hesitant to make this change now.

Before I continue on with any more updates should I go ahead and close this for now? The validation breaks some tests and @ctubbsii voiced concerns about doing this. Based on all the test failures I'm seeing and the issues @ctubbsii mentioned i'm hesitant to make this change now.

I'm slightly opposed to this change (-0) for the reasons I mentioned, but I'm more interested in why those tests are failing. It seems this method might be expecting to receive full paths to files, not just the file part, as this PR had assumed. It's either that, or those tests are providing bad test cases, that this PR unintentionally caught.

I can rerun and check the tests (it may just be the tests that need fixing) I haven't looked to closely into it yet but I don't think there's an issue with the actual code itself other than tests using weird names

@ctubbsii - So a good example of a test that breaks is RFileClientTest. This is simply due to the test itself. The test just creates temp files that don't match the expected prefix name, so it's just a test issue that would need to be fixed. That was the first one that broke, I'm not sure how many other tests create temp files that wouldn't validate without running the full suite but I'm going to go ahead and close this anyways I think.
The todo i guess could be removed in a separate small commit if you want as I know we didn't want to leave around TODOs.

Closing for now based on the feedback in this PR, we can always re-open later.


Firestore Assertion Failed in void firebase::firestore::core, etc (signal8: SIGABRT)

[REQUIRED] Step 1: Describe your environment

Xcode version: 11_
Firebase SDK version: 6.16_
Firebase Component: Auth, core, database, Firebase/Firestore,storeage(Auth, Core, Database, Firestore, Messaging, Storage, etc)
Component version: Most latest on all (just updated)
Installation method: [CocoaPods] | Carthage | Zip file (select one)

[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
I have documents in the following order - collection("users")document(currentusersid)- with the info of email and name.
I made a function called get name that is supposed to search firestore for the sessionid that was saved and retrieve the name. To then paste (hello, "mat/john/etc") Sometimes it works. Sometimes it doesnt and I get this error:
*** Assertion failure in void firebase::firestore::core::FirestoreClient::Initialize(const firebase::firestore::auth::User &, const firebase::firestore::api::Settings &)(), FILE NAME
Theres more errors too but I read online to try and debug and to create and exception break point because xcode is throwing an error at the crash rather than whats causing the crash. Tried that and it stops there. Which sounds like theres an initializations problem with firestore?
Relevant Code:
 func getName(){

        let userid = session.session?.uid ?? ""

              let docRef = db.collection("users").document(userid)

              docRef.getDocument{ (document, err) in
                if let document = document, document.exists{
                      let displayname = document.get("name")

                    self.displayName = displayname as? String

                                  }
                  else {
                      print("document does not exist\(String(describing: err))")
                  }

              }

    }

                Text("Hello \(self.displayName ?? "")").foregroundColor(Color.black).onAppear(perform:self.getName).position(x:108,y:10)

edit: the program works completely fine once i delete that function, also, the preview works sometimes too. Sometimes doesnt,.

Please include the complete error message, including the stack trace, and any other messages nearby. Without them we can't really help.

*** Assertion failure in void firebase::firestore::core::FirestoreClient::Initialize(const firebase::firestore::auth::User &, const firebase::firestore::api::Settings &)(), /Users/mathewgarcia/Library/Autosave Information/Beats/Beats/BeatsCloud/Pods/FirebaseFirestore/Firestore/core/src/firebase/firestore/core/firestore_client.cc:168 2020-02-08 18:41:26.020783-0500 BeatsCloud[57831:1513028] [General] An uncaught exception was raised 2020-02-08 18:41:26.020861-0500 BeatsCloud[57831:1513028] [General] FIRESTORE INTERNAL ASSERTION FAILED: Failed to open DB: Internal: Failed to open LevelDB database at /Users/mathewgarcia/Library/Application Support/firestore/__FIRAPP_DEFAULT/beatswave-2c93c/main: LevelDB error: IO error: lock /Users/mathewgarcia/Library/Application Support/firestore/__FIRAPP_DEFAULT/beatswave-2c93c/main/LOCK: Resource temporarily unavailable (expected created.ok()) 2020-02-08 18:41:26.020970-0500 BeatsCloud[57831:1513028] [General] ( 	0   CoreFoundation                      0x00007fff2c5b38ab __exceptionPreprocess + 250 	1   libobjc.A.dylib                     0x00007fff6286d805 objc_exception_throw + 48 	2   CoreFoundation                      0x00007fff2c5dcd10 +[NSException raise:format:arguments:] + 88 	3   Foundation                          0x00007fff2ed13af7 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166 	4   BeatsCloud                          0x00000001001dcf84 _ZN8firebase9firestore4util16ObjcThrowHandlerENS1_13ExceptionTypeEPKcS4_iRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE + 356 	5   BeatsCloud                          0x00000001001dc5a3 _ZN8firebase9firestore4util5ThrowENS1_13ExceptionTypeEPKcS4_iRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE + 67 	6   BeatsCloud                          0x000000010033874d _ZN8firebase9firestore4util8internal13FailAssertionEPKcS4_iRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE + 45 	7   BeatsCloud                          0x000000010033880a _ZN8firebase9firestore4util8internal13FailAssertionEPKcS4_iRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEES4_ + 186 	8   BeatsCloud                          0x000000010026411c _ZN8firebase9firestore4core15FirestoreClient10InitializeERKNS0_4auth4UserERKNS0_3api8SettingsE + 556 	9   BeatsCloud                          0x000000010027143c _ZZZN8firebase9firestore4core15FirestoreClient6CreateERKNS1_12DatabaseInfoERKNS0_3api8SettingsENSt3__110shared_ptrINS0_4auth19CredentialsProviderEEENSB_INS0_4util8ExecutorEEENSB_INSF_10AsyncQueueEEEEN3$_2clENSC_4UserEENKUlvE_clEv + 60 	10  BeatsCloud                          0x00000001002713dd _ZNSt3__1L8__invokeIRZZN8firebase9firestore4core15FirestoreClient6CreateERKNS3_12DatabaseInfoERKNS2_3api8SettingsENS_10shared_ptrINS2_4auth19CredentialsProviderEEENSC_INS2_4util8ExecutorEEENSC_INSG_10AsyncQueueEEEEN3$_2clENSD_4UserEEUlvE_JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSP_DpOSQ_ + 29 	11  BeatsCloud                          0x000000010027138d _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZZN8firebase9firestore4core15FirestoreClient6CreateERKNS5_12DatabaseInfoERKNS4_3api8SettingsENS_10shared_ptrINS4_4auth19CredentialsProviderEEENSE_INS4_4util8ExecutorEEENSE_INSI_10AsyncQueueEEEEN3$_2clENSF_4UserEEUlvE_EEEvDpOT_ + 29 	12  BeatsCloud                          0x000000010027135d _ZNSt3__110__function12__alloc_funcIZZN8firebase9firestore4core15FirestoreClient6CreateERKNS4_12DatabaseInfoERKNS3_3api8SettingsENS_10shared_ptrINS3_4auth19CredentialsProviderEEENSD_INS3_4util8ExecutorEEENSD_INSH_10AsyncQueueEEEEN3$_2clENSE_4UserEEUlvE_NS_9allocatorISO_EEFvvEEclEv + 29 	13  BeatsCloud                          0x000000010026ff29 _ZNSt3__110__function6__funcIZZN8firebase9firestore4core15FirestoreClient6CreateERKNS4_12DatabaseInfoERKNS3_3api8SettingsENS_10shared_ptrINS3_4auth19CredentialsProviderEEENSD_INS3_4util8ExecutorEEENSD_INSH_10AsyncQueueEEEEN3$_2clENSE_4UserEEUlvE_NS_9allocatorISO_EEFvvEEclEv + 25 	14  BeatsCloud                          0x0000000100268975 _ZNKSt3__110__function12__value_funcIFvvEEclEv + 53 	15  BeatsCloud                          0x00000001002688e5 _ZNKSt3__18functionIFvvEEclEv + 21 	16  BeatsCloud                          0x0000000100157dac _ZN8firebase9firestore4util10AsyncQueue15ExecuteBlockingERKNSt3__18functionIFvvEEE + 188 	17  BeatsCloud                          0x000000010015d451 _ZZN8firebase9firestore4util10AsyncQueue4WrapERKNSt3__18functionIFvvEEEENK3$_0clEv + 49 	18  BeatsCloud                          0x000000010015d3fd _ZNSt3__1L8__invokeIRZN8firebase9firestore4util10AsyncQueue4WrapERKNS_8functionIFvvEEEE3$_0JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSC_DpOSD_ + 29 	19  BeatsCloud                          0x000000010015d3ad _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8firebase9firestore4util10AsyncQueue4WrapERKNS_8functionIFvvEEEE3$_0EEEvDpOT_ + 29 	20  BeatsCloud                          0x000000010015d37d _ZNSt3__110__function12__alloc_funcIZN8firebase9firestore4util10AsyncQueue4WrapERKNS_8functionIFvvEEEE3$_0NS_9allocatorISB_EES7_EclEv + 29 	21  BeatsCloud                          0x000000010015bfc9 _ZNSt3__110__function6__funcIZN8firebase9firestore4util10AsyncQueue4WrapERKNS_8functionIFvvEEEE3$_0NS_9allocatorISB_EES7_EclEv + 25 	22  BeatsCloud                          0x0000000100268975 _ZNKSt3__110__function12__value_funcIFvvEEclEv + 53 	23  BeatsCloud                          0x00000001002688e5 _ZNKSt3__18functionIFvvEEclEv + 21 	24  BeatsCloud                          0x00000001001df041 _ZZN8firebase9firestore4util8internal13DispatchAsyncEPU28objcproto17OS_dispatch_queue8NSObjectONSt3__18functionIFvvEEEENK3$_0clEPv + 33 	25  BeatsCloud                          0x00000001001df015 _ZZN8firebase9firestore4util8internal13DispatchAsyncEPU28objcproto17OS_dispatch_queue8NSObjectONSt3__18functionIFvvEEEEN3$_08__invokeEPv + 21 	26  libdispatch.dylib                   0x000000010382878f _dispatch_client_callout + 8 	27  libdispatch.dylib                   0x000000010382fd31 _dispatch_lane_serial_drain + 777 	28  libdispatch.dylib                   0x0000000103830ae8 _dispatch_lane_invoke + 438 	29  libdispatch.dylib                   0x000000010383df2e _dispatch_workloop_worker_thread + 681 	30  libsystem_pthread.dylib             0x00000001038b402c _pthread_wqthread + 290 	31  libsystem_pthread.dylib             0x00000001038b3157 start_wqthread + 15 ) 2020-02-08 18:41:26.022255-0500 BeatsCloud[57831:1513028] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'FIRESTORE INTERNAL ASSERTION FAILED: Failed to open DB: Internal: Failed to open LevelDB database at /Users/mathewgarcia/Library/Application Support/firestore/__FIRAPP_DEFAULT/beatswave-2c93c/main: LevelDB error: IO error: lock /Users/mathewgarcia/Library/Application Support/firestore/__FIRAPP_DEFAULT/beatswave-2c93c/main/LOCK: Resource temporarily unavailable (expected created.ok())' *** First throw call stack: ( 	0   CoreFoundation                      0x00007fff2c5b38ab __exceptionPreprocess + 250 	1   libobjc.A.dylib                     0x00007fff6286d805 objc_exception_throw + 48 	2   CoreFoundation                      0x00007fff2c5dcd10 +[NSException raise:format:arguments:] + 88 	3   Foundation                          0x00007fff2ed13af7 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166 	4   BeatsCloud                          0x00000001001dcf84 _ZN8firebase9firestore4util16ObjcThrowHandlerENS1_13ExceptionTypeEPKcS4_iRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE + 356 	5   BeatsCloud                          0x00000001001dc5a3 _ZN8firebase9firestore4util5ThrowENS1_13ExceptionTypeEPKcS4_iRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE + 67 	6   BeatsCloud                          0x000000010033874d _ZN8firebase9firestore4util8internal13FailAssertionEPKcS4_iRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE + 45 	7   BeatsCloud                          0x000000010033880a _ZN8firebase9firestore4util8internal13FailAssertionEPKcS4_iRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEES4_ + 186 	8   BeatsCloud                          0x000000010026411c _ZN8firebase9firestore4core15FirestoreClient10InitializeERKNS0_4auth4UserERKNS0_3api8SettingsE + 556 	9   BeatsCloud                          0x000000010027143c _ZZZN8firebase9firestore4core15FirestoreClient6CreateERKNS1_12DatabaseInfoERKNS0_3api8SettingsENSt3__110shared_ptrINS0_4auth19CredentialsProviderEEENSB_INS0_4util8ExecutorEEENSB_INSF_10AsyncQueueEEEEN3$_2clENSC_4UserEENKUlvE_clEv + 60 	10  BeatsCloud                          0x00000001002713dd _ZNSt3__1L8__invokeIRZZN8firebase9firestore4core15FirestoreClient6CreateERKNS3_12DatabaseInfoERKNS2_3api8SettingsENS_10shared_ptrINS2_4auth19CredentialsProviderEEENSC_INS2_4util8ExecutorEEENSC_INSG_10AsyncQueueEEEEN3$_2clENSD_4UserEEUlvE_JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSP_DpOSQ_ + 29 	11  BeatsCloud                          0x000000010027138d _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZZN8firebase9firestore4core15FirestoreClient6CreateERKNS5_12DatabaseInfoERKNS4_3api8SettingsENS_10shared_ptrINS4_4auth19CredentialsProviderEEENSE_INS4_4util8ExecutorEEENSE_INSI_10AsyncQueueEEEEN3$_2clENSF_4UserEEUlvE_EEEvDpOT_ + 29 	12  BeatsCloud                          0x000000010027135d _ZNSt3__110__function12__alloc_funcIZZN8firebase9firestore4core15FirestoreClient6CreateERKNS4_12DatabaseInfoERKNS3_3api8SettingsENS_10shared_ptrINS3_4auth19CredentialsProviderEEENSD_INS3_4util8ExecutorEEENSD_INSH_10AsyncQueueEEEEN3$_2clENSE_4UserEEUlvE_NS_9allocatorISO_EEFvvEEclEv + 29 	13  BeatsCloud                          0x000000010026ff29 _ZNSt3__110__function6__funcIZZN8firebase9firestore4core15FirestoreClient6CreateERKNS4_12DatabaseInfoERKNS3_3api8SettingsENS_10shared_ptrINS3_4auth19CredentialsProviderEEENSD_INS3_4util8ExecutorEEENSD_INSH_10AsyncQueueEEEEN3$_2clENSE_4UserEEUlvE_NS_9allocatorISO_EEFvvEEclEv + 25 	14  BeatsCloud                          0x0000000100268975 _ZNKSt3__110__function12__value_funcIFvvEEclEv + 53 	15  BeatsCloud                          0x00000001002688e5 _ZNKSt3__18functionIFvvEEclEv + 21 	16  BeatsCloud                          0x0000000100157dac _ZN8firebase9firestore4util10AsyncQueue15ExecuteBlockingERKNSt3__18functionIFvvEEE + 188 	17  BeatsCloud                          0x000000010015d451 _ZZN8firebase9firestore4util10AsyncQueue4WrapERKNSt3__18functionIFvvEEEENK3$_0clEv + 49 	18  BeatsCloud                          0x000000010015d3fd _ZNSt3__1L8__invokeIRZN8firebase9firestore4util10AsyncQueue4WrapERKNS_8functionIFvvEEEE3$_0JEEEDTclclsr3std3__1E7forwardIT_Efp_Espclsr3std3__1E7forwardIT0_Efp0_EEEOSC_DpOSD_ + 29 	19  BeatsCloud                          0x000000010015d3ad _ZNSt3__128__invoke_void_return_wrapperIvE6__callIJRZN8firebase9firestore4util10AsyncQueue4WrapERKNS_8functionIFvvEEEE3$_0EEEvDpOT_ + 29 	20  BeatsCloud                          0x000000010015d37d _ZNSt3__110__function12__alloc_funcIZN8firebase9firestore4util10AsyncQueue4WrapERKNS_8functionIFvvEEEE3$_0NS_9allocatorISB_EES7_EclEv + 29 	21  BeatsCloud                          0x000000010015bfc9 _ZNSt3__110__function6__funcIZN8firebase9firestore4util10AsyncQueue4WrapERKNS_8functionIFvvEEEE3$_0NS_9allocatorISB_EES7_EclEv + 25 	22  BeatsCloud                          0x0000000100268975 _ZNKSt3__110__function12__value_funcIFvvEEclEv + 53 	23  BeatsCloud                          0x00000001002688e5 _ZNKSt3__18functionIFvvEEclEv + 21 	24  BeatsCloud                          0x00000001001df041 _ZZN8firebase9firestore4util8internal13DispatchAsyncEPU28objcproto17OS_dispatch_queue8NSObjectONSt3__18functionIFvvEEEENK3$_0clEPv + 33 	25  BeatsCloud                          0x00000001001df015 _ZZN8firebase9firestore4util8internal13DispatchAsyncEPU28objcproto17OS_dispatch_queue8NSObjectONSt3__18functionIFvvEEEEN3$_08__invokeEPv + 21 	26  libdispatch.dylib                   0x000000010382878f _dispatch_client_callout + 8 	27  libdispatch.dylib                   0x000000010382fd31 _dispatch_lane_serial_drain + 777 	28  libdispatch.dylib                   0x0000000103830ae8 _dispatch_lane_invoke + 438 	29  libdispatch.dylib                   0x000000010383df2e _dispatch_workloop_worker_thread + 681 	30  libsystem_pthread.dylib             0x00000001038b402c _pthread_wqthread + 290 	31  libsystem_pthread.dylib             0x00000001038b3157 start_wqthread + 15 ) libc++abi.dylib: terminating with uncaught exception of type NSException
sure thing @wilhuff !

The interesting part of that error is this:

Failed to open DB: Internal: Failed to open LevelDB database at <directory>: LevelDB error: IO error: lock <directory>/LOCK: Resource temporarily unavailable (expected created.ok())'

"Resource temporarily unavailable" corresponds to EDEADLK (errno 11) and that indicates that somehow you've got multiple locks held. This really shouldn't happen.
The code you've listed isn't really doing anything that could cause that. There must be some interaction with something else in your system that's causing this to fail.
Questions:

Are you using more than one Firebase App and using Firestore with them?
Does this happen reliably?
Could you share your project (privately) so that I could reproduce it? (For example, if you're not open source, you could zip up your checked-out project state and share it via Google Drive or similar).

@wilhuff sure thing! i just uploaded it to google drive, anyway you'd like for me to send it to you?

I'm definitely interested in understanding how this is happening, even if you're now fixed. This really shouldn't be happening.
You can share with<EMAIL_ADDRESS>Please describe what steps you take to see the problem--even if the failure only happened occasionally.

@wilhuff i just sent it! and there are no exact steps, i pretty much just put that code in 'getName()' and it basically works when it wants to lol. Hopefully it'll do the same for you. I thought it was because the name is coming back as nil but its not. So I tried using other steps. btw, this is on Mac OS

You sent over just the contents.xcworkspacedata file. I meant zip up your entire project directory, including the source code and whatever it takes to build it.

@wilhuff sorry i had left my computer! but let me zip and send it over!
-the problem still persists though. Makes no sense lol.

@wilhuff sent!

Update: I managed to get the project to build but can't run it yet because I don't have a machine running macOS 10.15 yet. Next steps are to locate one :-).

@wilhuff I have a laptop running Catalina if you need help debugging. I am worried about this, though:

edit 2: now it works fine after i deleted those files in firestore too lol... at a loss

Seems like this may not be reproducible without the right disk cache contents.

@morganchen12 Hey, im confused though i thought my function would read the document directly through firestore? am i using the wrong function call?

You're not using the wrong function call, but getDocument will still check the cache. The crash is happening because Firestore is unexpectedly not allowed to access the cache when it should be (I think). @wilhuff can explain in more detail.

@morganchen12 okay i see, well thats at least a breather. Is there a way i can force it to be allowed or maybe skip getDocument from checking the cache?

The preview crashing is likely an Apple bug (see #4772). It shouldn't affect your app at runtime.
You can force a fetch from the server using getDocument(source:completion:).

@morganchen12 okay so i added a source:.cache and so far it worked so im seeing if it stays consistent. I only tried once so lets hope for the best or an answer eventually ! lol

I ran the app you shared with @wilhuff a couple times and wasn't able to reproduce the crash. Here's what I tried:

Run the app
Sign up with a test account<EMAIL_ADDRESS>password: password)
Log out and log in repeatedly

Do you have more detailed crash repro steps?

I'll leave this issue open for a while in case it starts crashing again.

@morganchen12 whoops, tagged your friend instead! Sorry haha, question though, would internet connection matter whether or not I connect to the document? I ask because when I got home on my network, I had no problem with the function, but when I was at work and using a hotspot I have from work, it had crashed. (not tested yet, but the question just crossed my mind)

Firestore opens its local database before attempting to use the network so it's highly unlikely that differences in the network have anything to do with this particular failure.

hmm, odd. Well, it crashed again and it only managed to crash on while  I was on my hotspot. Ill send you the video. Should I do that privately or ?

I was able to repro this with the exact same stack trace by running two instances of the app at the same time. Network and other factors don't affect the crash.
What's happening in my setup is one instance of the app locks the db cache while the other instance tries to access it. Normally this isn't an issue on iOS because you can't run two instances of the same app, but on Mac you can do whatever you want.
Steps to repro:

Run the app in Xcode.
Under the Debug menu, click "Detach from BeatsCloud".
Run the app again after detaching the debugger from the first instance.

@MathewGarcia can you check when you're troubleshooting this that only one instance of your app is running at a time?

@morganchen12 ah i just checked my Activity monitor... Theres like at least 8 of them running in the background. I wonder why? I stopped the program already! Also sorry for the late reply. Work got a little hectic

No problem. This behavior by Firestore is working as intended. Note that the default behavior of macOS is to not run multiple copies of the same process when a user clicks on your app twice, so this should generally not cause any issues. If you want to allow for multiple instances of Firestore running in multiple instances of your app at the same time, you need to use multiple Firebase apps so each Firestore instance references a different app.
I'll close this issue now, but please let us know if you have any other questions.

@morganchen12 okay perfect, as long as this doesnt happen during final product! Thank you. Glad we figured it out!

had exact same issue. killing the duplicate processes worked!
thanks :)